/* ========================================
   BREW GUIDE SPECIFIC STYLES
   ======================================== */

/* Brew page layout */
.lr-brew-left {
  max-width: 100%;
}

.lr-brew-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin: 0 0 0.5rem 0;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lr-text-primary);
}

.lr-brew-subtitle {
  font-size: 1rem;
  color: var(--lr-text-muted);
  margin-bottom: 2rem;
  line-height: 1.5;
}

/* Tea selector scroll */
.tea-scroll {
  margin: 2rem 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0.8rem 0;
  position: relative;
}

.tea-scroll::-webkit-scrollbar {
  display: none;
}

.tea-scroll {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Subtle overflow indicator */
.tea-scroll::after {
  content: ">";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  color: var(--lr-text-muted);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.8rem;
  opacity: 0.4;
  pointer-events: none;
  background: linear-gradient(to left, var(--lr-bg-main) 60%, transparent);
  padding-left: 1rem;
  width: 1.5rem;
  text-align: right;
}

body.theme-light .tea-scroll::after {
  background: linear-gradient(to left, var(--lr-bg-main) 60%, transparent);
}

.tea-row {
  display: flex;
  align-items: center;
  gap: 0;
  min-width: max-content;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.9rem;
  color: var(--lr-text-muted);
  white-space: nowrap;
  padding-right: 2rem; /* Space for the indicator */
}

/* Tea links as inline text */
.lr-tea-link {
  background: none;
  border: none;
  color: var(--lr-text-muted);
  cursor: pointer;
  padding: 0.4rem 0.6rem;
  font-family: inherit;
  font-size: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
  border-radius: 4px;
}

.lr-tea-link:hover {
  color: var(--lr-text-primary);
}

.lr-tea-link.lr-tea-link-active {
  color: var(--lr-gold) !important;
}

/* Pipe separators - tighter spacing */
.lr-tea-link + .lr-tea-link::before {
  content: "|";
  color: var(--lr-border-subtle);
  margin: 0 0.4rem;
  pointer-events: none;
}

/* Light mode adjustments */
body.theme-light .lr-tea-link {
  color: #5e5e6a;
}

body.theme-light .lr-tea-link:hover {
  color: #232326;
}

body.theme-light .lr-tea-link.lr-tea-link-active {
  color: #d48a1f !important;
}

body.theme-light .lr-tea-link + .lr-tea-link::before {
  color: #c8c8d8;
}

/* Card grid */
.lr-brew-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}

/* Brew card */
.lr-brew-card {
  background: radial-gradient(
    circle at top left,
    rgba(143, 188, 143, 0.08),
    transparent
  ), var(--lr-bg-elevated);
  border: 1px solid var(--lr-border-subtle);
  border-radius: 0.9rem;
  padding: 1.5rem;
  box-shadow: var(--lr-shadow-soft);
}

.lr-brew-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.lr-brew-card-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--lr-text-primary);
  margin-bottom: 0.3rem;
}

.lr-brew-card-tea {
  font-size: 0.85rem;
  color: var(--lr-text-muted);
}

.lr-brew-unit-toggle {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--lr-border-subtle);
  border-radius: 999px;
  color: var(--lr-text-muted);
  font-size: 0.8rem;
  padding: 0.4rem 0.8rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.lr-brew-unit-toggle:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--lr-text-primary);
}

.lr-brew-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.lr-brew-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.lr-brew-icon {
  font-size: 1.2rem;
  opacity: 0.8;
}

.lr-brew-item-label {
  font-size: 0.8rem;
  color: var(--lr-text-muted);
  margin-bottom: 0.2rem;
}

.lr-brew-item-value {
  font-size: 1rem;
  font-weight: 600;
  color: var(--lr-text-primary);
}

.lr-brew-footnote {
  font-size: 0.8rem;
  color: var(--lr-text-muted);
  line-height: 1.4;
  margin: 0;
}

/* Timer card - Stripe aesthetic */
.stripe-timer-card {
  background: radial-gradient(
    circle at top left,
    rgba(212, 138, 31, 0.08),
    transparent
  ), var(--lr-bg-elevated);
  border: 1px solid var(--lr-border-subtle);
  border-radius: 0.9rem;
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: var(--lr-shadow-soft);
}

