/* ==========================================================
   Master Styles for MemphisFire.net 
   Consolidated Navigation & Layout
   ========================================================== */

:root {
    --mfd-red: #D01C1F;
    --nav-bg: #1a1a1a;
    --bg-white: #ffffff;
    --text-dark: #121212;
    --light-gray: #f4f4f4;
    --transition: 0.3s ease;
}

body {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    background-color: var(--bg-white);
    color: var(--text-dark);
    line-height: 1.6;
}

/* --- UNIFIED NAVIGATION --- */

nav, .nav-wrapper {
    background-color: var(--nav-bg);
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 4px solid var(--mfd-red);
    display: flex;
    justify-content: center; /* Centers the menu on your 49" monitor */
    align-items: center;
    min-height: 60px;
}

/* The Main List */
.main-nav, .nav-links { 
    display: flex; 
    list-style: none; 
    gap: 5px; 
    margin: 0; 
    padding: 0;
}

.main-nav > li, .nav-links > li {
    position: relative; /* Essential for dropdown alignment */
}

.main-nav li a, .nav-links li a {
    display: block;
    padding: 18px 25px;
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9rem;
    text-transform: uppercase;
    transition: var(--transition);
}

/* Hover Effect */
.main-nav li a:hover, .nav-links li a:hover {
    background-color: #333;
    color: var(--mfd-red);
}

/* --- DROPDOWN LOGIC --- */

/* Hide sub-menus by default */
.submenu {
    display: none;
    position: absolute;
    top: 100%; 
    left: 0;
    background-color: #222;
    min-width: 220px;
    list-style: none;
    padding: 0;
    box-shadow: 0px 8px 16px rgba(0,0,0,0.5);
    z-index: 1001;
}

/* Show on Hover */
.dropdown:hover .submenu {
    display: block;
}

.submenu li a {
    padding: 12px 20px;
    font-size: 14px;
    border-bottom: 1px solid #333;
    text-transform: none; /* Sub-items don't need all-caps */
}

.submenu li a:hover {
    background-color: var(--mfd-red) !important;
    color: #fff !important;
}

/* --- CONTENT & TABLES --- */

.container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
}

.page-header {
    border-left: 5px solid var(--mfd-red);
    padding-left: 15px;
    margin-bottom: 30px;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background-color: white;
}

th {
    background-color: #333;
    color: white;
    padding: 12px;
    text-align: left;
    position: sticky;
    top: 64px; /* Sits exactly below the sticky nav */
}

td {
    padding: 12px;
    border-bottom: 1px solid #ddd;
}

tr:nth-child(even) { background-color: var(--light-gray); }
tr:hover { background-color: #fff5f5; }

/* --- SEARCH BOX (Rounded & Centered) --- */

#mfdSearch {
    width: 100%;
    max-width: 600px; /* Wider for your 49" monitor */
    padding: 15px 25px;
    margin: 30px auto; /* Centers the bar horizontally */
    display: block;
    
    /* The Pill Shape */
    border: 2px solid #ddd;
    border-radius: 50px; 
    
    /* Typography & Visuals */
    font-size: 1.1rem;
    outline: none;
    transition: var(--transition);
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

#mfdSearch:focus {
    border-color: var(--mfd-red);
    box-shadow: 0 4px 12px rgba(208, 28, 31, 0.2);
}

/* --- PHOTO GALLERY GRID --- */

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.gallery-item img {
    width: 100%;
    height: 220px;
    object-fit: cover; 
    border-radius: 5px;
    cursor: zoom-in;
    transition: transform var(--transition);
    border: 1px solid #ddd;
}

.gallery-item img:hover {
    transform: scale(1.03);
    border-color: var(--mfd-red);
}

/* --- LUMINOUS LIGHTBOX (Zoomed State) --- */

.lum-lightbox {
    z-index: 2000;
    background: rgba(0, 0, 0, 0.92) !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
}

.lum-lightbox-inner img {
    max-width: 90vw !important;
    max-height: 75vh !important;
    border: 3px solid white;
    box-shadow: 0 0 40px rgba(0,0,0,1);
}

.lum-caption {
    color: #fff !important;
    background: rgba(186, 12, 47, 0.9) !important;
    padding: 12px 25px !important;
    margin-top: 15px !important;
    border-radius: 6px;
    font-weight: 500;
}
/* The Gear Grid Layout */
.gear-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

/* Individual Product Cards */
.gear-card {
    border-top: 4px solid var(--mfd-red); /* Uses your root variable! */
    background: #ffffff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.gear-card:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.gear-card img {
    max-width: 100%;
    height: 150px;
    object-fit: contain;
    margin-bottom: 15px;
    display: block;
    margin: 0 auto 15px;
}

.gear-card h4 {
    margin: 15px 0 10px;
    color: #333;
    text-align: center;
    width: 100%;
}

.gear-card p {
    font-size: 0.9rem;
    color: #666;
    text-align: left;
    margin-bottom: 15px;
    padding: 0 10px;
}

/* Amazon Branding Button */
.amazon-btn {
    display: block;
    width: fit-content;
    margin: 10px auto 0;
    background-color: #FF9900; /* Amazon Orange */
    color: #111;
    padding: 10px 20px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 4px;
    margin-top: 10px;
}

.amazon-btn:hover {
    background-color: #e68a00;
}
.section-divider {
    text-align: center;
    font-size: 1.25rem;
    margin: 40px auto 20px auto;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--mfd-red);
    color: #333;
    text-transform: uppercase;
    letter-spacing: 2px;
    max-width: 300px;
}
/* 1. Make the whole page take up at least the full screen height */
html, body {
    height: 100%;
    margin: 0;
}

/* 2. Tell the body to act like a flexible column */
body {
    display: flex;
    flex-direction: column;
}

/* 3. Tell the main container to grow and take up all available empty space */
.container {
    flex: 1 0 auto;
}

/* 4. Ensure the footer stays at the very end of that column */
#main-footer {
    flex-shrink: 0;
}
.status-dot {
    height: 7px;
    width: 7px;
    background-color: #333; /* Default off/gray */
    border-radius: 50%;
    display: inline-block;
}

.status-active {
    background-color: #28a745 !important; /* MFD Green / Active */
    box-shadow: 0 0 5px #28a745;
}