/* ============================================================
   BOURBON RELEASE CALENDAR — STYLES
   Dark/gold aesthetic for bourboncigarsblinds.com
   ============================================================ */
/* INTEGRATION EDIT — 2026-03-26 — Full style alignment to site design:
   fonts, gold value, background warmth, border-radius, badges, buttons, accent bar */

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

:root {
  /* INTEGRATION EDIT — 2026-03-26 — Updated all variables to match site-design-profile.md */
  --gold:          #E8C547;   /* was #C9A84C — now matches site REFRESH value */
  --gold-light:    #E8C547;   /* was #E8C96A */
  --gold-dark:     #8B5A1A;   /* was #9A7A2E — now matches site --bourbon-dark */
  --bourbon:       #C8842A;   /* ADDED — site primary bourbon color */
  --bourbon-dark:  #8B5A1A;   /* ADDED — site bourbon dark */
  --cigar-light:   #5A9970;   /* ADDED — site cigar accent */
  --bg-900:        #1C1208;   /* was #0E0C0A — warm dark brown to match site */
  --bg-800:        #1a1208;   /* was #161310 */
  --bg-700:        #201510;   /* was #1E1A15 */
  --bg-600:        #271a10;   /* was #27211A */
  --bg-500:        #2e1f12;   /* was #322A21 */
  --text-100:      #FBF5E8;   /* was #F5EFE6 — matches site --cream (REFRESH) */
  --text-200:      #F2E8D6;   /* was #D4C9B8 — matches site --text (REFRESH) */
  --text-300:      #A89880;
  --text-400:      #7A6A58;
  --border:        rgba(232,197,71,0.15);   /* updated to new gold */
  --border-strong: rgba(232,197,71,0.35);   /* updated to new gold */
  --shadow:        0 4px 24px rgba(0,0,0,0.5);
  --radius:        6px;    /* was 10px — site uses 6px for cards */
  --radius-sm:     2px;    /* was 6px — site uses 2px for buttons/tags */
  --font-body:     'Cormorant Garamond', Georgia, serif;   /* was 'Georgia' — site uses Cormorant Garamond */
  --font-ui:       'Montserrat', system-ui, sans-serif;    /* was system-ui — site uses Montserrat */
  --transition:    0.2s ease;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg-900);
  color: var(--text-100);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
}

a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-light); }

/* ── Site Header ── */
.site-header {
  background: var(--bg-800);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(8px);
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-100);
  font-weight: 700;
  font-size: 1rem;
  white-space: nowrap;
}
.site-logo:hover { color: var(--gold-light); }
.logo-icon { font-size: 1.3rem; }

.site-nav {
  display: flex;
  gap: 1.5rem;
  font-size: 0.875rem;
}
.site-nav a { color: var(--text-200); }
.site-nav a:hover, .site-nav a.active { color: var(--gold); }

/* ── Hero ── */
.hero {
  background:
    linear-gradient(to bottom, rgba(14,12,10,0.7) 0%, rgba(14,12,10,0.95) 100%),
    radial-gradient(ellipse at 50% 0%, rgba(232,197,71,0.10) 0%, transparent 70%);  /* INTEGRATION EDIT — 2026-03-26 — old gold → #E8C547 */
  border-bottom: 1px solid var(--border);
  text-align: center;
  padding: 4rem 1.5rem 3rem;
}

.hero-inner { max-width: 720px; margin: 0 auto; }

.hero-eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.hero-title {
  font-family: var(--font-body);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  color: var(--text-100);
  line-height: 1.15;
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}

.hero-subtitle {
  color: var(--text-200);
  font-size: 1.05rem;
  max-width: 540px;
  margin: 0 auto 2rem;
  line-height: 1.65;
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.stat-number {
  font-size: 2rem;
  font-weight: 700;
  font-family: var(--font-body);
  color: var(--gold);
  line-height: 1;
}
.stat-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-300);
}
.stat-divider {
  width: 1px;
  height: 36px;
  background: var(--border-strong);
}

/* ── Controls Bar ── */
.controls-bar {
  background: var(--bg-800);
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 1.5rem;
  position: sticky;
  top: 60px;
  z-index: 90;
}

