/* ===================================================
   FIB SITE — main.css
   Global variables, layout, transitions, footer
   =================================================== */

:root {
  /* Core palette */
  --fib-gold:    #c9a84c;
  --fib-gold2:   #f0d080;
  --fib-dark:    #0a0c10;
  --fib-darker:  #06080c;
  --white:       #f0f2f5;
  --muted:       #8a8f9a;

  /* Tab palettes */
  --navy:        #0d1b3e;
  --navy2:       #162549;
  --navy-accent: #2a4a8a;
  --blue:        #1a73e8;
  --blue2:       #2196f3;
  --steel:       #1c3a5e;
  --green:       #2ecc71;
  --green2:      #27ae60;
  --gray-light:  #e8eaed;
  --charcoal:    #1e2229;
  --charcoal2:   #262c36;
  --smoke:       #f4f5f7;

  /* Fonts */
  --font-display: 'Bebas Neue', sans-serif;
  --font-ui:      'Rajdhani', sans-serif;
  --font-mono:    'Share Tech Mono', monospace;
  --font-logo:    'Orbitron', sans-serif;

  /* Transitions */
  --trans-main: 0.55s cubic-bezier(0.77,0,0.175,1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  width: 100%; height: 100%;
  overflow: hidden;
  background: var(--fib-darker);
  color: var(--white);
  font-family: var(--font-ui);
}

/* ===== SCANLINES ===== */
.scanlines {
  position: fixed; inset: 0; z-index: 9999;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0px,
    transparent 2px,
    rgba(0,0,0,0.07) 2px,
    rgba(0,0,0,0.07) 4px
  );
  pointer-events: none;
}

/* ===== HOME BUTTON ===== */
.home-btn {
  position: fixed; top: 18px; left: 18px; z-index: 1000;
  width: 44px; height: 44px;
  background: rgba(10,12,16,0.75);
  border: 1.5px solid rgba(201,168,76,0.35);
  border-radius: 8px;
  color: var(--fib-gold);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(8px);
  transition: all 0.25s ease;
  opacity: 0;
  pointer-events: none;
}
.home-btn.visible {
  opacity: 1;
  pointer-events: all;
}
.home-btn:hover {
  background: rgba(201,168,76,0.15);
  border-color: var(--fib-gold);
  transform: scale(1.08);
}
.home-btn svg { width: 22px; height: 22px; }

/* ===== SCREENS ===== */
.screen {
  position: fixed; inset: 0;
  display: flex; flex-direction: column;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transform: scale(0.97);
  transition: opacity var(--trans-main), transform var(--trans-main);
}
.screen.active {
  opacity: 1;
  pointer-events: all;
  transform: scale(1);
}
.screen.exiting {
  opacity: 0;
  transform: scale(1.02);
  pointer-events: none;
}

/* ===== TAB BACKGROUNDS ===== */
.tab-bg {
  position: absolute; inset: 0; z-index: 0;
}

/* ===== TAB CONTENT SCROLL ===== */
.tab-content {
  position: relative; z-index: 2;
  flex: 1;
  overflow-y: auto;
  padding: 80px 40px 30px;
  scrollbar-width: thin;
  scrollbar-color: rgba(201,168,76,0.3) transparent;
}
.tab-content::-webkit-scrollbar { width: 5px; }
.tab-content::-webkit-scrollbar-track { background: transparent; }
.tab-content::-webkit-scrollbar-thumb { background: rgba(201,168,76,0.3); border-radius: 4px; }

/* ===== TAB HEADER ===== */
.tab-header {
  margin-bottom: 40px;
  animation: fadeSlideUp 0.5s ease both;
}
.tab-badge {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 5px;
  padding: 4px 14px;
  border-radius: 2px;
  display: inline-block;
  margin-bottom: 12px;
}
.tab-header h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  letter-spacing: 3px;
  line-height: 1;
  margin-bottom: 8px;
}
.tab-sub {
  font-size: 14px;
  letter-spacing: 1px;
  opacity: 0.6;
}

/* ===== FOOTER ===== */
.site-footer {
  position: relative; z-index: 10;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 14px 40px;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(10px);
  flex-shrink: 0;
}
.footer-inner {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 1px;
  color: rgba(255,255,255,0.45);
  flex-wrap: wrap;
}
.footer-inner strong { color: var(--fib-gold); font-weight: 600; }
.footer-div { opacity: 0.3; }
.footer-year { color: var(--fib-gold); font-weight: 700; }

/* ===== EDIT HINT BLOCKS ===== */
.edit-hint {
  display: flex; align-items: flex-start; gap: 12px;
  background: rgba(255,255,255,0.04);
  border: 1px dashed rgba(255,255,255,0.12);
  border-radius: 6px;
  padding: 16px 20px;
  margin-top: 20px;
}
.edit-icon { font-size: 20px; opacity: 0.5; flex-shrink: 0; }
.edit-hint p { font-size: 13px; opacity: 0.55; line-height: 1.6; }
.edit-hint code {
  font-family: var(--font-mono);
  background: rgba(255,255,255,0.08);
  padding: 1px 5px; border-radius: 3px;
  font-size: 12px; color: var(--fib-gold);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes pulse-ring {
  0%   { transform: scale(1); opacity: 0.4; }
  50%  { transform: scale(1.06); opacity: 0.8; }
  100% { transform: scale(1); opacity: 0.4; }
}
@keyframes blink {
  0%,100% { opacity: 1; } 50% { opacity: 0.3; }
}
