/* ============================================================
   NovaVPN — Main Stylesheet
   Companion to Tailwind CDN; handles custom classes & overrides
   ============================================================ */

/* --- Scroll Reveal (driven by IntersectionObserver in main.js) --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered transition delays */
.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }

/* --- Gradient text --- */
.text-gradient {
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-image: linear-gradient(to right, #ffffff, #fca5a5, #dc2626);
}

/* --- Glassmorphism (navbar, mobile menu) --- */
.glass {
    background: rgba(24, 24, 27, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(220, 38, 38, 0.15);
}

/* --- Global page red-black background --- */
.page-bg {
    background-color: #07050a;
    background-image:
        radial-gradient(ellipse 60% 35% at 50% -5%,  rgba(220, 38, 38, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse 40% 30% at 100% 20%,  rgba(180, 20, 20, 0.07) 0%, transparent 50%),
        radial-gradient(ellipse 40% 30% at 0%   80%,  rgba(220, 38, 38, 0.05) 0%, transparent 50%),
        url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNDAiIGhlaWdodD0iNDAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGRlZnM+PHBhdHRlcm4gaWQ9ImdyaWQiIHdpZHRoPSI0MCIgaGVpZ2h0PSI0MCIgcGF0dGVyblVuaXRzPSJ1c2VyU3BhY2VPblVzZSI+PHBhdGggZD0iTSAwIDEwIEwgNDAgMTAgTSAxMCAwIEwgMTAgNDAiIGZpbGw9Im5vbmUiIHN0cm9rZT0icmdiYSgyNTUsMjU1LDI1NSwwLjAxNSkiIHN0cm9rZS13aWR0aD0iMSIvPjwvcGF0dGVybj48L2RlZnM+PHJlY3Qgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgZmlsbD0idXJsKCNncmlkKSIvPjwvc3ZnPg==");
}

/* --- VPN Status Card --- */
.glow-green {
    text-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
}
.glow-dot {
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.8);
}
.glass-vpn {
    background: linear-gradient(145deg, rgba(30, 32, 41, 0.85) 0%, rgba(19, 21, 30, 0.95) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.04);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6),
                inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.vpn-ip-shimmer {
    background: linear-gradient(
        90deg,
        rgba(220, 38, 38, 0) 0%,
        rgba(220, 38, 38, 0.06) 50%,
        rgba(220, 38, 38, 0) 100%
    );
    transform: translateX(-100%);
    transition: transform 1s ease;
}
.group:hover .vpn-ip-shimmer {
    transform: translateX(100%);
}

/* --- Login / Auth page — form transition helpers --- */
.form-container {
    display: grid;
    grid-template-columns: 1fr;
    align-items: start;
}
.form-item {
    grid-area: 1 / 1 / 2 / 1;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.form-hidden {
    opacity: 0 !important;
    transform: translateY(10px) scale(0.98) !important;
    pointer-events: none !important;
    visibility: hidden !important;
    z-index: -1;
}

/* --- Blog Article prose typography --- */
.prose p {
    color: #d4d4d8;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-size: 1.0625rem;
}
.prose h2 {
    color: #ffffff;
    font-size: 1.75rem;
    font-weight: 700;
    margin-top: 3rem;
    margin-bottom: 1.25rem;
    letter-spacing: -0.025em;
}
.prose h3 {
    color: #f4f4f5;
    font-size: 1.25rem;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 1rem;
}
.prose ul {
    color: #d4d4d8;
    list-style-type: none;
    padding-left: 0;
    margin-bottom: 1.5rem;
}
.prose ul li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    line-height: 1.6;
}
.prose ul li::before {
    content: "—";
    color: #dc2626;
    position: absolute;
    left: 0;
    top: 0;
    font-weight: bold;
}
.prose blockquote {
    border-left: 4px solid #dc2626;
    background: linear-gradient(to right, rgba(220, 38, 38, 0.05), transparent);
    padding: 1.25rem 1.5rem;
    margin: 2.5rem 0;
    border-radius: 0 1rem 1rem 0;
    color: #e4e4e7;
    font-style: italic;
    font-size: 1.125rem;
    line-height: 1.7;
}
.prose a {
    color: #dc2626;
    text-decoration: none;
    border-bottom: 1px solid rgba(220, 38, 38, 0.3);
    transition: all 0.2s;
}
.prose a:hover {
    border-bottom-color: #dc2626;
    color: #f87171;
}

/* --- Policy / Legal page typography --- */
.policy-content h2 {
    color: #f4f4f5;
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.policy-content h3 {
    color: #e4e4e7;
    font-size: 1.125rem;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 1rem;
}
.policy-content p {
    margin-bottom: 1.25rem;
    line-height: 1.8;
}
.policy-content ul {
    list-style-type: none;
    padding-left: 0;
    margin-bottom: 1.5rem;
}
.policy-content ul li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    line-height: 1.6;
}
.policy-content ul li::before {
    content: "•";
    color: #dc2626;
    position: absolute;
    left: 0;
    top: 0;
    font-weight: bold;
}

/* --- FAQ Accordion --- */
.faq-answer {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.3s ease;
}
.faq-answer.open {
    opacity: 1;
}

/* --- Custom Scrollbar --- */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #07050a;
}
::-webkit-scrollbar-thumb {
    background: #3f3f46;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #dc2626;
}

/* --- Dashboard / Control Panel --- */
.glass-card {
    background: rgba(18, 18, 20, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(220, 38, 38, 0.12);
    box-shadow: 0 0 0 0 transparent, inset 0 1px 0 rgba(255,255,255,0.03);
}
.glass-card:hover {
    border-color: rgba(220, 38, 38, 0.25);
    box-shadow: 0 8px 40px rgba(220, 38, 38, 0.06);
}
.nav-item {
    border-right: 3px solid transparent;
}
.nav-item.active {
    background: rgba(220, 38, 38, 0.1);
    color: #ffffff;
    border-right: 3px solid #dc2626;
}
.nav-item:focus,
.nav-item:focus-visible {
    outline: none;
    box-shadow: none;
}
.nav-item:active {
    background: rgba(255, 255, 255, 0.05) !important;
}
.view-section {
    display: block;
    scroll-margin-top: 100px;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    margin-bottom: 2.5rem;
}
.view-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 4rem;
}
@keyframes dashFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}
.progress-fill {
    width: 0%;
    transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}
