/* Subscriptions Page Styles */

/* Hero Section */
.subscription-badge {
    --card-badge-height: 36px;
    position: absolute;
    top: 16px;
    right: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: var(--card-badge-height);
    min-width: 36px;
    padding: 0 1rem;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.92), rgba(59, 130, 246, 0.9));
    border: 1px solid transparent;
    color: #fff;
    font-weight: 800;
    font-size: 0.95rem;
    letter-spacing: 0.06em;
    box-shadow: 0 18px 36px rgba(59, 130, 246, 0.28);
    pointer-events: none;
    overflow: visible;
    z-index: 2;
}

.subscription-badge.is-emoji {
    font-size: 1.05rem;
    letter-spacing: 0;
    padding: 0 0.9rem;
    min-width: 42px;
}

.subscription-badge > * {
    line-height: 1;
    display: inline-flex;
    align-items: center;
}

/* subscription badges intentionally share same gradient as game-card badges */

/* reuse same static styling as game cards to stay consistent with games.html */

.subscriptions-hero {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    padding: 80px 0 60px;
    position: relative;
    overflow: hidden;
}

.subscriptions-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(139, 92, 246, 0.12) 0%, transparent 55%),
        radial-gradient(circle at 75% 15%, rgba(236, 72, 153, 0.14) 0%, transparent 60%);
    opacity: 0.6;
    animation: pulse 2s infinite;
    pointer-events: none;
}

.hero-title {
    font-size: 48px;
    font-weight: 800;
    color: white;
    margin-bottom: 20px;
    line-height: 1.2;
}

.gradient-text {
    background: linear-gradient(135deg, #8b5cf6, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 40px;
    line-height: 1.6;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    font-weight: 600;
}

.stat-item i {
    color: #ec4899;
    font-size: 20px;
}

/* Subscriptions Section */
.subscriptions-section {
    padding: 22px 0 60px;
    margin-top: -24px;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 36px;
    font-weight: 800;
    color: white;
    margin-bottom: 10px;
}

.section-header p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.6);
}

.subscriptions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.subscription-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 100%;
    padding: 24px;
    border-radius: 18px;
    background: rgba(12, 15, 25, 0.92);
    border: 1px solid rgba(148, 163, 184, 0.16);
    box-shadow: 0 18px 28px rgba(4, 6, 15, 0.55);
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1),
                border-color 0.28s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    cursor: pointer;
}

html[data-theme="light"] .subscription-card {
    background: #ffffff;
    border-color: rgba(15, 23, 42, 0.08);
    box-shadow: 0 18px 30px rgba(15, 23, 42, 0.12);
}

.subscription-card:hover,
.subscription-card:focus-visible,
.subscription-card:focus-within {
    transform: translateY(-4px);
    border-color: rgba(236, 72, 153, 0.6);
    box-shadow: 0 24px 40px rgba(236, 72, 153, 0.28);
}


.subscription-icon {
    width: 72px;
    height: 72px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

.subscription-icon i {
    font-size: 34px;
}

.subscription-icon.has-image {
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(15, 23, 42, 0.35);
}

.subscription-icon.has-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 16px;
    background: transparent;
}

.subscription-name {
    font-size: 22px;
    font-weight: 700;
    color: white;
    margin-bottom: 6px;
}

.subscription-description {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.68);
    margin-bottom: 16px;
    line-height: 1.4;
}

.subscription-features {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 18px;
    flex-grow: 1;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
}

.feature-item i {
    color: #10b981;
    font-size: 12px;
}

.subscription-pricing {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px;
    background: rgba(99, 102, 241, 0.12);
    border-radius: 12px;
    margin-top: auto;
}

html[data-theme="light"] .subscription-pricing {
    background: rgba(99, 102, 241, 0.08);
}

.price-info {
    display: flex;
    flex-direction: column;
}

.price-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.price-wrapper {
    display: flex;
    align-items: baseline;
    gap: 5px;
}

.price-old {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.45);
    text-decoration: line-through;
    font-weight: 600;
}

.price {
    font-size: 32px;
    font-weight: 800;
    color: #10b981;
}

html[data-theme="light"] .price-old {
    color: rgba(15, 23, 42, 0.5);
}

