/* HighSpeedRail.TV Styles
   Brand colors matching hsr.fyi: Coral/Salmon, Dark Teal, Cream backgrounds
*/

:root {
  /* Primary colors - matching hsr.fyi */
  --coral: #E07A5F;
  --coral-dark: #c96a52;
  --coral-light: #fdf0ed;
  --teal: #1B4D4A;
  --teal-light: #2A6B67;
  --cream: #FFFBF7;
  --cream-dark: #F5EDE6;

  /* Neutrals */
  --text-primary: #2D3436;
  --text-secondary: #636E72;
  --text-light: #B2BEC3;
  --border: #E8E0D8;
  --white: #ffffff;

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;

  /* Layout */
  --container-width: 1140px;
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --spacing-2xl: 4.5rem;
  --spacing-3xl: 6rem;

  /* Borders & Shadows */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.08);
}

/* Reset */
*, *::before, *::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-primary);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--teal);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--teal-light);
}

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

/* Container */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
}

/* Header */
.site-header {
  background: var(--teal);
  padding: var(--spacing-md) 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-sans);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: -0.01em;
}

.logo:hover {
  color: var(--white);
}

.logo-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
}

.logo-icon svg {
  display: block;
}

.logo-tv {
  color: var(--coral);
}

.logo-arrow {
  display: flex;
  align-items: center;
  color: var(--coral);
  margin-left: 0.25rem;
}

.main-nav {
  display: flex;
  gap: var(--spacing-xs);
  align-items: center;
}

.main-nav a {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
  font-size: 0.9rem;
  padding: 0.5rem 0.9rem;
  border-radius: 100px;
  transition: all 0.2s ease;
}

.main-nav a:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
}

/* Hero Section */
.hero {
  background: var(--cream);
  padding: var(--spacing-3xl) 0 var(--spacing-2xl);
  text-align: center;
}

.hero-content {
  max-width: 700px;
  margin: 0 auto;
}

.hero h1 {
  font-family: var(--font-serif);
  font-size: 3.25rem;
  font-weight: 600;
  margin: 0 0 var(--spacing-md);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

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

.hero p {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.7;
}

/* Section Badge */
.section-badge {
  display: inline-block;
  background: var(--coral-light);
  color: var(--coral);
  padding: 0.4rem 1rem;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: var(--spacing-md);
}

/* Sections */
.section {
  padding: var(--spacing-2xl) 0;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--spacing-xl);
}

.section-title {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 600;
  margin: 0;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.section-link {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--coral);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: gap 0.2s ease;
}

.section-link:hover {
  color: var(--coral-dark);
  gap: 0.6rem;
}

/* Featured Video */
.featured-video {
  background: var(--white);
  padding: var(--spacing-2xl) 0;
  border-radius: var(--radius-xl);
  margin: 0 var(--spacing-lg) var(--spacing-lg);
}

.featured-header {
  text-align: center;
  margin-bottom: var(--spacing-xl);
}

.featured-header .section-title {
  margin-top: var(--spacing-xs);
}

.featured-container {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: var(--spacing-xl);
  align-items: center;
  max-width: 1000px;
  margin: 0 auto;
}

.featured-player {
  position: relative;
  padding-bottom: 56.25%;
  background: var(--text-primary);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.featured-player iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.featured-info {
  padding: var(--spacing-sm) 0;
}

.featured-info .video-category {
  margin-bottom: var(--spacing-sm);
}

.featured-info h2 {
  font-family: var(--font-serif);
  font-size: 1.65rem;
  font-weight: 600;
  margin: 0 0 var(--spacing-md);
  color: var(--text-primary);
  line-height: 1.3;
}

.featured-info > p {
  color: var(--text-secondary);
  margin: 0 0 var(--spacing-md);
  font-size: 1rem;
  line-height: 1.7;
}

.featured-info .video-date {
  margin: 0;
}

@media (max-width: 900px) {
  .featured-video {
    margin: 0 0 var(--spacing-lg);
    border-radius: 0;
  }

  .featured-container {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }
}

/* Video Grid */
.video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-lg);
}

@media (max-width: 1024px) {
  .video-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

/* Video Card */
.video-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.video-placeholder {
  position: relative;
  padding-bottom: 56.25%;
  background: var(--cream-dark);
  cursor: pointer;
  overflow: hidden;
}

.video-placeholder::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 56px;
  height: 56px;
  background: var(--white);
  border-radius: 50%;
  z-index: 2;
  transition: transform 0.2s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.video-placeholder::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-35%, -50%);
  border-style: solid;
  border-width: 8px 0 8px 14px;
  border-color: transparent transparent transparent var(--coral);
  z-index: 3;
}

