/* VOX Subscriptions Frontend Styles */

/* Abonelik Paketleri */
.vox-subscription-packages {
    display: grid;
    gap: 20px;
    margin: 20px 0;
}

.vox-subscription-packages.columns-1 {
    grid-template-columns: 1fr;
}

.vox-subscription-packages.columns-2 {
    grid-template-columns: repeat(2, 1fr);
}

.vox-subscription-packages.columns-3 {
    grid-template-columns: repeat(3, 1fr);
}

.vox-subscription-packages.columns-4 {
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 768px) {
    .vox-subscription-packages {
        grid-template-columns: 1fr !important; 
    }
}

.vox-package {
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    padding: 20px;
    background: #fff;
    position: relative;
    transition: all 0.3s ease;
    text-align: center;
}

.vox-package:hover {
    border-color: #00983f;
    box-shadow: 0 4px 12px rgba(0, 124, 186, 0.1);
    transform: translateY(-2px);
}

.vox-package.popular {
    border-color: #00983f;
    box-shadow: 0 4px 12px rgba(0, 124, 186, 0.15);
}

.vox-package.featured {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.popular-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: #00983f;
    color: white;
    padding: 5px 15px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: bold;
}

.package-header {
    margin-bottom: 20px;
}

.package-title {
    font-size: 24px;
    font-weight: bold;
    margin: 0 0 10px 0;
    color: #333;
}

.package-excerpt {
    color: #666;
    font-size: 14px;
    margin: 0;
}

.package-price {
    margin: 20px 0;
    padding: 15px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.price, .discounted-price {
    font-size: 28px;
    font-weight: bold;
    color: #00983f;
}

.original-price {
    font-size: 18px;
    color: #999;
    text-decoration: line-through;
    display: block;
    margin-bottom: 5px;
}

.duration {
    font-size: 14px;
    color: #666;
    display: block;
    margin-top: 5px;
}

.setup-fee {
    margin-top: 10px;
    font-size: 12px;
    color: #999;
}

.package-features {
    margin: 20px 0;
    text-align: left;
}

.package-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.package-features li {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
}

.package-features li:last-child {
    border-bottom: none;
}

.feature-icon {
    color: #28a745;
    font-weight: bold;
    margin-right: 10px;
    font-size: 16px;
}

.package-actions {
    margin-top: 20px;
}

.vox-subscribe-btn {
    background: #00983f;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.vox-subscribe-btn:hover {
    background: #00983f;
    transform: translateY(-1px);
}

.vox-subscribe-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.btn-loading {
    display: none;
}

.vox-subscribe-btn.loading .btn-text {
    display: none;
}

.vox-subscribe-btn.loading .btn-loading {
    display: inline;
}

/* Kullanıcı Abonelikleri */
.vox-user-subscriptions {
    margin: 20px 0;
}

.vox-user-subscriptions h3 {
    margin-bottom: 20px;
    color: #333;
}

.subscriptions-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.subscription-item {
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    padding: 20px;
    background: #fff;
}

.subscription-item.status-active {
    border-left: 4px solid #28a745;
}

.subscription-item.status-expired {
    border-left: 4px solid #dc3545;
}

.subscription-item.status-cancelled {
    border-left: 4px solid #6c757d;
}

.subscription-item.status-paused {
    border-left: 4px solid #ffc107;
}

.subscription-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.subscription-header h4 {
    margin: 0;
    color: #333;
}

.status-badge {
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
}

.status-badge.status-active {
    background: #d4edda;
    color: #155724;
}

.status-badge.status-expired {
    background: #f8d7da;
    color: #721c24;
}

.status-badge.status-cancelled {
    background: #d1ecf1;
    color: #0c5460;
}

.status-badge.status-paused {
    background: #fff3cd;
    color: #856404;
}

.subscription-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.detail-item {
    font-size: 14px;
}

.detail-item strong {
    color: #333;
    display: block;
    margin-bottom: 2px;
}

/* Mesaj ve Hata Durumları */
.vox-no-packages,
.vox-no-subscriptions,
.vox-login-required {
    text-align: center;
    padding: 40px 20px;
    background: #f8f9fa;
    border-radius: 8px;
    margin: 20px 0;
}

.vox-login-btn {
    display: inline-block;
    background: #00983f;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 10px;
    transition: background 0.3s ease;
}

.vox-login-btn:hover {
    background: #005a87;
    color: white;
}

.vox-error {
    color: #dc3545;
    background: #f8d7da;
    padding: 10px 15px;
    border-radius: 5px;
    border: 1px solid #f5c6cb;
}

/* Responsive Design */
@media (max-width: 480px) {
    .vox-package {
        padding: 15px;
    }
    
    .package-title {
        font-size: 20px;
    }
    
    .price, .discounted-price {
        font-size: 24px;
    }
    
    .subscription-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .subscription-details {
        grid-template-columns: 1fr;
    }
}
