/* ==========================================
   THEME VARIABLE REGISTRY (PWA Defaults)
   ========================================== */

/* Default State: Premium Dark Mode */
:root {
    --bg-color: #0b0b0c;
    --card-bg: #16161a;
    --text-color: #ffffff;
    --text-muted: #888888;
    --text-description: #aaaaaa;
    --accent-color: #3b82f6;     /* Royal Blue Actions */
    --brand-tangerine: #ff6b35;  /* Vibrant Brand Identity */
}

/* Alternate State: Studio Light Mode */
[data-theme="light"] {
    --bg-color: #f3f4f6;         /* Soft Gray Canvas */
    --card-bg: #ffffff;         /* Crisp White Cards */
    --text-color: #111827;       /* Rich Charcoal Typography */
    --text-muted: #6b7280;
    --text-description: #4b5563;
    --accent-color: #2563eb;     /* High Contrast Blue */
    /* --brand-tangerine remains unassigned here so it inherits perfectly across layers */
}

/* ==========================================
   BASE & CORE COMPONENT STYLING
   ========================================== */

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    margin: 0;
    padding: 20px;
    /* Smooth global color shifting animation when clicking the switch */
    transition: background-color 0.3s ease, color 0.3s ease; 
}

header {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

header h1 { 
    font-weight: 700; 
    letter-spacing: -1px; 
    margin-bottom: 5px;
    color: var(--text-color);
}

.brand-name {
    color: var(--brand-tangerine);
}

header h1 sup {
    font-size: 0.45em;       
    vertical-align: super;   
    margin-left: 2px;        
    color: var(--brand-tangerine); 
}

header p { 
    color: var(--text-muted); 
    margin-top: 0;
}
/* ==========================================
   BRAND LOGO & HEADER HEADER ALIGNMENT
   ========================================== */

.brand-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px; /* Perfect spacing between logo and text */
    margin-bottom: 5px;
}

.header-logo {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.header-logo:hover {
    transform: scale(1.05) rotate(-5deg); /* Subtle playful interaction */
}

/* Let the logo background respond beautifully to dark/light modes */
.logo-bg {
    fill: #16161a; /* Sleek dark gray backdrop in dark mode */
    transition: fill 0.3s ease;
}

[data-theme="light"] .logo-bg {
    fill: #ffffff; /* Crisp white backdrop in light mode to pop off the light gray canvas */
}

/* Adjust header subtitle to prevent layout shifting */
.header-subtitle {
    color: var(--text-muted); 
    margin-top: 10px;
    font-size: 1rem;
}

/* ==========================================
   SLEEK COMPACT TOGGLE UI BUTTON
   ========================================== */

.theme-toggle-container {
    display: flex;
    justify-content: flex-end;
    max-width: 1200px;
    margin: 0 auto 15px auto;
}

#theme-toggle-btn {
    background: var(--card-bg);
    border: 1px solid var(--text-muted);
    color: var(--text-color);
    padding: 10px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: background-color 0.3s, border-color 0.3s, transform 0.2s;
}

#theme-toggle-btn:hover {
    transform: scale(1.08);
}

