/* 
   CIRCAT MEDIA - SYSTEM LOCO SHOWROOM V4 (EDITORIAL EDITION)
   "The Guardian Edition"
   Architecture by Simone, Betty & Bernd
*/

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600&family=Crimson+Pro:ital,wght@0,400;0,600;0,700;1,400&family=Syne:wght@700;800&family=Space+Grotesque:wght@300;500;700&display=swap');

:root {
    --logo-yellow: #FFD700;
    --logo-yellow-glow: rgba(255, 215, 0, 0.25);
    --bg-dark: #05070a;
    --card-bg: rgba(18, 22, 27, 0.4);
    --glass-bg: rgba(7, 9, 12, 0.85);
    --text-main: #f8f9fa;
    --text-dim: #a0a0a0;
    --accent-blue: #4A90E2;
    --edge-color: rgba(255, 255, 255, 0.08);
}

/* Base resets & typography */
* { box-sizing: border-box; -webkit-font-smoothing: antialiased; }
body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Outfit', sans-serif;
    margin: 0;
    overflow-x: hidden;
    line-height: 1.5;
}

h1, h2, h3 { line-height: 1.1; margin: 0; }
.serif { font-family: 'Crimson Pro', serif; font-weight: 600; font-style: italic; }
.syne { font-family: 'Syne', sans-serif; text-transform: uppercase; }

.container { max-width: 1600px; margin: 0 auto; padding: 0 5vw; }

/* Navigation - World Class Editorial */
nav {
    position: fixed; top: 0; width: 100%; height: 100px;
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 5vw; z-index: 1000;
    background: transparent;
    transition: background 0.5s ease, height 0.5s ease;
}

nav.scrolled {
    background: var(--glass-bg);
    height: 80px;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--edge-color);
}

nav .logo { 
    font-family: 'Syne'; 
    font-size: 0.75rem; 
    letter-spacing: 0.3rem; 
    color: var(--logo-yellow);
    display: flex; align-items: center; gap: 15px;
}

nav .logo::before {
    content: ''; display: block; width: 8px; height: 8px; 
    background: var(--logo-yellow); border-radius: 50%;
    box-shadow: 0 0 10px var(--logo-yellow);
}

.menu { display: flex; gap: 40px; }
.menu a {
    text-decoration: none;
    color: var(--text-main);
    font-family: 'Space Grotesque';
    font-size: 0.75rem;
    letter-spacing: 0.2rem;
    text-transform: uppercase;
    position: relative;
    opacity: 0.6;
    transition: opacity 0.3s, transform 0.3s;
}

.menu a:hover { opacity: 1; color: var(--logo-yellow); }

.menu a::after {
    content: ''; position: absolute; bottom: -5px; left: 0;
    width: 0; height: 1px; background: var(--logo-yellow);
    transition: width 0.3s ease;
}
.menu a:hover::after { width: 100%; }

.menu a.active { opacity: 1; color: var(--logo-yellow); }
.menu a.active::after { width: 100%; }

/* Mobile Menu Overlay */
.menu-toggle {
    display: none;
    background: transparent; border: none;
    width: 30px; height: 20px;
    position: relative; z-index: 1100;
    cursor: pointer;
}
.menu-toggle span {
    display: block; width: 100%; height: 2px;
    background: var(--logo-yellow);
    position: absolute; left: 0;
    transition: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.menu-toggle span:first-child { top: 0; }
.menu-toggle span:last-child { bottom: 0; }

.menu-open .menu-toggle span:first-child { transform: translateY(9px) rotate(45deg); }
.menu-open .menu-toggle span:last-child { transform: translateY(-9px) rotate(-45deg); }

@media (max-width: 1024px) {
    .menu-toggle { display: block; }
    
    .menu-wrapper {
        position: fixed; top: 0; left: 0;
        width: 100vw; height: 100vh;
        background: var(--bg-dark);
        display: flex; align-items: center; justify-content: center;
        opacity: 0; pointer-events: none;
        transform: translateX(100%);
        z-index: 1050;
    }

    .menu {
        flex-direction: column;
        align-items: center;
        gap: 5vh;
    }

    .menu a {
        font-size: 1.5rem;
        letter-spacing: 0.5rem;
    }

    nav .logo { font-size: 0.65rem; letter-spacing: 0.2rem; }
}

/* Hero Section - The Guardian */
.hero {
    height: 100svh;
    display: flex; align-items: center;
    position: relative; overflow: hidden;
    padding-top: 80px;
}

.hero-bg {
    position: absolute; top: 0; right: 0; width: 60%; height: 100%;
    background: url('assets_web/00_wowpic_avocadoplanation1.webp') no-repeat center center;
    background-size: cover; z-index: -1;
    mask-image: linear-gradient(to left, black 60%, transparent);
}

.hero-content { max-width: 800px; position: relative; z-index: 1; }
.hero h1 { font-size: clamp(4rem, 10vw, 8rem); margin-bottom: 2rem; }
.hero-tag { font-family: 'Space Grotesque'; font-size: 0.8rem; letter-spacing: 4px; color: var(--logo-yellow); margin-bottom: 1rem; display: block; }

/* Editorial Grid Layouts */
section { padding: 15vh 0; }

.section-label { font-family: 'Space Grotesque'; color: var(--logo-yellow); font-size: 0.8rem; margin-bottom: 2rem; display: block; }

.editorial-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 10vw;
    align-items: center;
}

