/* =========================================
   1. VARIABLES & RESET
   ========================================= */
:root {
    /* Premium Palette */
    --primary: #960018;
    /* Carmine/Royal Red */
    --primary-dark: #700012;
    --secondary: #D4AF37;
    /* Metallic Gold */
    --secondary-light: #F4D067;
    --dark: #1A1A1A;
    --gray: #F5F7FA;
    --white: #FFFFFF;
    --text-main: #2C3E50;
    --text-muted: #7F8C8D;

    /* Shadows */
    --shadow-sm: 0 2px 5px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 20px rgba(0, 0, 0, 0.12);

    /* Desktop Specifics */
    --header-height-desktop: 140px;

    /* Mobile Specifics */
    --bottom-nav-height: 70px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: var(--gray);
    color: var(--text-main);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.flx-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* =========================================
   2. VIEW TOGGLING (Media Queries)
   ========================================= */
/* Instead of splitting entire layout, we toggle components */
.desktop-only {
    display: block;
}

.mobile-only {
    display: none;
}

@media (max-width: 992px) {
    .desktop-only {
        display: none !important;
    }

    .mobile-only {
        display: block !important;
    }
}

/* =========================================
   3. DESKTOP DESIGN ("Windows Software" Style)
   ========================================= */

/* Topbar */
.desktop-topbar {
    background-color: #f8f8f8;
    border-bottom: 1px solid #e0e0e0;
    font-size: 0.85rem;
    padding: 6px 0;
    color: var(--text-muted);
}

.desktop-topbar i {
    margin-right: 5px;
    color: var(--primary);
}

.desktop-topbar span {
    margin-right: 20px;
}

.desktop-topbar .top-actions .divider {
    margin: 0 10px;
    color: #ccc;
}

/* Header Brand Area */
.desktop-header {
    background: var(--white);
    padding: 15px 0;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
}

.brand-area {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

.brand-text h1 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: var(--primary);
    line-height: 1;
}

.brand-text p {
    font-size: 0.8rem;
    letter-spacing: 1px;
    color: var(--secondary);
    text-transform: uppercase;
    font-weight: 600;
}

/* Desktop Search Widget */
.desktop-search .search-input-group {
    display: flex;
    border: 2px solid #eee;
    border-radius: 6px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.desktop-search .search-input-group:focus-within {
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
}

.search-select {
    border: none;
    background: #fafafa;
    padding: 10px 10px;
    /* Reduced padding */
    font-weight: 500;
    font-size: 0.9rem;
    outline: none;
    border-right: 1px solid #eee;
    cursor: pointer;
    max-width: 140px;
    /* Limit width */
}

.desktop-search input {
    border: none;
    padding: 10px 15px;
    width: 200px;
    /* Reduced from 300px */
    outline: none;
}

.btn-search {
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 0 15px;
    /* Reduced padding */
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
    font-size: 0.9rem;
}

.btn-search:hover {
    background: var(--primary-dark);
}

/* Auth Buttons */
.header-auth-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
    /* Add gap */
}

.header-auth-buttons .btn-login {
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 8px 20px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}

.header-auth-buttons .btn-register {
    background: linear-gradient(to right, var(--secondary), #E5C35D);
    border: none;
    color: #4a3b0f;
    padding: 9px 20px;
    border-radius: 4px;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(212, 175, 55, 0.2);
    cursor: pointer;
    white-space: nowrap;
}

/* Desktop Navigation (Solid Bar) */
.desktop-nav {
    background: var(--primary);
    color: var(--white);
    height: 50px;
    box-shadow: var(--shadow-md);
    position: relative;
    z-index: 100;
}

.desktop-nav .nav-list {
    display: flex;
    height: 50px;
    align-items: center;
}

.desktop-nav .nav-list>li {
    height: 100%;
    position: relative;
}

.desktop-nav .nav-list>li>a {
    display: flex;
    align-items: center;
    padding: 0 20px;
    height: 100%;
    font-size: 0.95rem;
    font-weight: 500;
    transition: background 0.2s;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.desktop-nav .nav-list>li:first-child>a {
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.desktop-nav .nav-list>li>a:hover,
.desktop-nav .nav-list>li.active>a {
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 3px solid var(--secondary);
}

.desktop-nav .nav-list>li>a i {
    margin-right: 8px;
    opacity: 0.8;
}

.badge {
    background: var(--secondary);
    color: #333;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: 5px;
    font-weight: bold;
}

/* Mega Dropdown */
.dropdown-menu {
    position: absolute;
    top: 50px;
    left: 0;
    background: var(--white);
    color: var(--text-main);
    min-width: 600px;
    display: flex;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    border-bottom: 3px solid var(--primary);
}

.dropdown-menu.simple {
    min-width: 250px;
    flex-direction: column;
}

.has-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-col {
    flex: 1;
    padding: 20px;
    border-right: 1px solid #f0f0f0;
}

.dropdown-col h4 {
    color: var(--primary);
    margin-bottom: 12px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
}

.dropdown-col a {
    display: block;
    padding: 6px 0;
    font-size: 0.9rem;
    color: #555;
    transition: 0.2s;
}

.dropdown-col a:hover {
    color: var(--primary);
    transform: translateX(5px);
}

.dropdown-menu.simple a {
    padding: 10px 20px;
    border-bottom: 1px solid #f9f9f9;
}

/* Placeholders */
.desktop-content-placeholder {
    padding: 40px 0;
    min-height: 400px;
}

.content-box {
    background: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    border-top: 4px solid var(--primary);
}

/* =========================================
   4. MOBILE DESIGN ("App" Style)
   ========================================= */

/* Mobile Header */
.mobile-header {
    height: 60px;
    background: var(--white);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 15px;
    position: sticky;
    top: 0;
    z-index: 900;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.mh-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.mh-logo {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 1.4rem;
    color: var(--primary);
}

.btn-icon {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: #333;
    position: relative;
    cursor: pointer;
}

.btn-icon .dot {
    position: absolute;
    top: 0;
    right: 0;
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    border: 1px solid white;
}

/* Mobile Sidebar (Drawer) */
.mobile-sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
}

.mobile-sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 280px;
    background: var(--white);
    z-index: 999;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.mobile-sidebar.active {
    transform: translateX(0);
}

.sidebar-header {
    background: var(--primary);
    color: white;
    padding: 25px 15px 15px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.user-profile-summary {
    display: flex;
    align-items: center;
    gap: 12px;
}

.u-img {
    width: 50px;
    height: 50px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.5rem;
}

.u-info h4 {
    margin-bottom: 2px;
    font-weight: 600;
}

.u-info p {
    font-size: 0.8rem;
    opacity: 0.8;
}

.close-sidebar {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
}

.sidebar-menu {
    padding: 20px 0;
    overflow-y: auto;
    flex: 1;
}

.sidebar-item {
    display: flex;
    align-items: center;
    padding: 12px 25px;
    color: #444;
    font-weight: 500;
    transition: 0.2s;
}

.sidebar-item i {
    width: 30px;
    color: var(--primary);
    opacity: 0.7;
}

.sidebar-item:hover,
.sidebar-item.active {
    background: #fff0f5;
    color: var(--primary);
}

.sidebar-item.active i {
    opacity: 1;
}

.sidebar-menu .divider {
    height: 1px;
    background: #eee;
    margin: 10px 25px;
}

.sidebar-footer {
    padding: 20px;
    border-top: 1px solid #eee;
}

.btn-app-login {
    width: 100%;
    background: var(--primary);
    color: white;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-weight: 600;
}

/* Mobile Content */
.mobile-content {
    padding: 20px;
    background: #f8f8f8;
    min-height: 100vh;
}

.mob-hero {
    background: linear-gradient(135deg, var(--primary), #52000c);
    color: white;
    padding: 30px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(150, 0, 24, 0.3);
}

.mob-hero h2 {
    font-family: 'Playfair Display', serif;
    margin-bottom: 10px;
}

.btn-mob-cta {
    background: var(--secondary);
    border: none;
    padding: 10px 25px;
    border-radius: 20px;
    font-weight: 600;
    color: #333;
    margin-top: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.mob-spacer {
    height: 80px;
}

/* Space for bottom nav */

/* Bottom Navigation Bar */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--bottom-nav-height);
    background: var(--white);
    box-shadow: 0 -2px 15px rgba(0, 0, 0, 0.08);
    /* Upward shadow */
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 950;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #999;
    flex: 1;
    height: 100%;
    position: relative;
    transition: all 0.3s ease;
}

.nav-item .icon-box {
    font-size: 1.3rem;
    margin-bottom: 4px;
    transition: transform 0.2s;
}

.nav-item .label {
    font-size: 0.7rem;
    font-weight: 500;
}

.nav-item.active {
    color: var(--primary);
}

.nav-item.active .icon-box {
    transform: translateY(-3px);
}

/* FAB (Floating Action Button) Center */
.fab-holder {
    flex: 0.8;
}

.fab-btn {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--secondary), #cfa830);
    border-radius: 50%;
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.5rem;
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.4);
    border: 4px solid var(--white);
}


/* =========================================
   6. HOME PAGE (HERO & FEATURES)
   ========================================= */
.desktop-main {
    min-height: 80vh;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 500px;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('https://images.unsplash.com/photo-1583939003579-730e3918a45a?ixlib=rb-1.2.1&auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-content h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    margin-bottom: 15px;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    font-weight: 300;
}

.hero-cta-group {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 40px;
}

.btn-hero-primary {
    background: var(--primary);
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.4);
    transition: transform 0.3s;
}

.btn-hero-primary:hover {
    transform: translateY(-3px);
}

.btn-hero-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
    padding: 13px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-hero-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Features Section */
.features-section {
    padding: 60px 0;
    background: white;
    text-align: center;
}

.section-title h2 {
    font-family: 'Playfair Display';
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 10px;
}

.features-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
}

.feature-card {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    width: 300px;
    box-shadow: var(--shadow-sm);
    border: 1px solid #f0f0f0;
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-md);
}

.f-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #333;
}

.feature-card p {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
}

/* Responsive adjustments for Hero */
@media (max-width: 768px) {
    .features-grid {
        flex-direction: column;
        align-items: center;
    }

    .hero-content h1 {
        font-size: 2rem;
    }
}