/* ================================================================
   pages/styles.css  —  Landing Page (landing.ejs)
   Project T.A.H.I.T.I. Account Portal — Refactored CSS System

   The landing page has a full-page background image and
   Bootstrap-based layout with glass cards.
   ================================================================ */

/* ── Variables ─────────────────────────────────────────────────── */
:root {
    --landing-accent: #e63946;
}

/* ── Background & overlay ───────────────────────────────────────── */
.body-general-background {
    background: url("/static/img/main_background.jpg") top / cover no-repeat fixed;
    min-height: 100vh;
    color: #e8eaf0;
    position: relative;
    overflow-x: hidden;
}

#particles-js {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.gradient-overlay {
    position: fixed;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.18) 100%);
    z-index: 2;
    pointer-events: none;
}

/* Ensure content renders above overlay */
.hero-section,
.requirements-section,
.setup-section,
.footer-modern {
    position: relative;
    z-index: 3;
}

/* Navbar needs a higher stacking context than page sections so its
   dropdown doesn't get painted over by the hero-section below it */
.navbar {
    position: relative;
    z-index: 100;
}

/* ── Navbar ─────────────────────────────────────────────────────── */
.navbar-modern {
    background: rgba(0, 0, 0, 0.22);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    margin: 1.25rem auto;
    border-radius: var(--radius-xl);
    border: 1px solid rgba(255,255,255,0.18);
    box-shadow: 0 4px 30px rgba(0,0,0,0.12);
}

.navbar-logo {
    background: url("/static/img/tahiti_small.png") center / contain no-repeat;
    width: 40px;
    height: 40px;
    transition: transform 0.3s ease;
}

.navbar-logo:hover { transform: scale(1.08) rotate(-3deg); }

/* ── Hover effects ──────────────────────────────────────────────── */
.hover-underline {
    position: relative;
    padding-bottom: 5px;
}

.hover-underline::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background: var(--landing-accent);
    transition: width 0.3s ease;
}

.hover-underline:hover::after { width: 100%; }

/* Landing nav — suppress the red underline on hover (static page, no theme toggle) */
.navbar-modern .hover-underline::after { display: none; }

.hover-float { transition: transform 0.3s ease; }
.hover-float:hover { transform: translateY(-5px); }

/* ── Glow / pulse ───────────────────────────────────────────────── */
.glow-text { text-shadow: 0 0 18px rgba(255,255,255,0.28); }

.pulse-button { position: relative; animation: pulse-cta 2s infinite; }

@keyframes pulse-cta {
    0%  { box-shadow: 0 0 0 0   rgba(230,57,70,0.45); }
    70% { box-shadow: 0 0 0 12px rgba(230,57,70,0); }
    100%{ box-shadow: 0 0 0 0   rgba(230,57,70,0); }
}

