/* public/css/style.css */

:root {
    /* Brand Colors */
    --tech-navy: #0f172a;       /* Deep Midnight Blue (Header/Nav) */
    --tech-darker: #020617;     /* Almost Black (Top Bar) */
    --tech-orange: #f68b1e;     /* Action/Buttons */
    --tech-blue: #38bdf8;       /* Accents/Icons */
    --text-light: #f8fafc;      /* Main Text on Dark */
    --text-muted-light: #94a3b8;/* Secondary Text on Dark */
    
    /* System Colors */
    --bg-body: #f1f5f9;         /* Light Grey Body Background for contrast */
    --navbar-height: 70px;
}

body {
    font-family: 'Inter', 'Segoe UI', sans-serif;
    background-color: var(--bg-body);
    padding-top: 0;
}

/* --- Top Header Bar (Darkest Navy) --- */
.top-header-bar {
    background-color: var(--tech-darker);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    font-size: 0.85rem;
    padding: 8px 0;
    color: var(--text-muted-light);
}

.top-header-links a {
    color: var(--text-muted-light);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

.top-header-links a:hover {
    color: var(--tech-blue);
}

.text-orange { color: var(--tech-orange) !important; }
.text-blue { color: var(--tech-blue) !important; }

/* --- Main Navbar (Glassmorphism Navy) --- */
.main-navbar {
    background: rgba(15, 23, 42, 0.95); /* Tech Navy with opacity */
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    height: var(--navbar-height);
    transition: all 0.3s ease;
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 1030;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.navbar-brand {
    font-weight: 700;
    letter-spacing: -0.5px;
    color: #ffffff !important;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Pill Search Bar */
.nav-search-form {
    max-width: 550px;
    width: 100%;
    margin: 0 1.5rem;
}

.search-group {
    background: #ffffff; /* White background for high contrast input */
    border-radius: 50px;
    padding: 2px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.search-group:focus-within {
    box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.3); /* Blue Glow */
    border-color: var(--tech-blue);
}

.nav-search-input {
    border: none;
    background: transparent;
    padding-left: 15px;
    font-size: 0.95rem;
    color: #333;
}

.nav-search-input:focus {
    background: transparent;
    box-shadow: none;
    outline: none;
}

.nav-search-btn {
    border-radius: 50px;
    padding: 6px 24px;
    font-weight: 600;
    background-color: var(--tech-orange);
    border: none;
    color: white;
    transition: transform 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-search-btn:hover {
    background-color: #ea7a0e;
    transform: scale(1.05);
    color: #fff;
    box-shadow: 0 4px 10px rgba(246, 139, 30, 0.4);
}

/* Nav Icons & Links (White on Navy) */
.nav-icon-link {
    color: var(--text-light);
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.nav-icon-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--tech-blue);
}

.nav-icon-link i {
    font-size: 1.2rem;
    transition: transform 0.2s;
    color: var(--tech-blue); /* Default Icon Color */
}

.nav-icon-link:hover i {
    transform: translateY(-2px);
    color: #fff;
}

/* Cart Badge */
.cart-badge {
    position: absolute;
    top: -5px;
    right: -8px;
    background: var(--tech-orange);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 10px;
    border: 2px solid var(--tech-navy); /* Border matches nav bg */
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

/* Auth Buttons in Nav */
.btn-nav-login {
    color: var(--text-light);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50px;
    padding: 6px 20px;
    font-weight: 600;
    transition: all 0.2s;
}
.btn-nav-login:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
    border-color: #fff;
}

.btn-nav-signup {
    background-color: var(--tech-blue);
    color: var(--tech-navy);
    border: none;
    border-radius: 50px;
    padding: 6px 20px;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(56, 189, 248, 0.3);
}
.btn-nav-signup:hover {
    background-color: #0ea5e9;
    color: #fff;
    transform: translateY(-1px);
}

/* Dropdown Menu (Clean White for Contrast) */
.dropdown-menu {
    border: none;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    border-radius: 12px;
    padding: 10px;
    margin-top: 15px !important;
    background: #fff;
    animation: fadeInUp 0.3s ease forwards;
}

.dropdown-item {
    padding: 8px 15px;
    font-weight: 500;
    color: #333;
    border-radius: 6px;
}
.dropdown-item:hover {
    background-color: #f0f9ff; /* Very light blue */
    color: var(--tech-blue);
}

/* Mobile Toggler (White) */
.navbar-toggler { border: none; padding: 0; }
.navbar-toggler:focus { box-shadow: none; }
.navbar-toggler span { color: #fff; }

/* Utilities */
.text-tech-light { color: var(--text-light); }
.text-tech-muted { color: var(--text-muted-light); }

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Flash Messages */
#msg-flash {
    position: fixed;
    top: 90px;
    right: 20px;
    z-index: 9999;
    min-width: 300px;
}