/* Update text targets down the card file to support flexible contrast */
.product-card {
    background: var(--card-bg);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.product-info p { 
    color: var(--text-description); 
    font-size: 0.9rem; 
    line-height: 1.4; 
    margin-bottom: 20px; 
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.product-card {
    background: var(--card-bg);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    transition: transform 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
}

.media-container {
    width: 100%;
    background: #000000; 
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.media-container video {
    width: 100%;
    height: auto;
    max-height: 480px;
    object-fit: contain;
}

.product-info {
    padding: 20px;
}

.product-info h3 { margin: 0 0 10px 0; font-size: 1.25rem; }
.product-info p { color: #aaa; font-size: 0.9rem; line-height: 1.4; margin-bottom: 20px; }

.buy-btn {
    display: block;
    text-align: center;
    background-color: var(--accent-color);
    color: white;
    text-decoration: none;
    padding: 12px;
    border-radius: 8px;
    font-weight: 600;
    transition: background 0.2s;
}
/* ==========================================
   DYNAMIC FILTER NAVIGATION STYLING
   ========================================== */

.filter-nav {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 0 auto 40px auto;
    max-width: 600px;
    overflow-x: auto; /* Allows side-swiping on small mobile phones */
    padding: 5px;
    scrollbar-width: none; /* Hides bulky scrollbars on Firefox */
}

.filter-nav::-webkit-scrollbar {
    display: none; /* Hides bulky scrollbars on Chrome/Safari */
}

.filter-btn {
    background: var(--card-bg);
    border: 1px solid transparent;
    color: var(--text-description);
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.25s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.filter-btn:hover {
    border-color: var(--brand-tangerine);
    color: var(--text-color);
}

/* Active Highlight State matching your signature Tangerine brand */
.filter-btn.active {
    background: var(--brand-tangerine);
    color: #ffffff;
    border-color: var(--brand-tangerine);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

/* Animation classes applied by JavaScript filtering */
.product-card {
    transition: transform 0.3s ease, opacity 0.3s ease, background-color 0.3s ease;
    opacity: 1;
    transform: scale(1);
}

.product-card.hidden {
    opacity: 0;
    transform: scale(0.92);
    position: absolute;
    width: 0;
    height: 0;
    padding: 0;
    margin: 0;
    overflow: hidden;
    border: none;
    pointer-events: none;
}

/* ==========================================
   PORTFOLIO STATUS BADGE LAYERS
   ========================================== */

/* Make the media container a positioning anchor for the badge */
.media-container {
    position: relative; 
    width: 100%;
    background: #000000; 
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.status-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 10; /* Ensures it floats strictly on top of videos */
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    
    /* Premium frosted glass layout (Glassmorphism) */
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Subtle accent variations using your branding colors */
.status-badge.staff-pick {
    border-left: 3px solid var(--brand-tangerine); /* Tangerine highlight */
}

.status-badge.trending {
    border-left: 3px solid #3b82f6; /* Premium Blue highlight */
}

.status-badge.new-release {
    border-left: 3px solid #10b981; /* Fresh Emerald Green highlight */
}
/* ==========================================
   SLEEK UNIFIED FOOTER ARCHITECTURE
   ========================================== */

.app-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 60px auto 20px auto;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08); /* Minimal structural boundary divider */
    
    /* Global Typography Reset: Regular, Clean, Non-Bold Matrix */
    font-size: 0.85rem;
    font-weight: 400; 
    font-style: normal;
    color: rgba(255, 255, 255, 0.6); /* Highly visible muted white over dark themes */
    letter-spacing: 0.3px;
    transition: color 0.3s ease, border-color 0.3s ease;
}
.app-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 60px auto 20px auto;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08); /* Minimal structural boundary divider */
    
    /* Typography Global Reset for Footer Elements */
    font-size: 0.85rem;
    font-weight: 400;
    font-style: normal;
    color: rgba(255, 255, 255, 0.6); /* Highly visible muted white over dark themes */
    letter-spacing: 0.3px;
    transition: color 0.3s ease, border-color 0.3s ease;
}

/* Added generous spacing between the navigation items */
.footer-links {
    display: flex;
    gap: 40px; /* Increased space between About Us and Contact Us */
}

/* --- Smooth Link Hover Animation --- */
.footer-link {
    color: inherit; /* Automatically matches the muted white font color of your footer */
    text-decoration: none;
    position: relative;
    padding-bottom: 4px;
    opacity: 0.85; /* Subtle blend so it matches the surrounding layout text */
    transition: opacity 0.3s ease;
}

/* Creates a hidden animated line underneath the link */
.footer-link::after {
    content: '';
    position: absolute;
    width: 100%;
    transform: scaleX(0); /* Hidden at start */
    height: 1px;         /* Sleek, thin line */
    bottom: 0;
    left: 0;
    background-color: currentColor; /* Matches the text color perfectly */
    transform-origin: bottom right;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Changes line direction on hover to grow from left to right */
.footer-link:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

/* Brings the text to full brightness on hover */
.footer-link:hover {
    opacity: 1; 
}


/* Ensure trademark matches font weight constraint */
.app-footer sup {
    font-size: 0.5em;
    vertical-align: super;
}

/* Light Mode Contrast Override Selector */
[data-theme="light"] .app-footer {
    border-top-color: rgba(0, 0, 0, 0.08);
    color: rgba(17, 24, 39, 0.6); /* Clean mid-contrast slate over light themes */
}

/* Prevent layout breaking on narrow mobile screens (Stacks them nicely if screen is too small) */
@media (max-width: 480px) {
    .app-footer {
        flex-direction: column;
        gap: 10px;
        text-align: center;
        margin-top: 40px;
    }
}
footer {
    clear: both;
    width: 100%;
    position: relative;
    z-index: 1; /* Keeps it below the active modal layer */
    margin-top: 40px; /* Gives your product grid breathing room */
    padding: 20px 0;
}

/* Styling for the Read More link itself */
.read-more-link {
    display: inline-block;
    color: #ff4500; /* Change this to match your theme color */
    text-decoration: none;
    font-size: 0.9rem;
    margin-bottom: 12px;
    font-weight: 500;
}
.read-more-link:hover {
    text-decoration: underline;
}

/* Hidden background overlay covering the full screen */
.modal-overlay {
    display: none; /* Kept hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.6); /* Dims the website background */
    z-index: 9999; /* Forces it to sit ABOVE the grid and footer */
    justify-content: center; /* Centers modal horizontally */
    align-items: center; /* Centers modal vertically */
}

/* The actual white text card container in the center */
.modal-content {
    background-color: #fff;
    color: #333;
    padding: 30px;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* The X close button positioning */
.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
}
.close-btn:hover {
    color: #000;
}

.buy-btn:hover { background-color: #2563eb; }
