/* ==========================================================================
   Design System & Mobile-Locked Global Common Styles (500px App Frame)
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Playfair+Display:ital,wght@0,600;0,700;0,800;1,600&display=swap');

:root {
    /* Primary Colors */
    --primary-color: #3b5d50;          /* Deep Emerald / Forest Green */
    --primary-dark: #2a453b;           /* Darker Green */
    --primary-light: #e8f0ec;          /* Light Green Tint */
    --primary-accent: #233e34;         /* Rich Slate Green */
    
    /* Accent & Highlights */
    --accent-gold: #f9bf29;            /* Warm Amber / Golden Honey */
    --accent-gold-hover: #f8b810;      /* Darker Gold */
    --accent-gold-light: #fff8e7;      /* Light Gold Background */
    --accent-coral: #e76f51;           /* Badge / Live Accent */

    /* Backgrounds */
    --bg-desktop-canvas: #1e3a30;      /* Outer Desktop Green Canvas */
    --bg-page: #eff2f1;                /* Signature Mobile Canvas */
    --bg-white: #ffffff;               /* Clean White for Cards */
    --bg-section-alt: #f8f9fa;         /* Clean Alt Section */
    --bg-dark: #233e34;                /* Deep Dark Green Section */
    --bg-charcoal: #2f2f2f;            /* Dark Slate Charcoal */

    /* Typography Colors */
    --text-heading: #2f2f2f;           /* Strong Dark Charcoal */
    --text-body: #6a6a6a;              /* Neutral Slate Gray */
    --text-muted: #8d9793;             /* Muted Gray */
    --text-white: #ffffff;             /* Crisp White */
    --text-white-dim: rgba(255, 255, 255, 0.85);

    /* Borders & Dividers */
    --border-color: #dce5e1;           /* Soft Border */
    --border-light: #edf2ef;           /* Extra Soft Border */
    --border-green: rgba(59, 93, 80, 0.15);

    /* Shadows */
    --shadow-sm: 0 3px 10px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 8px 20px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 15px 35px rgba(0, 0, 0, 0.09);
    --shadow-gold: 0 8px 20px rgba(249, 191, 41, 0.35);

    /* Border Radii */
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-pill: 50px;

    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);

    /* Fonts */
    --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Base Reset */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    background-color: var(--bg-desktop-canvas);
}

body {
    font-family: var(--font-sans);
    color: var(--text-body);
    background-color: var(--bg-desktop-canvas);
    line-height: 1.6;
    overflow-x: hidden;
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    display: flex;
    justify-content: center;
    min-height: 100vh;
}

/* ==========================================================================
   Mobile-Locked Frame Container (Centered on all devices)
   ========================================================================== */
.app-container {
    width: 100%;
    max-width: 480px;
    min-height: 100vh;
    background-color: var(--bg-page);
    position: relative;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.55);
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    margin: 0 auto;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-sans);
    color: var(--text-heading);
    font-weight: 700;
    line-height: 1.25;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
    transition: var(--transition);
}

/* Section Global Utilities */
.container {
    width: 100%;
    padding: 0 16px;
    box-sizing: border-box;
}

main {
    flex-grow: 1;
    padding-top: 102px; /* Offset for the Fixed Top Header & App Bar */
    padding-bottom: 75px; /* Space for Fixed Bottom Bar */
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg-page);
}
::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
}

/* ==========================================================================
   Fixed Top Header Container (Top Announcement Bar + Header Navbar)
   ========================================================================== */
