/* ========================================
   CSS Custom Properties
   ======================================== */
:root {
  --primary: #f3ce13;
  --secondary: #e83b3b;
  --tertiary: #2c82c9;
  --bg: #1c1c1c;
  --bg-light: #2a2a2a;
  --bg-card: rgba(255, 255, 255, 0.08);
  --text: #ffffff;
  --text-muted: #a0a0a0;
  --font-heading: 'Oswald', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-accent: 'Orbitron', sans-serif;
  --max-width: 1200px;
  --radius: 10px;
  --transition: 0.3s ease;
}

/* ========================================
   Reset / Base
   ======================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--secondary);
}

/* ========================================
   Typography
   ======================================== */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
}

h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  margin-bottom: 1rem;
}

h3 {
  font-size: clamp(1.2rem, 3vw, 1.5rem);
}

/* ========================================
   Layout
   ======================================== */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

section {
  padding: 80px 0;
}

/* ========================================
   Navigation
   ======================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(28, 28, 28, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(243, 206, 19, 0.15);
  transition: background var(--transition);
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 12px 20px;
}

.nav-brand {
  font-family: var(--font-accent);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 2px;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 30px;
}

.nav-links a {
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width var(--transition);
}

.nav-links a:hover {
  color: var(--primary);
}

.nav-links a:hover::after {
  width: 100%;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 2px;
  background: var(--text);
  transition: all var(--transition);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 60px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(243, 206, 19, 0.05) 0%, transparent 70%);
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-logo {
  width: 150px;
  height: 150px;
  margin: 0 auto 30px;
  border-radius: 50%;
  border: 3px solid var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(243, 206, 19, 0.1);
  animation: pulse-glow 3s ease-in-out infinite;
}

.hero-logo img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.hero-logo-placeholder {
  font-family: var(--font-accent);
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--primary);
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 20px rgba(243, 206, 19, 0.2); }
  50% { box-shadow: 0 0 40px rgba(243, 206, 19, 0.4); }
}

.hero h1 {
  font-family: var(--font-accent);
  font-size: clamp(2rem, 6vw, 3.5rem);
  color: var(--primary);
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.hero h1 span {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.4em;
  color: var(--text);
  letter-spacing: 8px;
  margin-top: 5px;
}

.hero-tagline {
  font-size: clamp(1rem, 2vw, 1.3rem);
  color: var(--text-muted);
  font-style: italic;
  margin-top: 15px;
}

.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s infinite;
}

.scroll-indicator svg {
  width: 30px;
  height: 30px;
  stroke: var(--primary);
  opacity: 0.6;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
  40% { transform: translateX(-50%) translateY(-10px); }
  60% { transform: translateX(-50%) translateY(-5px); }
}

/* ========================================
   Story Section
   ======================================== */
.story {
  background: var(--bg-light);
}

.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.story-text p {
  margin-bottom: 1rem;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.story-text p:first-of-type::first-letter {
  font-size: 3rem;
  font-family: var(--font-accent);
  color: var(--primary);
  float: left;
  margin-right: 8px;
  line-height: 1;
}

.story-quote {
  background: var(--bg);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius);
  padding: 40px;
  position: relative;
}

.story-quote blockquote {
  font-size: 1.5rem;
  font-family: var(--font-heading);
  font-style: italic;
  color: var(--primary);
  margin-bottom: 15px;
}

.story-quote cite {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ========================================
   Beer Cards Section
   ======================================== */
.beers {
  padding-bottom: 60px;
}

.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.section-header p {
  color: var(--text-muted);
  margin-top: 10px;
  font-size: 1.05rem;
}

.filters {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.filter select {
  padding: 10px 20px;
  background: var(--bg-light);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.9rem;
  cursor: pointer;
  transition: border-color var(--transition);
}

.filter select:hover,
.filter select:focus {
  border-color: var(--primary);
  outline: none;
}

.beer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 25px;
}

.beer-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.beer-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.beer-card-image {
  width: 100%;
  height: 220px;
  overflow: hidden;
  position: relative;
}

.beer-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.beer-card-image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 2px;
}

.beer-card-body {
  padding: 20px;
}

.beer-card-body h3 {
  margin-bottom: 10px;
  color: var(--text);
}

.beer-stats {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.beer-stat {
  display: inline-block;
  padding: 3px 10px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary);
}

.beer-stat.style-badge {
  color: var(--tertiary);
}

.beer-card-body > p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 15px;
}

