/* Pipe Revival - Custom Styles */

/* Base variables for warm pipe aesthetic */
:root {
  --pr-dark: #1C1714;
  --pr-brown: #3F2E1E;
  --pr-saddle: #5C4634;
  --pr-tan: #C4A484;
  --pr-cream: #F5EDE3;
  --pr-gold: #A67C52;
  --pr-gold-light: #C5A26F;
  --pr-text: #EDE4D9;
  --pr-text-muted: #A89884;
}

/* Smooth everything */
html {
  scroll-behavior: smooth;
}

/* Elegant typography tweaks */
h1, h2, .display {
  font-feature-settings: "kern" "tnum" "liga" "clig";
}

/* Subtle wood grain / texture overlay suggestion */
.texture {
  background-image: 
    linear-gradient(rgba(28, 23, 20, 0.4), rgba(28, 23, 20, 0.4)),
    url('data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%27100%27 height=%27100%27 fill=%27none%27%3E%3Cpath d=%27M0 0h100v100H0V0zm50 10c-5 0-9 4-9 9s4 9 9 9 9-4 9-9-4-9-9-9zm0 30c-5 0-9 4-9 9s4 9 9 9 9-4 9-9-4-9-9-9zm0 30c-5 0-9 4-9 9s4 9 9 9 9-4 9-9-4-9-9-9z%27 opacity=%270.06%27/%3E%3C/svg%27');
  background-size: cover, 120px 120px;
}

/* Nav */
.nav-link {
  position: relative;
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: var(--pr-gold-light);
}

.nav-link:after {
  content: '';
  position: absolute;
  width: 0;
  height: 1px;
  bottom: -2px;
  left: 0;
  background-color: var(--pr-gold);
  transition: width 0.25s ease;
}

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

/* Hero */
.hero {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  position: relative;
  background-color: var(--pr-dark);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 40%, rgba(166, 124, 82, 0.08) 0%, transparent 50%);
  pointer-events: none;
}

/* Cards */
.card {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
              box-shadow 0.3s cubic-bezier(0.4, 0.0, 0.2, 1),
              border-color 0.2s ease;
  background-color: #241E1A;
  border: 1px solid #3F2E1E;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  border-color: var(--pr-gold);
}

/* Pipe icon decorative */
.pipe-icon {
  width: 42px;
  height: 42px;
}

/* Buttons */
.btn-primary {
  background-color: var(--pr-gold);
  color: var(--pr-dark);
  font-weight: 600;
  letter-spacing: 0.025em;
  transition: all 0.2s ease;
}

.btn-primary:hover {
  background-color: var(--pr-gold-light);
  transform: translateY(-1px);
}

.btn-secondary {
  background-color: transparent;
  color: var(--pr-cream);
  border: 1px solid var(--pr-tan);
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  background-color: rgba(196, 164, 132, 0.1);
  border-color: var(--pr-gold-light);
  color: var(--pr-gold-light);
}

.btn-ghost {
  color: var(--pr-text-muted);
  transition: color 0.2s ease;
}

.btn-ghost:hover {
  color: var(--pr-cream);
}

/* Section headings */
.section-title {
  position: relative;
  display: inline-block;
}

.section-title:after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 48px;
  height: 2px;
  background: linear-gradient(to right, var(--pr-gold), var(--pr-tan));
  border-radius: 2px;
}

/* Form styles */
.input {
  background-color: #241E1A;
  border: 1px solid #3F2E1E;
  color: var(--pr-cream);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.input:focus {
  outline: none;
  border-color: var(--pr-gold);
  box-shadow: 0 0 0 3px rgba(166, 124, 82, 0.1);
}

.input::placeholder {
  color: var(--pr-text-muted);
}

/* Modal */
.modal {
  animation: modalEnter 0.2s cubic-bezier(0.32, 0.72, 0, 1);
}

@keyframes modalEnter {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Toast */
.toast {
  animation: toastSlide 0.3s ease forwards;
}

@keyframes toastSlide {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* Podcast episode placeholder styling */
.episode {
  transition: background-color 0.2s ease;
}

.episode:hover {
  background-color: #2A241F;
}

/* Responsive tweaks */
@media (max-width: 640px) {
  .hero {
    min-height: 100dvh;
  }
}

/* Subtle divider */
.divider {
  height: 1px;
  background: linear-gradient(to right, transparent, var(--pr-saddle), transparent);
}

/* Badge */
.badge {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  padding: 0.125rem 0.625rem;
  border-radius: 9999px;
  background-color: rgba(166, 124, 82, 0.15);
  color: var(--pr-gold-light);
  border: 1px solid rgba(166, 124, 82, 0.3);
}

/* Footer links */
.footer-link {
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: var(--pr-gold-light);
}