/* ============================================================
   NoBrainerNotes.online — Shared Cinematic Stylesheet
   ============================================================ */

/* Pro Custom Scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #333; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: #555; }

/* Cinematic Noise Overlay */
.bg-noise {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    pointer-events: none; z-index: 60; opacity: 0.04;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* Apple-style Glassmorphism */
.glass-window {
    background: linear-gradient(145deg, rgba(20,20,20,0.6) 0%, rgba(5,5,5,0.85) 100%);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255,255,255,0.1);
}

.glass-card {
    background: linear-gradient(145deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.01) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.07);
}

/* Subtle Grid Background */
.bg-grid {
    background-size: 40px 40px;
    background-image: linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
                      linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    mask-image: radial-gradient(circle at center, black 40%, transparent 80%);
    -webkit-mask-image: radial-gradient(circle at center, black 40%, transparent 80%);
}

/* Text Gradient */
.text-gradient {
    background: linear-gradient(to right, #fff, #a1a1aa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Ambient Owl Flight Animations */
@keyframes owl-fly-1 {
    0%   { transform: translate(-25vw, 0) scale(0.7) rotate(4deg); opacity: 0; }
    8%   { opacity: 0.035; }
    92%  { opacity: 0.035; }
    100% { transform: translate(125vw, -6vh) scale(0.7) rotate(-4deg); opacity: 0; }
}
@keyframes owl-fly-2 {
    0%   { transform: translate(125vw, 0) scale(1.05) rotate(-8deg) scaleX(-1); opacity: 0; }
    8%   { opacity: 0.025; }
    92%  { opacity: 0.025; }
    100% { transform: translate(-25vw, 8vh) scale(1.05) rotate(8deg) scaleX(-1); opacity: 0; }
}
@keyframes owl-fly-3 {
    0%   { transform: translate(-25vw, 0) scale(0.5) rotate(10deg); opacity: 0; }
    8%   { opacity: 0.02; }
    92%  { opacity: 0.02; }
    100% { transform: translate(125vw, -4vh) scale(0.5) rotate(-6deg); opacity: 0; }
}

.ambient-owl {
    position: fixed;
    pointer-events: none;
    z-index: 1;
    filter: blur(2px);
    opacity: 0;
}
.owl-1 { animation: owl-fly-1 38s linear infinite; animation-delay: 3s; top: 12vh; }
.owl-2 { animation: owl-fly-2 64s linear infinite; animation-delay: 18s; top: 58vh; }
.owl-3 { animation: owl-fly-3 52s linear infinite; animation-delay: 40s; top: 34vh; }

/* Reveal on scroll */
.reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Section index label */
.section-label {
    font-family: 'JetBrains Mono', monospace;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-size: 11px;
    color: #888888;
}

/* Finder file tile hover */
.file-tile {
    transition: background 0.2s ease, transform 0.2s ease;
}
.file-tile:hover {
    background: rgba(255,255,255,0.05);
    transform: translateY(-2px);
}

/* Hide scrollbar for chip row on mobile */
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* ============================================================
   TEAM PAGE — Silhouette Figure Animations
   ============================================================ */
@keyframes float-figure {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
}
@keyframes glow-pulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.8; }
}
@keyframes ring-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
@keyframes scan-line {
    0% { top: 0%; }
    100% { top: 100%; }
}

.silhouette-figure {
    animation: float-figure 6s ease-in-out infinite;
}
.silhouette-glow {
    animation: glow-pulse 4s ease-in-out infinite;
}
.silhouette-ring {
    animation: ring-spin 12s linear infinite;
}
.scanline {
    animation: scan-line 3s linear infinite;
}

/* ============================================================
   SEARCH OVERLAY
   ============================================================ */
#search-overlay {
    position: fixed;
    inset: 0;
    z-index: 100;
    background: rgba(5,5,5,0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding-top: 15vh;
}
#search-overlay.active { display: flex; }
.search-panel {
    width: min(640px, 90vw);
    background: rgba(15,15,15,0.95);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0,0,0,0.6);
}
.search-input-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.search-input-row input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #ededed;
    font-size: 18px;
    font-family: 'Inter', sans-serif;
}
.search-input-row input::placeholder { color: #555; }
.search-results {
    max-height: 50vh;
    overflow-y: auto;
    padding: 8px;
}
.search-result-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.15s;
    text-decoration: none;
    color: #ededed;
}
.search-result-item:hover { background: rgba(255,255,255,0.06); }
.search-result-item .sr-icon {
    width: 36px; height: 36px;
    border-radius: 8px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.search-result-item .sr-title { font-size: 14px; font-weight: 500; }
.search-result-item .sr-desc { font-size: 12px; color: #888; margin-top: 2px; }
.search-empty {
    padding: 30px;
    text-align: center;
    color: #555;
    font-size: 14px;
}
.search-hint {
    padding: 10px 20px;
    font-size: 11px;
    color: #555;
    font-family: 'JetBrains Mono', monospace;
    border-top: 1px solid rgba(255,255,255,0.06);
    display: flex;
    justify-content: space-between;
}