/* ── Hero ───────────────────────────────────────────────────────── */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-section h1 {
    font-size: 3.75rem;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.9s ease both;
    color: #e8eaf0;          /* light — no pure white */
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(22px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── MOTD ───────────────────────────────────────────────────────── */
.motd-container {
    max-width: 1100px;
    margin: 2rem auto;
    padding: 0 1rem;
    z-index: 3;
    position: relative;
}

.motd-content {
    text-align: center;
    padding: 0.5rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.motd-quote   { font-style: italic; font-size: 1.1rem; color: #e8eaf0; }
.motd-speaker { font-weight: bold;  font-size: 1.1rem; color: #e8eaf0; }

/* ── Glass cards ────────────────────────────────────────────────── */
/* .glass-card is defined globally in components.css.
   Landing-page variant adds an extra hover brightness. */
.landing-glass-card {
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: var(--radius-xl);
    padding: 2rem;
    transition: var(--transition-slow);
    box-shadow: 0 4px 30px rgba(0,0,0,0.14);
}

.landing-glass-card:hover {
    transform: translateY(-9px);
    box-shadow: 0 18px 64px rgba(0,0,0,0.32);
}

/* ── Sections ───────────────────────────────────────────────────── */
.requirements-section,
.setup-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
}

/* ── Footer ─────────────────────────────────────────────────────── */
.footer-modern {
    background: rgba(0,0,0,0.30);
    border-top: 1px solid rgba(255,255,255,0.10);
    padding: 2rem 0;
}

.footer-content {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 15px;
}

.footer-content a {
    color: #e8eaf0;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 8px 16px;
    border-radius: 8px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.18);
}

.footer-content a:hover {
    color: #e63946;
    background: rgba(255,255,255,0.15);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.footer-text {
    text-align: center;
    color: rgba(255,255,255,0.45);
    font-size: 0.8rem;
    margin: 0;
    padding: 10px 0;
    letter-spacing: 0.3px;
}

/* ── Section helpers ────────────────────────────────────────────── */
.section-title {
    color: #e8eaf0;
    font-size: 2.4rem;
    margin-bottom: 2rem;
    text-shadow: 0 0 10px rgba(255,255,255,0.25);
}

.section-divider {
    height: 50px;
    width: 100%;
    background: linear-gradient(to bottom, transparent, rgba(0,0,0,0.18), transparent);
}

/* ── Glass card (landing-specific — explicit rgba, not token-based) */
.glass-card {
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.18);
    padding: 2rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 30px rgba(0,0,0,0.12);
    color: #e8eaf0;
}

.glass-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 60px rgba(0,0,0,0.3);
    backdrop-filter: blur(15px);
}

/* ── Navbar dropdown ────────────────────────────────────────────── */
.dropdown-menu.glass-dropdown {
    background: rgba(0,0,0,0.80);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 8px;
    padding: 0.5rem 0;
    margin-top: 0.5rem;
    position: absolute;
    left: 0;
    z-index: 10000;
    pointer-events: auto;
    min-width: 100%;
}

.glass-dropdown .dropdown-item {
    color: #e8eaf0;
    padding: 0.5rem 1.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
    pointer-events: auto;
    position: relative;
    z-index: 10001;
}

.glass-dropdown .dropdown-item:hover {
    background: rgba(230,57,70,0.2);
    color: #e63946;
}

/* ── Scroll progress bar ────────────────────────────────────────── */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: #e63946;
    z-index: 9999;
    transition: width 0.2s ease;
}

/* ── Hero helpers ───────────────────────────────────────────────── */
.hero-heading {
    margin-top: 10rem;
}

.hero-stats {
    margin: 1.5rem 0 1rem;
}

/* ── Award banner ───────────────────────────────────────────────── */
.award-banner {
    background: linear-gradient(45deg, #1a1a2e, #16213e);
    border: 2px solid #ffd700;
    border-radius: 10px;
    padding: 15px;
    margin: 20px 0;
    box-shadow: 0 0 20px rgba(255,215,0,0.45);
    color: #fff;
}

/* ── Doomsday clock ─────────────────────────────────────────────── */
.doomsday-clock {
    margin: 1.5rem auto 2rem;
    display: inline-block;
}

.clock-title {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(255,255,255,0.55);
    margin-bottom: 0.75rem;
}

.time-units {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.time-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
}

.time-value {
    font-size: 2.4rem;
    font-weight: 700;
    line-height: 1;
    color: #fff;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 8px;
    padding: 0.4rem 0.8rem;
    min-width: 3rem;
    text-align: center;
}

.time-label {
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255,255,255,0.45);
}

/* ── Server status dot ──────────────────────────────────────────── */
.server-status-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-left: 5px;
}

.online  { background-color: #2ecc71; box-shadow: 0 0 5px #2ecc71; }
.offline { background-color: #e74c3c; box-shadow: 0 0 5px #e74c3c; }

/* ── Responsive ─────────────────────────────────────────────────── */
@media (max-width: 992px) {
    .hero-section h1 { font-size: 3rem; }
    .section-title   { font-size: 2rem; }
    .glass-card      { padding: 1.5rem; }
}

@media (max-width: 768px) {
    .navbar-collapse {
        text-align: right;
        padding-top: 1rem;
    }

    .navbar-nav {
        align-items: flex-end;
        gap: 1rem;
    }

    .dropdown-menu.glass-dropdown {
        position: relative;
        text-align: right;
        z-index: 10000;
        pointer-events: auto;
        min-width: 200px;
        display: none;
    }

    .dropdown-menu.glass-dropdown.show {
        display: inline-block;
        width: auto;
        min-width: 150px;
        max-width: 150px;
        position: relative;
        margin-bottom: -6rem;
    }

    .nav-item {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: flex-end;
    }

    .dropdown {
        display: flex;
        justify-content: flex-end;
        width: 100%;
    }

    .dropdown-item {
        padding: 0.5rem 1rem;
        text-align: right;
    }

    .particles-js-canvas-el { opacity: 0.5; }
    .navbar-modern           { margin: 10px; }
    .glass-card              { margin-bottom: 30px; }
    .hero-section h1         { font-size: 2.5rem; }
    .hero-section .lead      { font-size: 1.1rem; }
}

@media (max-width: 576px) {
    .hero-section h1  { font-size: 2rem; }
    .glass-card       { padding: 1.25rem; }
    .glass-card li    { font-size: 1rem; }
    .footer-content   { flex-direction: column; align-items: center; gap: 15px; }
    .pulse-button     { animation: none; }
    .time-value       { font-size: 1.8rem; padding: 0.3rem 0.6rem; min-width: 2.5rem; }
    .time-units       { gap: 0.5rem; }
}

/* ── Global overrides for landing page ──────────────────────────── */
html {
    scroll-behavior: smooth;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

html::-webkit-scrollbar { display: none; }

body { overflow-x: hidden; }

