/* ============================================
   AberdeenStreams.com
   Official District Colors:
   - Blue: #254A8E (Pantone 287)
   - Gold: #EFC93F (Pantone 123)
   ============================================ */

:root {
  --blue: #254A8E;
  --blue-dark: #1a3669;
  --blue-light: #3a63a8;
  --gold: #EFC93F;
  --gold-dark: #d4af2a;
  --gold-light: #f5d96a;
  --white: #ffffff;
  --gray-50: #f8f9fb;
  --gray-100: #eef0f4;
  --gray-200: #d8dce4;
  --gray-500: #6b7280;
  --gray-700: #374151;
  --gray-900: #111827;
  --shadow-sm: 0 1px 2px rgba(37, 74, 142, 0.06);
  --shadow-md: 0 4px 12px rgba(37, 74, 142, 0.1);
  --shadow-lg: 0 8px 24px rgba(37, 74, 142, 0.14);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: var(--gray-900);
  background: var(--gray-50);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ============================================
   HEADER
   ============================================ */
.site-header {
  background: var(--white);
  border-bottom: 4px solid var(--gold);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.85rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  color: var(--blue);
}

.brand-logo {
  width: 58px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.brand-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-name {
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--blue);
  letter-spacing: -0.01em;
}

.brand-tagline {
  font-size: 0.75rem;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.main-nav {
  display: flex;
  gap: 0.25rem;
  flex-wrap: wrap;
}

.main-nav a {
  color: var(--gray-700);
  text-decoration: none;
  padding: 0.5rem 0.85rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.875rem;
  transition: all 0.15s ease;
}

.main-nav a:hover {
  background: var(--blue);
  color: var(--white);
}

.main-nav a.active {
  background: var(--gold);
  color: var(--blue);
}

/* ============================================
   HERO
   ============================================ */
.hero {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
  color: var(--white);
  padding: 3rem 1.5rem 2.5rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: var(--gold);
  opacity: 0.08;
  border-radius: 50%;
  pointer-events: none;
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
  line-height: 1.15;
}

.hero h1 .accent {
  color: var(--gold);
}

.hero p {
  font-size: 1.1rem;
  max-width: 650px;
  opacity: 0.95;
}

/* ============================================
   PAGE TITLE BAR (school pages)
   ============================================ */
.page-title-bar {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
  color: var(--white);
  padding: 2rem 1.5rem;
}

.page-title-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.breadcrumb {
  font-size: 0.875rem;
  opacity: 0.85;
  margin-bottom: 0.5rem;
}

.breadcrumb a {
  color: var(--gold);
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.page-title-inner h1 {
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

/* ============================================
   MAIN CONTENT
   ============================================ */
main {
  flex: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
  width: 100%;
}

.intro-text {
  background: var(--white);
  border-radius: 12px;
  padding: 1.5rem 1.75rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-sm);
  border-left: 5px solid var(--gold);
}

.intro-text p {
  color: var(--gray-700);
  font-size: 1rem;
}

.intro-text p + p {
  margin-top: 0.75rem;
}

/* ============================================
   ROTATING PHOTO BANNER
   ============================================ */
.rotating-banner {
  position: relative;
  margin-bottom: 2.5rem;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: var(--blue-dark);
}

.rotating-strip {
  display: flex;
  gap: 8px;
  padding: 12px 0;
  animation: scrollPhotos 60s linear infinite;
  width: max-content;
}

.rotating-strip:hover {
  animation-play-state: paused;
}

.rotating-strip .photo {
  width: 320px;
  height: 220px;
  background-size: cover;
  background-position: center;
  border-radius: 8px;
  flex-shrink: 0;
}

@keyframes scrollPhotos {
  from { transform: translateX(0); }
  to { transform: translateX(-3936px); }  /* 12 photos * 328px */
}

.rotating-banner-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.75rem 1.5rem 1.25rem;
  background: linear-gradient(180deg, transparent 0%, rgba(26, 54, 105, 0.92) 50%, rgba(26, 54, 105, 0.98) 100%);
  color: white;
  text-align: center;
  pointer-events: none;
}

.rotating-banner-overlay h3 {
  font-size: clamp(1.25rem, 2.5vw, 1.65rem);
  font-weight: 800;
  margin-bottom: 0.35rem;
  letter-spacing: -0.01em;
}

.rotating-banner-overlay h3 .accent {
  color: var(--gold);
}

.rotating-banner-overlay p {
  font-size: 0.95rem;
  opacity: 0.92;
  max-width: 600px;
  margin: 0 auto;
}

.rotating-banner::before,
.rotating-banner::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 60px;
  z-index: 1;
  pointer-events: none;
}

.rotating-banner::before {
  left: 0;
  background: linear-gradient(90deg, var(--blue-dark) 0%, transparent 100%);
}

.rotating-banner::after {
  right: 0;
  background: linear-gradient(-90deg, var(--blue-dark) 0%, transparent 100%);
}

/* ============================================
   EAGLE ZONE FEATURE CARD
   ============================================ */
.eagle-zone {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  color: var(--blue);
  border-radius: 12px;
  padding: 1.5rem 1.75rem;
  margin-bottom: 2.5rem;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
  text-decoration: none;
}

.eagle-zone::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -10%;
  width: 200px;
  height: 200px;
  background: var(--blue);
  opacity: 0.08;
  border-radius: 50%;
}

.eagle-zone-icon {
  width: 64px;
  height: 64px;
  background: var(--blue);
  color: var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.75rem;
  position: relative;
  z-index: 1;
}

.eagle-zone-text {
  flex: 1;
  min-width: 200px;
  position: relative;
  z-index: 1;
}

.eagle-zone-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  opacity: 0.8;
  margin-bottom: 0.25rem;
}