.controls-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Search */
.search-wrap {
  position: relative;
  flex: 1;
  min-width: 200px;
}
.search-icon {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--text-400);
  pointer-events: none;
}
.search-input {
  width: 100%;
  background: var(--bg-700);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-100);
  font-size: 0.9rem;
  padding: 0.55rem 2.2rem 0.55rem 2.4rem;
  outline: none;
  transition: border-color var(--transition);
}
.search-input:focus { border-color: var(--gold); }
.search-input::placeholder { color: var(--text-400); }
.search-clear {
  position: absolute;
  right: 0.6rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-400);
  cursor: pointer;
  font-size: 0.8rem;
  padding: 2px 4px;
  border-radius: 3px;
}
.search-clear:hover { color: var(--text-100); }

/* View toggle */
.view-toggle {
  display: flex;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
}
.view-btn {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--bg-700);
  border: none;
  color: var(--text-300);
  cursor: pointer;
  font-size: 0.8rem;
  font-family: var(--font-ui);
  padding: 0.5rem 0.85rem;
  transition: background var(--transition), color var(--transition);
}
.view-btn svg { width: 14px; height: 14px; flex-shrink: 0; }
.view-btn:first-child { border-right: 1px solid var(--border); }
.view-btn.active, .view-btn:hover {
  background: var(--bg-500);
  color: var(--gold);
}

/* ── Filter Bar ── */
.filter-bar {
  background: var(--bg-800);
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 1.5rem;
}

.filter-bar-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: flex-end;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.filter-group label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-400);
  font-weight: 600;
}
.filter-group select {
  background: var(--bg-700);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-200);
  font-size: 0.85rem;
  font-family: var(--font-ui);
  padding: 0.45rem 0.7rem;
  cursor: pointer;
  outline: none;
  transition: border-color var(--transition);
  min-width: 140px;
}
.filter-group select:focus { border-color: var(--gold); }
.filter-group select option { background: var(--bg-700); }

.filter-reset {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-300);
  cursor: pointer;
  font-size: 0.8rem;
  font-family: var(--font-ui);
  padding: 0.45rem 0.9rem;
  transition: border-color var(--transition), color var(--transition);
  margin-top: auto;
  white-space: nowrap;
}
.filter-reset:hover { border-color: var(--gold-dark); color: var(--gold); }

/* Active filter chips */
.active-filters {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0.5rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.filter-chip {
  background: rgba(232,197,71,0.08);
  border: 1px solid var(--border-strong);
  border-radius: 2px;  /* INTEGRATION EDIT — 2026-03-26 — 20px→2px (site tag style) */
  color: var(--gold);
  font-size: 0.75rem;
  padding: 0.25rem 0.65rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.chip-remove {
  background: none;
  border: none;
  color: var(--gold-dark);
  cursor: pointer;
  font-size: 0.7rem;
  padding: 0;
  line-height: 1;
}
.chip-remove:hover { color: var(--gold-light); }

/* ── Main Content ── */
.main-content {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1.5rem 1.5rem 4rem;
}

.results-meta {
  font-size: 0.8rem;
  color: var(--text-400);
  margin-bottom: 1.25rem;
  font-style: italic;
}

/* ── Release Grid (List View) ── */
.release-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.25rem;
}

/* ── Release Card ── */
/* INTEGRATION EDIT — 2026-03-26 — Added bourbon accent bar, updated bg to site card pattern */
.release-card {
  background: rgba(255,255,255,0.03);   /* was var(--bg-700) — matches site card bg */
  border: 1px solid rgba(200,132,42,0.20);
  border-radius: var(--radius);         /* now 6px after variable update */
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}
.release-card:hover {
  border-color: rgba(200,132,42,0.55);
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(200,132,42,0.18);
  background: rgba(200,132,42,0.05);
}
/* INTEGRATION EDIT — 2026-03-26 — Bourbon accent bar matches site's .bourbon-card-accent */
.release-card::before {
  content: '';
  display: block;
  height: 3px;
  background: linear-gradient(90deg, var(--bourbon-dark), var(--gold), var(--bourbon-dark));
  flex-shrink: 0;
}

.card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 0.9rem 1rem 0;
  gap: 0.5rem;
  flex-wrap: wrap;
}