.editorial-img {
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 40px 100px rgba(0,0,0,0.6);
}
.editorial-img img { width: 100%; display: block; transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1); }
.editorial-img:hover img { transform: scale(1.05); }

.editorial-text h2 { font-size: 3.5rem; margin-bottom: 1.5rem; }
.editorial-text p { font-size: 1.1rem; color: var(--text-dim); max-width: 500px; margin-bottom: 2rem; }

/* Museum Museum (Bento Grid Style for V4) */
.museum-container { display: grid; grid-template-columns: repeat(12, 1fr); gap: 20px; }

.museum-tile {
    grid-column: span 3;
    position: relative; aspect-ratio: 1/1;
    border: 1px solid var(--edge-color);
    border-radius: 2px;
    overflow: hidden;
    cursor: crosshair;
    transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.museum-tile.selected {
    border: 2px solid var(--logo-yellow);
    box-shadow: 0 0 20px var(--logo-yellow-glow);
    z-index: 5;
    transform: scale(1.02);
}

.museum-tile img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(0.2) brightness(0.8); transition: 0.4s; }
.museum-tile:hover img { filter: grayscale(0) brightness(1); transform: scale(1.02); }

.museum-label {
    position: absolute; top: 15px; left: 15px;
    font-family: 'Space Grotesque'; font-size: 0.65rem;
    letter-spacing: 2px; color: var(--text-main);
    background: rgba(0,0,0,0.6); padding: 4px 10px;
    border-radius: 2px; backdrop-filter: blur(5px);
    opacity: 0; transition: 0.3s; pointer-events: none;
}
.museum-tile:hover .museum-label { opacity: 1; }

/* Rating System UI */
.tile-tools {
    position: absolute; bottom: 10px; right: 10px;
    display: flex; gap: 5px; opacity: 0; transition: 0.3s;
}
.museum-tile:hover .tile-tools { opacity: 1; }

.tool-btn {
    background: rgba(255, 255, 255, 0.1); 
    backdrop-filter: blur(4px);
    width: 32px; height: 32px; border: none;
    border-radius: 50%; color: white; cursor: pointer;
    font-size: 0.8rem; display: flex; align-items: center; justify-content: center;
}
.tool-btn:hover { background: var(--logo-yellow); color: black; }
.tool-btn.active { color: var(--logo-yellow); }

/* Sticky Selection Assistant */
.selection-bar {
    position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%);
    background: var(--glass-bg); padding: 15px 30px; border-radius: 50px;
    border: 1px solid var(--edge-color); z-index: 1001;
    display: none; align-items: center; gap: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}
.selection-bar span { font-family: 'Space Grotesque'; font-size: 0.9rem; }
.copy-btn {
    background: var(--logo-yellow); color: black; border: none;
    padding: 8px 16px; border-radius: 20px; font-family: 'Outfit'; 
    font-weight: 600; cursor: pointer;
}

/* Lightbox V4 */
#lightbox {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.98); z-index: 2000;
    display: none; justify-content: center; align-items: center;
}
#lightbox img { max-width: 90vw; max-height: 85vh; object-fit: contain; }

/* Mobile Optimizations */
@media (max-width: 1024px) {
    .editorial-grid { grid-template-columns: 1fr; gap: 4rem; }
    .hero-bg { width: 100%; mask-image: linear-gradient(to bottom, black 50%, transparent); }
    .hero { height: auto; padding: 120px 0; }
    .museum-tile { grid-column: span 6; }
}

@media (max-width: 768px) {
    .editorial-text h2 { font-size: 2.5rem; }
    .hero h1 { font-size: 3.5rem; }
    .museum-tile { grid-column: span 12; }
}