.fixed-top-header {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

/* Top Announcement / App Download Bar */
.top-app-bar {
    background: linear-gradient(90deg, #1f4236, #3b5d50);
    color: var(--text-white);
    padding: 7px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.76rem;
    font-weight: 600;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.top-app-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.top-app-left img {
    width: 22px;
    height: 22px;
    border-radius: 6px;
}

.top-app-badge {
    background-color: var(--accent-gold);
    color: var(--text-heading);
    padding: 1px 6px;
    border-radius: 4px;
    font-weight: 800;
    font-size: 0.68rem;
}

.top-app-btn {
    background-color: #2ec4b6;
    color: var(--text-white);
    padding: 3px 10px;
    border-radius: var(--radius-pill);
    font-size: 0.72rem;
    font-weight: 700;
    display: inline-block;
    transition: var(--transition);
}

.top-app-btn:hover {
    background-color: #20a396;
}

/* Header Navbar */
header {
    background-color: var(--primary-color);
    width: 100%;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 14px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mobile-menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 4.5px;
    padding: 4px;
    cursor: pointer;
}

.mobile-menu-toggle span {
    display: block;
    width: 20px;
    height: 2.5px;
    background-color: var(--text-white);
    border-radius: 2px;
    transition: var(--transition);
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}
.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.logo img {
    height: 36px;
    width: auto;
    object-fit: contain;
}

.header-auth {
    display: flex;
    align-items: center;
    gap: 6px;
}

.header-auth .btn-auth-login {
    background-color: #123528;
    color: var(--text-white);
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    font-weight: 700;
    font-size: 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.header-auth .btn-auth-register {
    background-color: var(--accent-gold);
    color: var(--text-heading);
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    font-weight: 800;
    font-size: 0.8rem;
    box-shadow: 0 3px 10px rgba(249, 191, 41, 0.35);
}

.header-auth .btn-auth-register:hover {
    background-color: var(--accent-gold-hover);
}

/* Slide-out Navigation Drawer */
.nav-list {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--primary-dark);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    z-index: 999;
}

.nav-list.active {
    max-height: 400px;
    overflow-y: auto;
}

.nav-list ul {
    padding: 10px 16px;
    display: flex;
    flex-direction: column;
}

.nav-list a {
    color: var(--text-white);
    font-size: 0.95rem;
    font-weight: 600;
    display: block;
    padding: 10px 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-list a:hover {
    color: var(--accent-gold);
}

/* ==========================================================================
   Footer
   ========================================================================== */
footer {
    background-color: var(--bg-white);
    padding: 2.5rem 14px 1.5rem;
    color: var(--text-body);
    border-top: 1px solid var(--border-color);
}

.footer-brand {
    text-align: center;
    margin-bottom: 1.8rem;
}

.footer-brand .footer-logo {
    height: 40px;
    margin: 0 auto 0.8rem;
    object-fit: contain;
}

.footer-brand .footer-desc {
    font-size: 0.85rem;
    line-height: 1.6;
    color: var(--text-muted);
}

.footer-social-list {
    display: flex;
    justify-content: center;
    gap: 0.6rem;
    margin-top: 1rem;
}

.footer-social-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--bg-page);
    color: var(--primary-color);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.footer-social-btn:hover {
    background-color: var(--primary-color);
    color: var(--text-white);
}

.footer-links-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.8rem;
}

.footer-nav h4 {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: 0.8rem;
    position: relative;
    padding-bottom: 0.3rem;
}

.footer-nav h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 24px;
    height: 2px;
    background-color: var(--accent-gold);
}

.footer-nav ul {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-nav a {
    font-size: 0.82rem;
    color: var(--text-body);
}

.footer-nav a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 1.2rem;
    text-align: center;
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* ==========================================================================
   Mobile Fixed Bottom Navigation Bar (Centered with 480px width constraint)
   ========================================================================== */
.mobile-bottom-bar {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    background-color: #1a362b;
    padding: 10px 14px;
    z-index: 1005;
    gap: 10px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    box-sizing: border-box;
}

.mobile-bottom-bar a {
    flex: 1;
    text-align: center;
    padding: 11px 0;
    font-weight: 800;
    font-size: 0.88rem;
    border-radius: var(--radius-pill);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.mobile-bottom-bar .btn-login {
    background: #10261e;
    color: var(--text-white);
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.mobile-bottom-bar .btn-register {
    background: var(--accent-gold);
    color: var(--text-heading);
    box-shadow: 0 4px 12px rgba(249, 191, 41, 0.4);
}