/* INTEGRATION EDIT — 2026-03-26 — Restyled badges to match site's outlined square tag pattern */
/* Badges */
.card-badges { display: flex; flex-wrap: wrap; gap: 0.35rem; }

.badge {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 0.52rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  padding: 4px 10px;
  border-radius: 2px;      /* was 20px pill — site uses 2px square tags */
  border: 1px solid;
  white-space: nowrap;
}
/* Type badges — all use site bourbon/cigar/gold palette */
.badge-type.limited       { border-color: rgba(232,197,71,0.35);  color: var(--gold); }
.badge-type.allocated     { border-color: rgba(200,132,42,0.40);  color: var(--bourbon); }
.badge-type.single_barrel { border-color: rgba(90,153,112,0.35);  color: var(--cigar-light); }
.badge-type.annual        { border-color: rgba(245,239,224,0.20); color: rgba(245,239,224,0.65); }

/* Availability badges */
.badge-avail.national   { border-color: rgba(90,153,112,0.35);  color: var(--cigar-light); }
.badge-avail.regional   { border-color: rgba(232,197,71,0.30);  color: var(--gold); }
.badge-avail.distillery { border-color: rgba(200,132,42,0.35);  color: var(--bourbon); }

.badge-anticipated { border-color: rgba(232,197,71,0.45); color: var(--gold); }

/* Countdown */
.card-countdown {
  text-align: right;
  flex-shrink: 0;
}
.countdown-label {
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-400);
  display: block;
  line-height: 1.2;
}
.countdown-value {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gold);
  display: block;
}

/* Card Body */
.card-body {
  padding: 0.75rem 1rem 0.5rem;
  flex: 1;
}

.card-distillery {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-400);
  margin-bottom: 0.2rem;
}

.card-name {
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-100);
  line-height: 1.25;
  margin-bottom: 0.65rem;
}

.card-meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  padding: 0.6rem;
  background: var(--bg-600);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}
.meta-item { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; }
.meta-label { font-size: 0.6rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-400); }
.meta-value { font-size: 0.8rem; font-weight: 600; color: var(--text-100); line-height: 1.2; }

.card-desc {
  font-size: 0.82rem;
  color: var(--text-300);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Card Footer */
.card-footer {
  padding: 0.75rem 1rem;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 0.5rem;
}

/* INTEGRATION EDIT — 2026-03-26 — Restyled buttons to match site: 2px radius, Montserrat, uppercase, letter-spacing */
.btn-learn-more {
  flex: 1;
  text-align: center;
  background: transparent;
  border: 1px solid var(--bourbon);
  border-radius: var(--radius-sm);   /* now 2px */
  color: var(--bourbon);
  font-family: var(--font-ui);       /* Montserrat */
  font-size: 0.58rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 8px 12px;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
  cursor: pointer;
}
.btn-learn-more:hover {
  background: var(--bourbon-dark);
  color: var(--text-100);
  border-color: var(--bourbon-dark);
}

.btn-notify {
  flex: 1;
  background: transparent;
  border: 1px solid rgba(232,197,71,0.30);
  border-radius: var(--radius-sm);   /* now 2px */
  color: rgba(245,239,224,0.50);
  cursor: pointer;
  font-family: var(--font-ui);       /* Montserrat */
  font-size: 0.58rem;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  padding: 8px 12px;
  transition: border-color var(--transition), color var(--transition), background var(--transition);
}
.btn-notify:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(232,197,71,0.08);
}

/* ── Calendar View ── */
.calendar-view { display: none; }
.calendar-view.active { display: block; }

.calendar-month {
  margin-bottom: 2.5rem;
}

.calendar-month-header {
  font-family: var(--font-body);
  font-size: 1.4rem;
  color: var(--gold);
  font-weight: 700;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--border-strong);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.calendar-month-count {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--text-400);
  font-family: var(--font-ui);
}

.calendar-month-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
}