.price-period {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

.subscription-btn {
    width: 100%;
    padding: 14px 18px;
    border-radius: 12px;
    background: linear-gradient(135deg, #8b5cf6, #ec4899);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: none;
    text-decoration: none;
    box-shadow: 0 14px 30px rgba(236, 72, 153, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    margin-top: 16px;
}

.subscription-btn:hover,
.subscription-btn:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 18px 36px rgba(236, 72, 153, 0.4);
}

/* Modal Styles */
.subscription-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.subscription-modal.active {
    opacity: 1;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
}

.modal-content {
    position: relative;
    background: linear-gradient(135deg, #2a2a3e 0%, #16151f 100%);
    border-radius: 20px;
    max-width: 900px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 40px;
    border: 2px solid rgba(139, 92, 246, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.subscription-modal.active .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.2s;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.modal-header {
    text-align: center;
    margin-bottom: 40px;
}

.modal-icon {
    width: 100px;
    height: 100px;
    border-radius: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.modal-icon i {
    font-size: 50px;
}

.modal-header h2 {
    font-size: 32px;
    font-weight: 800;
    color: white;
    margin-bottom: 10px;
}

.modal-header p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.6);
}

.modal-plans h3 {
    font-size: 24px;
    font-weight: 700;
    color: white;
    margin-bottom: 25px;
}

.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.plan-card {
    background: rgba(139, 92, 246, 0.05);
    border: 2px solid rgba(139, 92, 246, 0.2);
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    transition: all 0.3s;
    position: relative;
}

.plan-card.popular {
    border-color: #ec4899;
    background: rgba(236, 72, 153, 0.1);
}

.plan-card:hover {
    transform: translateY(-5px);
    border-color: #8b5cf6;
}

.plan-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #ec4899, #8b5cf6);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    white-space: nowrap;
}

.plan-duration {
    font-size: 16px;
    font-weight: 700;
    color: white;
    margin-bottom: 15px;
}

.plan-pricing {
    margin-bottom: 10px;
}

.plan-old-price {
    font-size: 14px;
    color: #6b7280;
    text-decoration: line-through;
    margin-bottom: 5px;
}

.plan-price {
    font-size: 28px;
    font-weight: 800;
    color: #10b981;
    margin-bottom: 5px;
}

.plan-discount {
    display: inline-block;
    background: #ef4444;
    color: white;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
}

.plan-per-month {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 15px;
}

.plan-select-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #8b5cf6, #ec4899);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.plan-select-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(139, 92, 246, 0.4);
}

.modal-features h3 {
    font-size: 24px;
    font-weight: 700;
    color: white;
    margin-bottom: 20px;
}

.features-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.features-list .feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: white;
    font-size: 15px;
}

.features-list .feature-item i {
    color: #10b981;
    font-size: 18px;
}

/* Benefits Section */
.benefits-section {
    padding: 60px 0;
    background: rgba(139, 92, 246, 0.03);
}

.section-title {
    text-align: center;
    font-size: 36px;
    font-weight: 800;
    color: white;
    margin-bottom: 50px;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.benefit-card {
    background: linear-gradient(135deg, #2a2a3e 0%, #16151f 100%);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    border: 2px solid transparent;
    transition: all 0.3s;
}

.benefit-card:hover {
    border-color: #8b5cf6;
    transform: translateY(-5px);
}

.benefit-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, #8b5cf6, #ec4899);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.benefit-icon i {
    font-size: 30px;
    color: white;
}

.benefit-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: white;
    margin-bottom: 10px;
}

.benefit-card p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
}

/* Light Theme */
[data-theme="light"] .subscriptions-hero {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

[data-theme="light"] .hero-title,
[data-theme="light"] .section-header h2,
[data-theme="light"] .section-title {
    color: #1f2937;
}

[data-theme="light"] .hero-description,
[data-theme="light"] .section-header p {
    color: #6b7280;
}

[data-theme="light"] .stat-item {
    color: #1f2937;
}

[data-theme="light"] .subscription-card {
    background: white;
    border-color: #e2e8f0;
}

[data-theme="light"] .subscription-card:hover {
    border-color: #8b5cf6;
    box-shadow: 0 20px 40px rgba(139, 92, 246, 0.15);
}

[data-theme="light"] .subscription-name {
    color: #1f2937;
}

[data-theme="light"] .subscription-description {
    color: #6b7280;
}

[data-theme="light"] .feature-item {
    color: #4b5563;
}

[data-theme="light"] .modal-content {
    background: white;
}

[data-theme="light"] .modal-header h2,
[data-theme="light"] .modal-plans h3,
[data-theme="light"] .modal-features h3 {
    color: #1f2937;
}

[data-theme="light"] .modal-header p {
    color: #6b7280;
}

[data-theme="light"] .plan-duration {
    color: #1f2937;
}

[data-theme="light"] .features-list .feature-item {
    color: #1f2937;
}

[data-theme="light"] .benefit-card {
    background: white;
    border-color: #e2e8f0;
}

[data-theme="light"] .benefit-card h3 {
    color: #1f2937;
}

[data-theme="light"] .benefit-card p {
    color: #6b7280;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 32px;
    }
    
    .subscriptions-grid {
        grid-template-columns: 1fr;
    }
    
    .plans-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        padding: 25px;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
    }
}