/*
 * GOONDEX LAYOUT
 * Structure, spacing, navbar, hero, stats, responsive tiers.
 */

/* ================================
 *   MAIN APP SHELL
 * =================================== */

body {
    background: var(--color-bg-dark);
    min-height: 100vh;
}

.app-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    color: var(--color-text-primary);
}

.app-body {
    width: 100%;
    max-width: 1800px;
    margin: 0 auto;
    padding: 1.5rem 0 3.5rem;
}

.main-wrapper {
    width: 100%;
}

/* Shared container */
.container {
    width: 100%;
    max-width: none;
    margin: 0 auto;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
}

@media (min-width: 1200px) {
    .container {
        padding-left: 2.5rem;
        padding-right: 2.5rem;
    }
}

/* Reusable elevated surface */
.surface-panel {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 20px;
    padding: 1.75rem;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.section-kicker {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-text-secondary);
    margin-bottom: 0.25rem;
}

.section-title {
    font-size: 1.4rem;
    font-weight: 700;
}

.section-hint {
    color: var(--color-text-secondary);
    font-size: 0.95rem;
}

.content-stack {
    display: grid;
    gap: 1.5rem;
}


/* ================================
 *   NAVBAR
 * =================================== */

.navbar {
    background: var(--color-bg-card);
    border-bottom: 1px solid var(--color-border);
    padding: 0.85rem 0;
    position: sticky;
    top: 0;
    z-index: 40;
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1800px;
    margin: 0 auto;
}

/* Bootstrap navbar controls */
.navbar .navbar-toggler {
    border-color: var(--color-border-soft);
    padding: 0.35rem 0.5rem;
}

.navbar .navbar-toggler:focus {
    box-shadow: none;
}

.navbar .navbar-toggler-icon {
    filter: invert(1);
}

/* Logo image control */
.logo-img {
    height: 42px;
    width: auto;
    display: block;
}

/* Navbar links */
.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--color-text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--transition-fast);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--color-brand);
}


/* ================================
 *   HERO SECTION
 * =================================== */

.hero-section {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 20px;
    padding: 3rem 2.5rem;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.hero-title {
    font-size: 2.8rem;
    font-weight: 800;
    background: linear-gradient(
        135deg,
        var(--color-brand),
                                var(--color-header)
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    margin-top: 1rem;
    font-size: 1.2rem;
    color: var(--color-text-secondary);
    max-width: 720px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.hero-actions .btn,
.hero-actions .btn-secondary {
    min-width: 180px;
}


/* ================================
 *   STATS GRID
 * =================================== */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 20px;
    padding: 1.4rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    transition: none;
}

.stat-icon {
    font-size: 2rem;
    opacity: 0.85;
}

.stat-content .stat-value {
    font-size: 1.9rem;
    font-weight: 700;
}

.stat-content .stat-label {
    color: var(--color-text-secondary);
    font-size: 0.95rem;
}

.stat-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-end;
}

.stat-link {
    font-size: 0.85rem;
    color: var(--color-brand-hover);
    text-decoration: none;
}

.stat-link:hover {
    text-decoration: underline;
}


/* ================================
 *   RESPONSIVE BREAKPOINTS
 * =================================== */

/* --- Small screens --- */
@media (max-width: 900px) {
    .main-wrapper {
        padding: 0 0.5rem;
    }
    .logo-img {
        height: 36px;
    }
    .hero-actions {
        justify-content: flex-start;
    }
}

/* --- Mobile adjustments (≤ 600px) --- */
@media (max-width: 600px) {
    .nav-links {
        gap: 1rem;
    }

    .hero-section {
        padding: 2.5rem 1.5rem;
    }

    .hero-title {
        font-size: 2.4rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .navbar .collapse {
        padding-top: 0.75rem;
    }

    .nav-links {
        flex-direction: column;
        gap: 0.75rem;
    }

    .nav-links .nav-link {
        padding: 0.35rem 0;
    }
}