.beer-card-link {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.beer-card-link:hover {
  color: var(--secondary);
}

.coming-soon {
  text-align: center;
  margin-top: 40px;
  font-style: italic;
  color: var(--primary);
  font-size: 1.1rem;
}

/* ========================================
   Footer
   ======================================== */
.site-footer {
  background: var(--bg-light);
  border-top: 1px solid rgba(243, 206, 19, 0.15);
  padding: 60px 0 30px;
  text-align: center;
}

.footer-brand {
  font-family: var(--font-accent);
  font-size: 1.2rem;
  color: var(--primary);
  letter-spacing: 2px;
  margin-bottom: 10px;
}

.footer-quote {
  font-style: italic;
  color: var(--text-muted);
  margin: 20px 0;
  font-size: 1rem;
}

.footer-quote cite {
  display: block;
  margin-top: 5px;
  font-size: 0.85rem;
  color: var(--primary);
}

.footer-credit {
  color: var(--text-muted);
  font-size: 0.8rem;
  margin-top: 30px;
}

/* Fire tracks animation at bottom */
.fire-tracks {
  height: 4px;
  background: linear-gradient(90deg,
    var(--secondary) 0%,
    var(--primary) 50%,
    var(--secondary) 100%);
  background-size: 200% 100%;
  animation: fire-move 5s linear infinite;
}

@keyframes fire-move {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

/* ========================================
   Recipe Detail Pages
   ======================================== */
.recipe-page {
  padding-top: 80px;
}

.recipe-hero {
  padding: 60px 0 40px;
  text-align: center;
  background: var(--bg-light);
}

.recipe-hero-image {
  width: 200px;
  max-height: 280px;
  margin: 0 auto 25px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.recipe-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.recipe-hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 10px;
}

.recipe-hero .recipe-style {
  font-size: 1.1rem;
  color: var(--tertiary);
  margin-bottom: 20px;
}

.recipe-stats-bar {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.recipe-stat-item {
  text-align: center;
}

.recipe-stat-item .label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.recipe-stat-item .value {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  font-family: var(--font-heading);
}

.recipe-overview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  margin: 30px 0;
  padding: 20px;
  background: var(--bg-card);
  border-radius: var(--radius);
}

.recipe-overview-item {
  font-size: 0.9rem;
}

.recipe-overview-item strong {
  color: var(--text-muted);
}

.recipe-section {
  margin: 40px 0;
}

.recipe-section h2 {
  font-size: 1.4rem;
  margin-bottom: 15px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--primary);
  display: inline-block;
}

.recipe-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}

.recipe-table th {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 2px solid var(--primary);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
}

.recipe-table td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.9rem;
}

.recipe-table tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.03);
}

.recipe-notes {
  padding: 20px;
  background: var(--bg-card);
  border-left: 3px solid var(--primary);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--text-muted);
  line-height: 1.7;
}

.recipe-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 40px 0;
  padding: 10px 20px;
  background: var(--bg-card);
  border-radius: var(--radius);
  color: var(--primary);
  font-weight: 600;
  transition: background var(--transition);
}

.recipe-back:hover {
  background: rgba(243, 206, 19, 0.1);
  color: var(--primary);
}

/* Yeast info card */
.yeast-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 20px;
  margin-top: 10px;
}

.yeast-card h3 {
  color: var(--primary);
  margin-bottom: 15px;
}

.yeast-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.yeast-detail {
  font-size: 0.9rem;
}

.yeast-detail strong {
  color: var(--text-muted);
  font-size: 0.8rem;
  display: block;
}

/* ========================================
   Scroll Animations
   ======================================== */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========================================
   Responsive - Tablet
   ======================================== */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(28, 28, 28, 0.98);
    padding: 20px;
    gap: 15px;
    border-bottom: 1px solid rgba(243, 206, 19, 0.15);
  }

  .nav-links.active {
    display: flex;
  }

  .hamburger {
    display: flex;
  }

  .story-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .beer-grid {
    grid-template-columns: 1fr;
  }

  .filters {
    flex-direction: column;
    align-items: stretch;
  }

  .filter select {
    width: 100%;
  }

  .recipe-table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* ========================================
   Responsive - Mobile
   ======================================== */
@media (max-width: 480px) {
  section {
    padding: 50px 0;
  }

  .hero-logo {
    width: 120px;
    height: 120px;
  }

  .recipe-stats-bar {
    gap: 15px;
  }
}
