/* ==========================
   KennyCon Global Stylesheet
   ========================== */

/* ---- Root Variables (Dark Theme) ---- */
:root {
  --background: #111827;   /* page background: dark navy/charcoal */
  --panel: #1f2937;        /* panels: slightly lighter dark */
  --accent: #facc15;       /* headers: golden yellow */
  --link: #60a5fa;         /* links: light blue */
  --muted: #9ca3af;        /* muted gray */
  --text: #e5e7eb;         /* main text: light gray */
}

/* ---- Base Reset ---- */
* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

/* Ensure anchors aren't hidden under sticky header */
html {
  scroll-padding-top: 140px; /* matches your header height with buffer */
}

body {
  font-family: Arial, sans-serif;
  background-color: var(--background);
  color: var(--text);
  line-height: 1.6;
}

/* Utility: container */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ---- Typography ---- */
h1 {
  font-size: 2rem;
  margin: 1rem 0;
  color: var(--accent);
}

h2 {
  font-size: 1.5rem;
  margin: 1rem 0 0.5rem;
  color: var(--accent);
}

h3 {
  font-size: 1.25rem;
  margin: 0.75rem 0 0.5rem;
  color: var(--accent);
}

p {
  margin: 0 0 1rem;
}

/* ---- Links ---- */
a {
  color: var(--link);
  text-decoration: none;
}

a:hover,
a:focus {
  text-decoration: underline;
}

/* ---- Layout Utilities ---- */
.columns {
  display: flex;
  gap: 20px;
  margin-bottom: 2rem;
}

.column {
  flex: 1;
}

.column img {
  max-width: 100%;
  height: auto;
}

@media (max-width: 768px) {
  .columns {
    flex-direction: column;
  }
}

/* ---- Buttons ---- */
.button,
.btn {
  display: inline-block;
  background: var(--accent);
  color: #000;             /* dark text on yellow */
  border-radius: 12px;
  padding: 10px 14px;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
}

.button:hover,
.btn:hover {
  background: #fde047;     /* lighter yellow on hover */
}

/* ---- Spacing Helpers ---- */
.spacing {
  margin: 2rem 0;
}

/* ---- Sidebar Navigation ---- */
.about-layout {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
}

.sidebar {
  flex: 0 0 220px;
  position: sticky;
  top: 120px;
  background: var(--panel);
  border-radius: 8px;
  padding: 1.5rem;
  height: fit-content;
  max-height: calc(100vh - 140px);
  overflow-y: auto;
}

/* Sidebar scrollbar styling */
.sidebar::-webkit-scrollbar {
  width: 12px;
}

.sidebar::-webkit-scrollbar-track {
  background: var(--background);
  border-radius: 8px;
}

.sidebar::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 8px;
  border: 2px solid var(--panel);
}

.sidebar::-webkit-scrollbar-thumb:hover {
  background: #fde047;
}

.sidebar h1 {
  font-size: 1.5rem;
  margin: 0 0 1rem 0;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--accent);
  color: var(--accent);
}

/* Sidebar with no navigation links */
.sidebar:not(:has(ul)) h1 {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar li {
  margin: 0.25rem 0;
}

.sidebar li:last-child {
  margin-bottom: 0;
}

.sidebar a {
  color: var(--link);
  text-decoration: none;
  font-weight: bold;
}

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

.about-content {
  flex: 1;
  min-width: 0;
}

@media (max-width: 900px) {
  .about-layout {
    flex-direction: column;
  }
  .sidebar {
    position: relative;
    top: auto;
    margin-bottom: 1rem;
    max-width: 100%;
    max-height: 300px;
    overflow-y: auto;
  }
  .sidebar h1 {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
  }
}

/* ---- Host Cards (dark theme) ---- */
.hosts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin: 1rem 0;
}

.host-card {
  background: var(--panel);
  border: 1px solid #374151;
  border-radius: 8px;
  padding: 1rem;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.host-card h2 {
  margin: 0.5rem 0 0.25rem;
  color: var(--accent);
}

.host-card h3 {
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
  font-weight: normal;
  color: var(--muted);
}

.host-card p {
  color: var(--text);
}

/* ---- Full Width Photo (generic, reusable) ---- */
.full-width-photo {
  grid-column: 1 / -1; /* span across all columns if inside a grid */
  text-align: center;
  margin: 1rem 0;
}

.full-width-photo img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
}

/* ---- Index Page Grid ---- */
.index-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin: 40px auto;
  max-width: 1000px;
}

.index-left h1,
.index-right h3 {
  color: var(--accent);
}

.index-left img {
  max-width: 100%;
  height: auto;
  margin-top: 16px;
}

.index-right ul {
  list-style: disc;
  padding-left: 20px;
}

.index-right li {
  margin-bottom: 10px;
}

@media (max-width: 768px) {
  .index-grid {
    grid-template-columns: 1fr;
  }
}

/* ---- Hosts Section Responsive ---- */
.group-photo {
  display: block;
}

.hosts-grid {
  display: grid;
}

.host-photo {
  display: none;
  margin: 1.5rem 0;
  text-align: center;
}

.host-photo img {
  max-width: 220px;
  height: auto;
  border-radius: 12px;
  margin-bottom: 0.75rem;
}

@media (max-width: 768px) {
  .group-photo {
    display: none;
  }
  .hosts-grid {
    display: none;
  }
  .host-photo {
    display: block;
  }
}

/* ---- Footer/Header Safety ---- */
/* Add overrides here if global styles conflict with header/footer */

/* Mobile CTA button fixes */
@media (max-width: 768px) {
  /* Force all buttons in sections to stack properly */
  section .btn,
  section a.btn {
    display: block !important;
    width: 100% !important;
    margin: 0.5rem auto !important;
    max-width: 400px;
  }
  
  /* Fix for CTA sections with multiple buttons */
  section[style*="text-align: center"] a.btn {
    margin-left: auto !important;
    margin-right: auto !important;
  }
  
  /* Hero grid mobile - stack vertically */
  .hero-grid {
    grid-template-columns: 1fr !important;
  }
  
  /* Quick stats - 2 columns on mobile */
  .quick-stats {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  
  /* Features list - single column on mobile */
  .features-list {
    grid-template-columns: 1fr !important;
  }
  
  /* Schedule grid - single column on mobile */
  .schedule-grid {
    grid-template-columns: 1fr !important;
  }
  
  /* Button groups - stack vertically */
  .btn-group {
    flex-direction: column !important;
  }
  
  .btn-group .btn {
    width: 100% !important;
  }
}


/* 
=== Change Log ===
2025-09-30: Added responsive host section rules (.group-photo / .host-photo)
2025-09-30: Hid .hosts-grid on mobile to prevent duplicate bios
*/

/* Countdown Timer Pulse Animation */
@keyframes pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.05);
  }
}

/* kennycon.css */