.video-card:hover .video-placeholder::before {
  transform: translate(-50%, -50%) scale(1.1);
}

.video-placeholder img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.video-card:hover .video-placeholder img {
  transform: scale(1.03);
}

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

.video-info {
  padding: var(--spacing-md) var(--spacing-md) var(--spacing-lg);
}

.video-category {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--coral);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 0.5rem;
}

.video-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
  color: var(--text-primary);
  line-height: 1.35;
}

.video-title a {
  color: inherit;
}

.video-title a:hover {
  color: var(--coral);
}

.video-description {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin: 0 0 var(--spacing-sm);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.55;
}

.video-date {
  font-size: 0.8rem;
  color: var(--text-light);
  font-weight: 500;
}

/* Categories Section */
.categories-section {
  padding: var(--spacing-xl) 0 var(--spacing-2xl);
}

.categories-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
}

.category-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.7rem 1.3rem;
  background: var(--white);
  color: var(--text-secondary);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-weight: 500;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.category-pill:hover {
  border-color: var(--teal);
  color: var(--teal);
  background: var(--white);
}

.category-pill.active {
  background: var(--teal);
  border-color: var(--teal);
  color: var(--white);
}

/* Page Header */
.page-header {
  background: var(--cream);
  padding: var(--spacing-2xl) 0;
  text-align: center;
  margin-bottom: var(--spacing-lg);
}

.page-header h1 {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 600;
  margin: 0 0 var(--spacing-xs);
  color: var(--text-primary);
}

.page-header p {
  color: var(--text-secondary);
  margin: 0;
  font-size: 1.1rem;
}

/* Categories List Page */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--spacing-lg);
}

.category-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--spacing-xl);
  transition: all 0.2s ease;
  text-align: center;
}

.category-card:hover {
  border-color: var(--coral);
  box-shadow: var(--shadow-md);
}

.category-card h2 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 600;
  margin: 0 0 var(--spacing-xs);
}

.category-card h2 a {
  color: var(--text-primary);
}

.category-card h2 a:hover {
  color: var(--coral);
}

.category-card p {
  color: var(--text-light);
  margin: 0;
  font-size: 0.9rem;
}

/* Footer */
.site-footer {
  background: var(--teal);
  color: rgba(255, 255, 255, 0.8);
  padding: var(--spacing-3xl) 0 var(--spacing-xl);
  margin-top: var(--spacing-2xl);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: var(--spacing-xl);
  margin-bottom: var(--spacing-xl);
}

.footer-brand {
  padding-right: var(--spacing-lg);
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--white);
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: var(--spacing-sm);
}

.footer-logo:hover {
  color: var(--white);
}

.footer-brand p {
  margin: 0;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
}

.footer-col h4 {
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin: 0 0 var(--spacing-md);
}

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

.footer-col li {
  margin-bottom: 0.6rem;
}

.footer-col a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: var(--white);
}

.footer-bottom {
  padding-top: var(--spacing-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  text-align: center;
}

.footer-bottom p {
  margin: 0;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}

.footer-bottom a {
  color: var(--white);
  font-weight: 500;
}

.footer-bottom a:hover {
  opacity: 0.8;
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl) var(--spacing-lg);
  }

  .footer-brand {
    grid-column: 1 / -1;
    padding-right: 0;
  }
}

@media (max-width: 640px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }
}

/* Utility Classes */
.text-center {
  text-align: center;
}

.mt-lg {
  margin-top: var(--spacing-lg);
}

/* Responsive */
@media (max-width: 768px) {
  .hero {
    padding: var(--spacing-2xl) 0 var(--spacing-xl);
  }

  .hero h1 {
    font-size: 2.25rem;
  }

  .hero p {
    font-size: 1.05rem;
  }

  .section {
    padding: var(--spacing-xl) 0;
  }

  .section-title {
    font-size: 1.65rem;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--spacing-sm);
  }
}

@media (max-width: 640px) {
  .container {
    padding: 0 var(--spacing-md);
  }

  .main-nav {
    gap: 0;
  }

  .main-nav a {
    padding: 0.4rem 0.6rem;
    font-size: 0.85rem;
  }

  .logo {
    font-size: 1rem;
  }

  .logo-icon {
    width: 28px;
    height: 28px;
    font-size: 0.9rem;
  }

  .categories-nav {
    gap: 0.5rem;
  }

  .category-pill {
    padding: 0.55rem 1rem;
    font-size: 0.85rem;
  }
}
