@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
    /* Reference Palette: Executive Deep Navy & Vibrant Orange */
    --navy-deep: #081738;
    --navy-dark: #0b1d44;
    --navy-card: #0d2252;
    --navy-surface: #142a5d;
    --navy-light: #1c3879;
    
    --orange-primary: #ff5f15;
    --orange-hover: #e54f06;
    --orange-soft: #fff3ec;
    --orange-glow: rgba(255, 95, 21, 0.35);

    --bg-desktop: #040c1e; /* Sleek dark frame backdrop for laptop/desktop */
    --bg-page: #f8fafc;
    --bg-white: #ffffff;
    --bg-subtle: #f1f5f9;

    --text-navy: #081738;
    --text-body: #475569;
    --text-muted: #64748b;
    --text-white: #ffffff;
    --text-light-muted: #94a3b8;

    --border-light: #e2e8f0;
    --border-subtle: #f1f5f9;
    --border-navy: rgba(255, 255, 255, 0.12);

    --shadow-sm: 0 2px 8px rgba(8, 23, 56, 0.05);
    --shadow-md: 0 8px 24px rgba(8, 23, 56, 0.09);
    --shadow-lg: 0 16px 36px rgba(8, 23, 56, 0.14);
    --shadow-orange: 0 8px 22px rgba(255, 95, 21, 0.32);

    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-pill: 9999px;

    --transition: all 0.25s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

/* Body centered on desktop/laptop like an app shell */
body {
    background-color: var(--bg-desktop);
    color: var(--text-body);
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.55;
    font-size: 14px;
    display: flex;
    justify-content: center;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Mobile Shell Wrapper: Confined to 480px even on laptop */
.mobile-shell {
    width: 100%;
    max-width: 480px;
    background-color: var(--bg-page);
    min-height: 100vh;
    position: relative;
    box-shadow: 0 0 60px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.08);
    padding-top: 58px;
    padding-bottom: 58px; /* space for bottom bar */
    overflow-x: hidden;
}

/* Container */
.container {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    padding: 0 16px;
    box-sizing: border-box;
}

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

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

ul {
    list-style: none;
}

/* ==========================================================================
   Header (Fixed at top of Mobile Frame)
   ========================================================================== */
.header {
    background: var(--navy-deep);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    z-index: 1200;
    padding: 8px 12px;
    height: 56px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0;
    height: 100%;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    flex-shrink: 1;
}

.header-back-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: var(--transition);
    flex-shrink: 0;
}

.header-back-link:hover,
.header-back-link:active {
    background: var(--orange-primary);
    color: #ffffff;
    border-color: var(--orange-primary);
}

.logo {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-white);
    letter-spacing: -0.3px;
    min-width: 0;
}

.logo img {
    height: 32px;
    width: auto;
    display: block;
    object-fit: contain;
    flex-shrink: 0;
}

.logo-text {
    font-weight: 800;
    letter-spacing: -0.3px;
    font-size: 1.05rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 130px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.btn-login-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #cbd5e1;
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.04);
    transition: var(--transition);
    letter-spacing: 0.3px;
}

.btn-login-link:hover {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.1);
}

.btn-signup {
    background: var(--orange-primary);
    color: #ffffff;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-weight: 800;
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    box-shadow: var(--shadow-orange);
    transition: var(--transition);
}

.btn-signup:hover {
    background: var(--orange-hover);
    color: #ffffff;
}

/* Full Screen Mobile Menu Toggle Button */
.mobile-menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 8px;
    width: 34px;
    height: 34px;
    padding: 7px 6px;
    cursor: pointer;
    z-index: 1350;
    transition: var(--transition);
    position: relative;
    flex-shrink: 0;
}

.mobile-menu-toggle:hover {
    background: rgba(255, 255, 255, 0.16);
}

.mobile-menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: #ffffff;
    border-radius: 2px;
    transition: var(--transition);
}

.mobile-menu-toggle.active {
    background: var(--orange-primary);
    border-color: var(--orange-primary);
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

/* Full Screen Mobile Menu Overlay */
.nav-list {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    height: 100vh;
    height: 100dvh;
    background: #081738;
    background: radial-gradient(circle at 50% 15%, #0f2b69 0%, #061126 90%);
    z-index: 1250;
    padding: 68px 16px 36px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.nav-list::-webkit-scrollbar {
    display: none;
}

.nav-list.active {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

/* Menu Top Action Banner */
.menu-action-buttons {
    display: grid !important;
    grid-template-columns: 1fr 1.35fr;
    gap: 8px;
    margin-bottom: 10px;
    width: 100%;
    list-style: none;
}

.menu-btn-login {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 11px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.2);
    letter-spacing: 0.5px;
    transition: var(--transition);
}

.menu-btn-login:hover {
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
}

.menu-btn-register {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: var(--orange-primary);
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
    padding: 11px;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-orange);
    letter-spacing: 0.5px;
    transition: var(--transition);
}

.menu-btn-register:hover {
    background: var(--orange-hover);
    color: #ffffff;
}

.menu-section-label {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: var(--orange-primary);
    text-transform: uppercase;
    padding: 4px 2px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 2px;
    list-style: none;
}

/* Full Screen Menu Items */
.nav-list li {
    list-style: none;
    width: 100%;
}

.nav-list li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 12px 16px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #ffffff;
    font-size: 0.92rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    transition: var(--transition);
}

.nav-list li a:hover,
.nav-list li a:active {
    background: var(--orange-primary);
    border-color: var(--orange-primary);
    color: #ffffff;
    transform: translateX(3px);
    box-shadow: 0 4px 15px rgba(255, 95, 21, 0.35);
}

.menu-link-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.menu-link-icon {
    font-size: 1.15rem;
    line-height: 1;
}

.menu-link-arrow {
    stroke: rgba(255, 255, 255, 0.45);
    transition: var(--transition);
}

.nav-list li a:hover .menu-link-arrow {
    stroke: #ffffff;
    transform: translateX(3px);
}

/* Menu Footer Support Box */
.menu-footer-box {
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: center;
    list-style: none;
}

.menu-footer-cs {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.05);
    padding: 9px;
    border-radius: var(--radius-sm);
    color: #cbd5e1;
    font-size: 0.76rem;
    font-weight: 700;
}

