/* Base styles from Anders template */
body {
  min-height: 75rem;
  padding-top: 7rem;
}

body, html {
  height: 100%;
  background-color: #FAF9F6; /* Aged parchment background */
  color: #2C2C2C;
}

/* Lars Brownworth color scheme */
:root {
  --lars-burgundy: #8B2F39;
  --lars-gold: #B8860B;
  --lars-navy: #1B2838;
  --lars-parchment: #FAF9F6;
  --lars-text: #2C2C2C;
}

/* Navbar styling */
.navbar {
  background-color: var(--lars-burgundy) !important;
}

.navbar-brand {
  color: var(--lars-parchment) !important;
  font-size: 1.5rem;
  font-weight: bold;
}

.nav-link {
  color: var(--lars-parchment) !important;
}

.nav-link:hover,
.nav-link:focus {
  color: var(--lars-gold) !important;
}

.nav-link.active {
  color: var(--lars-gold) !important;
  font-weight: 600;
}

/* Button styling */
.btn-primary {
  background-color: var(--lars-burgundy);
  border-color: var(--lars-burgundy);
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: #6E2530;
  border-color: #6E2530;
}

.btn-secondary {
  background-color: var(--lars-navy);
  border-color: var(--lars-navy);
}

.btn-secondary:hover,
.btn-secondary:focus {
  background-color: #0F1820;
  border-color: #0F1820;
}

.btn-outline-secondary {
  color: var(--lars-navy);
  border-color: var(--lars-navy);
}

.btn-outline-secondary:hover {
  background-color: var(--lars-navy);
  border-color: var(--lars-navy);
  color: white;
}

/* Card styling */
.card {
  border-color: var(--lars-gold);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  background-color: white;
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.card-header {
  background-color: var(--lars-navy);
  color: white;
}

.card-footer {
  background-color: #f8f9fa;
}

/* Badge styling */
.badge.bg-warning {
  background-color: var(--lars-gold) !important;
  color: var(--lars-navy) !important;
}

/* Book cover styling */
.book-cover {
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s;
}

.book-cover:hover {
  transform: scale(1.02);
}

/* Hero section with background video */
.hero-background {
  position: relative;
  min-height: 500px;
  margin-bottom: 3rem;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  z-index: 0;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(27, 24, 56, 0.85) 0%, rgba(27, 24, 56, 0.6) 50%, rgba(27, 24, 56, 0.3) 70%, transparent 100%);
  z-index: 1;
}

.hero-container {
  position: relative;
  z-index: 2;
  padding: 4rem 0;
}

.hero-content {
  padding: 2rem 0;
  position: relative;
  z-index: 2;
}

.hero-title {
  color: white;
  font-weight: bold;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
  margin-bottom: 1rem;
}

.hero-subtitle {
  color: white !important;
  font-weight: 600;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
  margin-bottom: 1rem;
}

.hero-description {
  color: white;
  font-size: 1.1rem;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
  max-width: 500px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  color: var(--lars-navy);
  font-weight: 600;
}

.display-4, .display-5 {
  color: var(--lars-navy);
}

.lead {
  color: var(--lars-text);
  font-size: 1.15rem;
}

/* Footer styling */
footer {
  background-color: var(--lars-navy);
  color: var(--lars-parchment);
  padding: 2rem 0;
  margin-top: 4rem;
}

footer a {
  color: var(--lars-gold) !important;
  text-decoration: none;
}

footer a:hover {
  color: var(--lars-parchment) !important;
  text-decoration: underline;
}

footer .nav-link {
  color: var(--lars-gold) !important;
}

footer p {
  color: var(--lars-parchment);
}

/* Breadcrumb styling */
.breadcrumb {
  background-color: transparent;
  padding: 0.5rem 0;
}

.breadcrumb-item a {
  color: var(--lars-burgundy);
  text-decoration: none;
}

.breadcrumb-item a:hover {
  color: var(--lars-navy);
  text-decoration: underline;
}

/* List group for social media */
.list-group-item {
  border-color: var(--lars-gold);
}

.list-group-item:hover {
  background-color: #F0EDE8;
}

/* Horizontal rule */
hr {
  border-top: 2px solid var(--lars-gold);
  opacity: 0.3;
}

/* Podcast and TV & Film cover images on homepage */
.card-img-top {
  max-height: 400px;
  object-fit: cover;
  object-position: top;
}

/* Responsive adjustments */
@media (max-width: 991px) {
  body {
    padding-top: 6rem;
  }

  .hero-background {
    min-height: 400px;
    background-position: center;
    padding: 3rem 0;
  }

  .hero-content {
    text-align: center;
  }

  .hero-description {
    max-width: 100%;
  }
}

@media (max-width: 575px) {
  body {
    padding-top: 5rem;
  }

  .hero-background {
    min-height: 350px;
  }

  .hero-overlay {
    background: linear-gradient(to bottom, rgba(27, 24, 56, 0.9) 0%, rgba(27, 24, 56, 0.7) 100%);
  }

  .hero-container {
    padding: 2rem 0;
  }

  .display-3 {
    font-size: 2.5rem;
  }

  .display-4 {
    font-size: 2.5rem;
  }

  .display-5 {
    font-size: 2rem;
  }

  .hero-description {
    font-size: 1rem;
  }
}