/* ── Empty State ── */
.empty-state {
  text-align: center;
  padding: 5rem 1rem;
}
.empty-icon { font-size: 3rem; margin-bottom: 1rem; }
.empty-state h3 { font-size: 1.25rem; color: var(--text-100); margin-bottom: 0.5rem; }
.empty-state p  { color: var(--text-400); margin-bottom: 1.5rem; }

/* INTEGRATION EDIT — 2026-03-26 — btn-gold restyled to site's CTA nav-btn-cta pattern */
.btn-gold {
  display: inline-block;
  background: var(--gold);
  border: 1px solid var(--gold);
  border-radius: var(--radius-sm);   /* 2px */
  color: var(--bg-900);              /* dark text on gold */
  cursor: pointer;
  font-family: var(--font-ui);       /* Montserrat */
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  padding: 10px 22px;
  transition: opacity var(--transition), transform var(--transition);
}
.btn-gold:hover { opacity: 0.88; transform: translateY(-1px); }

/* ── Modal ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  backdrop-filter: blur(4px);
}

.modal {
  background: var(--bg-700);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  max-width: 420px;
  width: 100%;
  padding: 2rem;
  position: relative;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,0.7);
  animation: modal-in 0.2s ease;
}
@keyframes modal-in {
  from { opacity: 0; transform: scale(0.95) translateY(8px); }
  to   { opacity: 1; transform: scale(1)   translateY(0); }
}

.modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.9rem;
  background: none;
  border: none;
  color: var(--text-400);
  cursor: pointer;
  font-size: 1rem;
  padding: 4px;
}
.modal-close:hover { color: var(--text-100); }

.modal-icon { font-size: 2.5rem; margin-bottom: 0.75rem; }
.modal h2 { font-family: var(--font-body); font-size: 1.4rem; color: var(--text-100); margin-bottom: 0.4rem; }

.modal-release-name {
  font-size: 0.85rem;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 0.75rem;
  font-style: italic;
}
.modal-desc {
  font-size: 0.875rem;
  color: var(--text-300);
  margin-bottom: 1.25rem;
  line-height: 1.5;
}
.notify-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.notify-form input[type="email"] {
  background: var(--bg-600);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-100);
  font-size: 0.9rem;
  font-family: var(--font-ui);
  padding: 0.65rem 0.9rem;
  outline: none;
  text-align: center;
  transition: border-color var(--transition);
}
.notify-form input:focus { border-color: var(--gold); }
.notify-form input::placeholder { color: var(--text-400); }
.modal-fine-print { font-size: 0.72rem; color: var(--text-400); margin-top: 0.75rem; }

/* ── Site Footer ── */
.site-footer {
  background: var(--bg-800);
  border-top: 1px solid var(--border);
  padding: 2rem 1.5rem;
  margin-top: 2rem;
}
.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  text-align: center;
}
.footer-note { font-size: 0.8rem; color: var(--text-400); margin-bottom: 0.75rem; line-height: 1.6; }
.footer-links { font-size: 0.8rem; color: var(--text-400); margin-bottom: 0.5rem; }
.footer-links a { color: var(--gold-dark); }
.footer-links a:hover { color: var(--gold); }
.footer-copyright { font-size: 0.75rem; color: var(--text-400); }

/* ── Utilities ── */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ── Responsive ── */
@media (max-width: 768px) {
  .hero { padding: 2.5rem 1rem 2rem; }
  .site-nav { display: none; }
  .hero-stats { gap: 1rem; }
  .stat-divider { height: 28px; }
  .controls-bar { padding: 0.75rem 1rem; }
  .filter-bar { padding: 0.75rem 1rem; }
  .filter-bar-inner { gap: 0.5rem; }
  .filter-group select { min-width: 110px; font-size: 0.8rem; }
  .main-content { padding: 1rem 1rem 3rem; }
  .release-grid { grid-template-columns: 1fr; gap: 1rem; }
  .card-meta { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .hero-title { font-size: 1.75rem; }
  .controls-inner { flex-direction: column; align-items: stretch; }
  .view-toggle { align-self: flex-end; }
  .filter-bar-inner { flex-direction: column; }
  .filter-group { width: 100%; }
  .filter-group select { width: 100%; }
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-800); }
::-webkit-scrollbar-thumb { background: var(--bg-500); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold-dark); }
