/* gobboapp.css */

/* Import Medodica font */
@font-face {
  font-family: 'Medodica';
  src: url('https://gobbovideo.com/fonts/MedodicaRegular.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
}

/* Force white text everywhere */
*,
*::before,
*::after {
  box-sizing: border-box;
  font-family: 'Medodica', Arial, sans-serif !important;
  color: white !important;
}

/* Form controls and placeholders */
input,
textarea,
select,
button {
  color: white !important;
  font-family: 'Medodica', Arial, sans-serif !important;
  background-color: transparent;
  border: none;
}

input::placeholder,
textarea::placeholder {
  color: rgba(255, 255, 255, 0.7) !important;
}

/* SVG text white */
svg text {
  fill: white !important;
}

body, html {
  margin: 0;
  padding: 0;
  height: 100vh;
  background:
    linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
    url('actualstuff/images/bkg.png') no-repeat center center fixed;
  background-size: cover;
  display: flex;
  flex-direction: column;
}

a {
  color: white !important;
  text-decoration: none;
}

/* Top nav */
header {
  background: rgba(107, 142, 35, 0.9);
  padding: 0 1rem;
  display: flex;
  align-items: center;
  height: 75px;
  flex-shrink: 0;
}

#logo {
  height: 64px;
  margin-right: 1rem;
  cursor: pointer;
}

nav.desktop-menu {
  display: flex;
  gap: 1rem;
}

nav.desktop-menu a {
  padding: 1rem;
  font-weight: bold;
  font-size: 2rem;
  border-bottom: 3px solid transparent;
}

nav.desktop-menu a.active {
  border-bottom: 4px solid #add481;
}

/* Main content */
#main-content {
  flex-grow: 1;
  overflow-y: auto;
  padding: 1rem;
  width: 100%;
  max-width: 1200px; /* limit width so cards don't get too wide */
  margin: 0 auto; /* center container */
  box-sizing: border-box;
}

/* Hide mobile nav by default (desktop) */
nav.mobile-menu {
  display: none;
}

/* Mobile only nav styles */
@media (max-width: 768px) {
  nav.desktop-menu {
    display: none;
  }

  nav.mobile-menu {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #6b8e23;
    color: white;
    height: 75px;
    display: flex !important;
    flex-shrink: 0;
    justify-content: space-around;
    align-items: center;
    font-size: 1.2rem;
    z-index: 1000;
    box-shadow: 0 -2px 5px rgba(0,0,0,0.3);
  }

  nav.mobile-menu a {
    flex-grow: 1;
    text-align: center;
    padding: 21px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  nav.mobile-menu a svg {
    fill: white !important;
    height: 20px;
    width: 20px;
    margin-bottom: 2px;
  }

  nav.mobile-menu a.active {
    background: rgb(158, 209, 53);
  }
#main-content {
  flex-grow: 1;
  overflow-y: auto;
  padding: 1rem;
  padding-bottom: 75px; /* space for mobile nav */
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
  }
  /* Hide scrollbar for Firefox */
  scrollbar-width: none;

  /* Hide scrollbar for IE, Edge */
  -ms-overflow-style: none;
}

/* Hide scrollbar for Chrome, Safari, Opera */
#main-content::-webkit-scrollbar {
  display: none;
}

/* On desktop, reduce bottom padding */
@media (min-width: 993px) {
  #main-content {
    padding-bottom: 1rem;
  }
}


/* Hide all scrollbars on widths less than desktop (992px) */
@media (max-width: 991px) {
  * {
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
  }
  *::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
  }
}

/* Spinner */
.spinner {
  margin: 3rem auto;
  border: 4px solid rgba(255,255,255,0.3);
  border-top: 4px solid white;
  border-radius: 50%;
  width: 45px;
  height: 45px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ======= Video Cards ======= */
.videos-container {
  display: grid;
  gap: 1rem;
  padding: 0.5rem;
  width: 100%;
  box-sizing: border-box;
  grid-template-columns: 1fr; /* Mobile default: 1 column */
  justify-items: center; /* center cards horizontally */
}

/* Tablet: 2 columns */
@media (min-width: 600px) {
  .videos-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Desktop: exactly 3 columns */
@media (min-width: 992px) {
  .videos-container {
    grid-template-columns: repeat(3, 1fr);
  }
}

.video-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: rgba(107, 142, 35, 0.57);
  border-radius: 5px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.5);
  cursor: pointer;
  overflow: hidden;
  padding: 15px;
  box-sizing: border-box;
  width: 100%;
  max-width: 350px; /* prevent huge stretching */
  height: auto;
  transition: background-color 0.2s ease;
}

.video-card:hover {
  background-color: rgba(107, 142, 35, 0.8);
}

.video-card .thumbnail {
  width: 100%;
  max-width: 350px; /* match card limit */
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
  display: block;
}

.video-card .info {
  margin-top: 1rem;
  color: white;
  overflow: hidden;
  white-space: normal;
  text-overflow: unset;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