.eagle-zone h2 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 0.25rem;
}

.eagle-zone p {
  font-size: 0.95rem;
  opacity: 0.9;
}

.eagle-zone-btn {
  background: var(--blue);
  color: var(--gold);
  padding: 0.85rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  position: relative;
  z-index: 1;
  white-space: nowrap;
}

.eagle-zone:hover .eagle-zone-btn {
  background: var(--blue-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* ============================================
   INFO BOXES
   ============================================ */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.info-box {
  background: var(--white);
  border-radius: 10px;
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
  border-top: 4px solid var(--blue);
}

.info-box-icon {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.info-box h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 0.4rem;
}

.info-box p {
  font-size: 0.9rem;
  color: var(--gray-700);
}

/* ============================================
   SECTIONS
   ============================================ */
.section {
  margin-bottom: 2.5rem;
}

.section-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.section-header::after {
  content: '';
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, var(--gold) 0%, transparent 100%);
}

.section-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  color: var(--blue);
  padding: 0.35rem 0.85rem;
  background: var(--white);
  border-radius: 999px;
  border: 2px solid var(--gold);
}

/* ============================================
   SCHOOL CARDS GRID
   ============================================ */
.school-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

.school-grid.single {
  grid-template-columns: 1fr;
  max-width: 500px;
}

.school-card {
  background: var(--white);
  border-radius: 12px;
  padding: 1.25rem;
  text-decoration: none;
  color: var(--gray-900);
  box-shadow: var(--shadow-sm);
  border: 2px solid transparent;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 1rem;
  position: relative;
  overflow: hidden;
}

.school-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--gold);
  transition: width 0.2s ease;
}

.school-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--blue);
}

.school-card:hover::before {
  width: 6px;
}

.school-card-icon {
  width: 44px;
  height: 44px;
  background: var(--blue);
  color: var(--gold);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-family: Georgia, serif;
  font-weight: 900;
  font-size: 1.25rem;
}

.school-card-text {
  flex: 1;
  min-width: 0;
}

.school-card-name {
  font-weight: 700;
  color: var(--blue);
  font-size: 1rem;
  margin-bottom: 0.15rem;
}

.school-card-meta {
  font-size: 0.8rem;
  color: var(--gray-500);
}

.school-card-arrow {
  color: var(--gold-dark);
  font-size: 1.25rem;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.school-card:hover .school-card-arrow {
  transform: translateX(4px);
  color: var(--blue);
}

/* ============================================
   SCHOOL PAGE - YOUTUBE EMBED
   ============================================ */
.youtube-feed {
  background: var(--white);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 2rem;
}

.youtube-feed-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.youtube-feed h2 {
  font-size: 1.25rem;
  color: var(--blue);
  font-weight: 700;
}

.subscribe-btn {
  background: #FF0000;
  color: var(--white);
  text-decoration: none;
  padding: 0.6rem 1.25rem;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.875rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
}

.subscribe-btn:hover {
  background: #CC0000;
  transform: translateY(-1px);
}

.subscribe-btn::before {
  content: '▶';
  font-size: 0.75rem;
}

.video-embed {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 8px;
  background: var(--gray-100);
  margin-bottom: 1rem;
}

.video-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.channel-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--blue);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.75rem 1.25rem;
  border: 2px solid var(--blue);
  border-radius: 8px;
  transition: all 0.2s ease;
}

.channel-link:hover {
  background: var(--blue);
  color: var(--white);
}

/* ============================================
   BACK LINK
   ============================================ */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--blue);
  text-decoration: none;
  font-weight: 600;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}

.back-link:hover {
  color: var(--gold-dark);
}

.back-link::before {
  content: '←';
  font-size: 1.1rem;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--blue-dark);
  color: var(--white);
  padding: 2rem 1.5rem 1.5rem;
  margin-top: 3rem;
  border-top: 4px solid var(--gold);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-text {
  font-size: 0.875rem;
  opacity: 0.85;
}

.footer-text strong {
  color: var(--gold);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .main-nav {
    width: 100%;
    overflow-x: auto;
  }

  .eagle-zone {
    flex-direction: column;
    text-align: center;
  }

  .eagle-zone-btn {
    width: 100%;
    text-align: center;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 600px) {
  .rotating-strip .photo {
    width: 240px;
    height: 170px;
  }
  @keyframes scrollPhotos {
    from { transform: translateX(0); }
    to { transform: translateX(-2976px); }  /* 12 * 248 */
  }
  .rotating-banner-overlay {
    padding: 1.25rem 1rem 1rem;
  }
}

/* ============================================
   CHANNEL PREVIEW CARD (for @handle channels)
   ============================================ */
.channel-preview {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
  border-radius: 12px;
  padding: 2.5rem 2rem;
  color: var(--white);
  margin-bottom: 1rem;
  position: relative;
  overflow: hidden;
}

.channel-preview::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -10%;
  width: 250px;
  height: 250px;
  background: var(--gold);
  opacity: 0.1;
  border-radius: 50%;
  pointer-events: none;
}

.channel-preview-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.channel-preview-icon {
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #FF0000;
  background: white;
}

.channel-preview-text {
  flex: 1;
  min-width: 240px;
}

.channel-preview-text h3 {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.channel-preview-text p {
  font-size: 0.95rem;
  opacity: 0.9;
  line-height: 1.5;
}

.channel-preview-btn {
  background: var(--gold);
  color: var(--blue);
  text-decoration: none;
  padding: 1rem 1.75rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1rem;
  white-space: nowrap;
  transition: all 0.2s ease;
  display: inline-block;
}

.channel-preview-btn:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

@media (max-width: 600px) {
  .channel-preview-inner {
    flex-direction: column;
    text-align: center;
  }
  .channel-preview-btn {
    width: 100%;
  }
}