.menu-footer-badges {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.68rem;
    color: #64748b;
    font-weight: 600;
}

/* ==========================================================================
   Section Headers (Compact for Mobile)
   ========================================================================== */
.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.4px;
    color: var(--orange-primary);
    margin-bottom: 6px;
}

.section-kicker::before {
    content: '';
    width: 14px;
    height: 2px;
    background: var(--orange-primary);
    display: inline-block;
}

.section-header {
    text-align: center;
    max-width: 100%;
    margin: 0 auto 24px;
}

.section-title {
    font-size: 1.55rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--text-navy);
    line-height: 1.25;
    margin-bottom: 8px;
}

.section-title.dark {
    color: var(--text-white);
}

.section-subtitle {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.section-subtitle.dark {
    color: var(--text-light-muted);
}

/* Ad Banner */
.ad-banner-container {
    margin: 18px auto;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.ad-banner-container img {
    border-radius: var(--radius-md);
    width: 100%;
    display: block;
}

/* ==========================================================================
   Footer (Mobile Optimized)
   ========================================================================== */
.footer {
    background: var(--navy-deep);
    color: var(--text-light-muted);
    padding: 40px 16px 25px;
    margin-top: 50px;
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--orange-primary), #ff884d, var(--navy-deep));
}

.footer-grid {
    display: flex;
    flex-direction: column;
    gap: 26px;
    margin-bottom: 30px;
}

.footer-col h4 {
    color: var(--text-white);
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 12px;
    position: relative;
    padding-bottom: 6px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 20px;
    height: 2px;
    background: var(--orange-primary);
}

.footer-col p {
    font-size: 0.85rem;
    line-height: 1.55;
    color: var(--text-light-muted);
    margin-bottom: 10px;
}

.footer-col ul li {
    margin-bottom: 8px;
}

.footer-col ul li a {
    color: var(--text-light-muted);
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.footer-col ul li a:hover {
    color: var(--orange-primary);
}

.footer-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
}

.footer-badge-pill {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 18px;
    text-align: center;
    font-size: 0.78rem;
    color: #64748b;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-bottom-links {
    display: flex;
    justify-content: center;
    gap: 14px;
}

.footer-bottom-links a {
    color: #64748b;
}

.footer-bottom-links a:hover {
    color: var(--orange-primary);
}

/* ==========================================================================
   Mobile Bottom Fixed Action Bar (Always Visible on Laptop & Mobile)
   ========================================================================== */
.mobile-cta-bar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    height: 56px;
    background: var(--navy-deep);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    z-index: 1000;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.4);
}

.mobile-cta-bar a {
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    gap: 6px;
}

.mobile-cta-login {
    color: #ffffff;
    background: var(--navy-card);
}

.mobile-cta-register {
    background: var(--orange-primary);
    color: #ffffff;
}

/* 3-item Bar for Detail / Show Page */
.show-cta-bar {
    grid-template-columns: 88px 1fr 1.35fr;
}

.mobile-cta-home {
    background: #06122c;
    color: #cbd5e1;
    display: flex;
    flex-direction: column !important;
    align-items: center;
    justify-content: center;
    font-size: 0.68rem !important;
    gap: 3px !important;
    letter-spacing: 0.3px;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    transition: var(--transition);
}

.mobile-cta-home svg {
    stroke: var(--orange-primary);
}

.mobile-cta-home:hover,
.mobile-cta-home:active {
    color: #ffffff;
    background: #0b1a3d;
}

/* Page Top Navigation Bar (Under fixed header) */
.page-top-bar {
    background: #06112a;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 10px 14px;
    margin-top: 58px;
    position: relative;
    z-index: 900;
}

.btn-back-bar {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--orange-primary);
    background: rgba(255, 95, 21, 0.1);
    padding: 6px 12px;
    border-radius: var(--radius-pill);
    border: 1px solid rgba(255, 95, 21, 0.25);
    transition: var(--transition);
}

.btn-back-bar:hover {
    background: var(--orange-primary);
    color: #ffffff;
}

.breadcrumb-badge {
    font-size: 0.75rem;
    color: #94a3b8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 50%;
}

.breadcrumb-badge a {
    color: #cbd5e1;
    font-weight: 600;
}

.hero-btn-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.82rem;
    font-weight: 700;
    padding: 8px 16px;
    border-radius: var(--radius-pill);
    transition: var(--transition);
    backdrop-filter: blur(4px);
}

.hero-btn-back:hover {
    background: var(--orange-primary);
    border-color: var(--orange-primary);
    color: #ffffff;
}

/* Animation utilities */
.animate-fade {
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.animate-fade.visible {
    opacity: 1;
    transform: translateY(0);
}