.stripe-timer-time {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--lr-text-primary);
  margin-bottom: 1rem;
  letter-spacing: 0.05em;
}

.stripe-progress {
  width: 100%;
  height: 4px;
  background: var(--lr-border-subtle);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.stripe-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--lr-gold), var(--lr-sage));
  border-radius: 2px;
  width: 0%;
  transition: width 0.2s ease;
}

.stripe-timer-actions {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 1rem;
}

.stripe-btn {
  padding: 0.5rem 1rem;
  border: 1px solid var(--lr-border-subtle);
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.02);
  color: var(--lr-text-muted);
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.stripe-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--lr-text-primary);
}

.stripe-btn-primary {
  background: var(--lr-btn-primary-bg);
  border-color: var(--lr-btn-primary-border);
  color: var(--lr-btn-primary-text);
}

.stripe-btn-primary:hover {
  background: rgba(28, 44, 31, 0.8);
}

.stripe-timer-hint {
  font-size: 0.8rem;
  color: var(--lr-text-muted);
  margin: 0;
}

/* Origin card */
.lr-origin-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--lr-border-subtle);
  border-radius: 0.9rem;
  overflow: hidden;
  box-shadow: var(--lr-shadow-soft);
}

.lr-origin-map {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.lr-origin-map img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: brightness(0.9);
}

.lr-origin-footer {
  padding: 1rem 1.5rem;
  text-align: center;
}

.lr-origin-footer em {
  font-style: normal;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--lr-text-primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.lr-origin-region {
  display: none;
}

.lr-origin-story {
  display: none;
}

/* Light mode adjustments */
body.theme-light .lr-origin-region {
  color: #d48a1f;
}

body.theme-light .lr-origin-story {
  color: #5e5e6a;
}

/* Light mode adjustments */
body.theme-light .lr-origin-region {
  color: #d48a1f;
}

body.theme-light .lr-origin-story {
  color: #5e5e6a;
}

/* Light mode card overrides */
body.theme-light .lr-brew-card,
body.theme-light .stripe-timer-card,
body.theme-light .lr-origin-card {
  background: #ffffff;
  border-color: #e4e4ef;
}

body.theme-light .lr-brew-unit-toggle {
  background: rgba(0, 0, 0, 0.02);
  border-color: #d8d8e6;
  color: #5e5e6a;
}

body.theme-light .lr-brew-unit-toggle:hover {
  background: rgba(0, 0, 0, 0.04);
  color: #232326;
}

body.theme-light .stripe-btn {
  background: rgba(0, 0, 0, 0.02);
  border-color: #d8d8e6;
  color: #5e5e6a;
}

body.theme-light .stripe-btn:hover {
  background: rgba(0, 0, 0, 0.04);
  color: #232326;
}

/* Responsive design */
@media (max-width: 900px) {
  .lr-brew-row {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }

  .stripe-timer-time {
    font-size: 2rem;
  }
}

@media (max-width: 640px) {
  .lr-brew-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
  }

  .lr-brew-item {
    gap: 0.5rem;
  }

  .lr-brew-icon {
    font-size: 1rem;
  }

  .lr-brew-item-label {
    font-size: 0.7rem;
  }

  .lr-brew-item-value {
    font-size: 0.9rem;
  }

  .lr-brew-card {
    padding: 1rem;
  }

  .lr-brew-card-header {
    margin-bottom: 1rem;
  }

  .lr-brew-card-title {
    font-size: 1rem;
  }

  .lr-brew-footnote {
    font-size: 0.7rem;
  }

  .stripe-timer-card {
    padding: 1.25rem 1rem;
  }

  .stripe-timer-time {
    font-size: 1.75rem;
  }

  .stripe-timer-actions {
    flex-direction: column;
    gap: 0.4rem;
  }

  .stripe-btn {
    width: 100%;
    font-size: 0.8rem;
  }

  .stripe-timer-hint {
    font-size: 0.7rem;
  }

  /* Tea selector on mobile */
  .tea-row {
    font-size: 0.8rem;
  }

  .lr-tea-link {
    padding: 0.3rem 0.4rem;
  }

  .lr-brew-title {
    font-size: 1.75rem;
  }

  .lr-brew-subtitle {
    font-size: 0.85rem;
  }
}