/* ============================
   LIZIU DSA - Auth & Premium Styles
   ============================ */

/* ---- Auth Modal Overlay ---- */
.auth-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 1200;
    align-items: center;
    justify-content: center;
}

.auth-modal-overlay.visible {
    display: flex;
    animation: fadeIn 0.2s ease-out;
}

.auth-modal {
    background: var(--white, #fff);
    border-radius: 16px;
    padding: 2.5rem;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    position: relative;
    animation: scaleIn 0.2s ease-out;
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.auth-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #9CA3AF;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.15s;
}

.auth-modal-close:hover {
    background: #F3F4F6;
    color: #374151;
}

.auth-modal-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.auth-modal-header svg {
    margin: 0 auto 1rem;
}

.auth-modal-header h3 {
    font-size: 1.375rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.5rem;
}

.auth-modal-header p {
    font-size: 0.875rem;
    color: #6B7280;
    margin: 0;
}

/* Auth Buttons */
.auth-modal-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.auth-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid #E5E7EB;
    width: 100%;
}

.auth-btn-google {
    background: #fff;
    color: #374151;
}

.auth-btn-google:hover {
    background: #F9FAFB;
    border-color: #D1D5DB;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.auth-btn-github {
    background: #24292F;
    color: #fff;
    border-color: #24292F;
}

.auth-btn-github:hover {
    background: #1B1F23;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.auth-modal-footer {
    text-align: center;
    font-size: 0.75rem;
    color: #9CA3AF;
    margin: 1.25rem 0 0;
}

/* ---- Premium Gate ---- */
.premium-gate {
    max-width: 600px;
    margin: 3rem auto;
    padding: 0 1.5rem;
    text-align: center;
}

.premium-gate-content {
    background: #fff;
    border: 1px solid #E5E7EB;
    border-radius: 16px;
    padding: 3rem 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.premium-gate-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.premium-gate-content h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.75rem;
}

.premium-gate-content > p {
    color: #6B7280;
    font-size: 0.9375rem;
    line-height: 1.6;
    max-width: 440px;
    margin: 0 auto 1.5rem;
}

.premium-gate-features {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    text-align: left;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
}

.premium-feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #374151;
}

.premium-check {
    color: #10B981;
    font-weight: 700;
}

.premium-gate-cta {
    margin-bottom: 1rem;
}

.premium-gate-free {
    font-size: 0.8125rem;
    color: #9CA3AF;
}

.premium-gate-free strong {
    color: #6B7280;
}

/* ---- Locked Card State ---- */
.topic-card.locked {
    opacity: 0.6;
    position: relative;
}

.topic-card.locked::after {
    content: 'Premium';
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: #FEF3C7;
    color: #92400E;
    padding: 2px 8px;
    border-radius: 4px;
}

.topic-card.locked:hover {
    transform: none;
    box-shadow: none;
}

.mini-card.locked {
    opacity: 0.5;
    pointer-events: none;
}

.mini-card.locked::after {
    content: '🔒';
    font-size: 0.625rem;
}

/* ---- Pricing Modal ---- */
.pricing-modal {
    background: #fff;
    border-radius: 16px;
    padding: 2.5rem;
    max-width: 920px;
    width: 95%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    position: relative;
    animation: scaleIn 0.2s ease-out;
}

.pricing-header {
    text-align: center;
    margin-bottom: 2rem;
}

.pricing-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.5rem;
}

.pricing-header p {
    color: #6B7280;
    font-size: 0.9375rem;
    margin: 0;
}

.pricing-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.pricing-card {
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    padding: 1.5rem;
    position: relative;
}

.pricing-card-featured {
    border-color: #8B5CF6;
    box-shadow: 0 0 0 1px #8B5CF6;
}

.pricing-card-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #8B5CF6, #6D28D9);
    color: #fff;
    font-size: 0.6875rem;
    font-weight: 700;
    padding: 2px 12px;
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.pricing-card-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: #6B7280;
    margin-bottom: 0.5rem;
}

.pricing-card-price {
    margin-bottom: 1rem;
}

.pricing-amount {
    font-size: 2rem;
    font-weight: 800;
    color: #111827;
}

.pricing-period {
    font-size: 0.875rem;
    color: #9CA3AF;
    margin-left: 0.25rem;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 1.25rem;
}

.pricing-features li {
    padding: 0.375rem 0;
    font-size: 0.8125rem;
    color: #374151;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pricing-features li::before {
    content: '\2713';
    color: #10B981;
    font-weight: 700;
    font-size: 0.75rem;
}

.pricing-btn {
    width: 100%;
}

.pricing-card-desc {
    font-size: 0.8125rem;
    color: #6B7280;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.pricing-best-for {
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid #F3F4F6;
    font-size: 0.75rem;
    color: #9CA3AF;
    line-height: 1.4;
}

.pricing-best-for strong {
    color: #6B7280;
}

.pricing-footer {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #F3F4F6;
    font-size: 0.8125rem;
    color: #9CA3AF;
}

.pricing-footer span::before {
    content: '\2713';
    color: #10B981;
    margin-right: 0.375rem;
    font-weight: 700;
}

/* ---- Admin Badge ---- */
.admin-badge {
    font-size: 0.5rem;
    background: #EF4444;
    color: #fff;
    padding: 1px 4px;
    border-radius: 3px;
    margin-left: 4px;
    vertical-align: super;
    font-weight: 700;
    letter-spacing: 0.05em;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .pricing-cards {
        grid-template-columns: 1fr;
    }

    .pricing-footer {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .auth-modal {
        padding: 1.5rem;
    }

    .pricing-modal {
        padding: 1.5rem;
    }

    .premium-gate-content {
        padding: 2rem 1.5rem;
    }
}
