/* css/global.css */
@font-face {
  font-family: 'Medodica Regular';
  src: url('/components/Fonts/MedodicaRegular.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
}


/* ============================================================
   0. CSS VARIABLES (Merged directly to prevent import failures)
   ============================================================ */
:root {
  --gobbo-green: #aed580;
  --gobbo-green-hover: #aed580;
  --bg-dark: #0b0b0b;
  --text-main: #ffffff;
  --text-muted: rgba(180, 180, 180, 0.6);
  --header-height: 64px;
  --mobile-nav-height: 76px;
  --font-body: 'Medodica Regular', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Medodica Regular', 'Medodica', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}


/* ============================================================
   1. GLOBAL RESET & BASE LAYOUT
   ============================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  border-radius: 0 !important;
}

html,
body {
  width: 100%;
  min-height: 100vh;
  background-color: #0b0b0b;
  background-color: var(--bg-dark, #0b0b0b);
  color: #ffffff;
  color: var(--text-main, #ffffff);
  font-family: var(--font-body);
  font-size: 25px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
}

button,
input,
select,
textarea {
  font: inherit;
}

body {
  display: flex;
  flex-direction: column;
  /* 
     Pixel fonts run large. Dropping base size slightly ensures it 
     doesn't break your layout layouts. Adjust this value as needed!
  */
  font-size: 20px;
  line-height: 1.6;
}

a {
  color: #aed580; /* Fallback */
  color: var(--gobbo-green, #aed580);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--gobbo-green-hover, #aed580);
}

/* Display titles use the Nihonium113 font. */
.hero-title,
.wgo-title,
.footer-title,
.vc-title,
.video-title,
.search-title {
  font-family: var(--font-display);
  font-weight: 400;
}

/* Shared media thumbnail ratio for every video preview surface. */
.vc-thumb-box,
.search-thumb-container,
.video-thumb-wrapper {
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.vc-thumb-box img,
.search-thumb-container img,
.video-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

ul,
ol {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* ============================================================
   2. MAIN CONTENT ROUTE CONTAINER
   ============================================================ */
#main-content {
  flex: 1 0 auto; 
  padding-top: 64px; /* Hardcoded fallback guarantees header spacing */
  padding-top: var(--header-height, 64px); 
  padding-inline: clamp(16px, 3vw, 32px);
  padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  min-height: calc(100vh - 64px);
  min-height: calc(100vh - var(--header-height, 64px));
  display: flex;
  flex-direction: column;
}

@media (max-width: 768px) {
  #main-content {
    padding-top: calc(var(--header-height, 64px) + 12px);
    padding-inline: 16px;
    padding-bottom: calc(var(--mobile-nav-height, 76px) + 20px + env(safe-area-inset-bottom, 0px));
  }
}

/* ============================================================
   3. ACCESSIBILITY & UTILITIES
   ============================================================ */
.a11y-skip-link {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.a11y-skip-link:focus {
  position: fixed;
  top: 0;
  left: 0;
  width: auto;
  height: auto;
  background: #aed580;
  background: var(--gobbo-green, #aed580);
  color: #000;
  padding: 12px 24px;
  font-weight: bold;
  z-index: 10000;
  border-bottom-right-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  outline: none;
}

#gobbo-connecting-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.95), rgba(0, 0, 0, 0.92));
  color: #fff;
  z-index: 99990;
  transition: opacity 0.25s ease;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(255, 255, 255, 0.1);
  border-top-color: #aed580;
  border-top-color: var(--gobbo-green, #aed580);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ============================================================
   4. WEB BAR INTERFACE CUSTOMIZATION
   ============================================================ */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: #0b0b0b;
}

::-webkit-scrollbar-thumb {
  background: #333333;
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: #aed580;
  background: var(--gobbo-green, #aed580);
}