/* ===== BREW PRECISELY — Neo Brutalist Stylesheet ===== */

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

body {
  font-family: 'Roboto Slab', serif;
  background: #FAFAFA;
  color: #000;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: inherit;
}

/* ===== HEADER ===== */
.site-header {
  border-bottom: 4px solid #000;
  padding: 1.5rem 2rem;
  background: #fff;
}

.site-title {
  font-size: 1.8rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: -0.02em;
  display: block;
}

.site-subtitle {
  font-size: 0.9rem;
  font-weight: 500;
  margin-top: 0.25rem;
  color: #444;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ===== FOOTER ===== */
.site-footer {
  border-top: 4px solid #000;
  padding: 1rem 2rem;
  background: #000;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 500;
  margin-top: auto;
}

.footer-disclaimer {
  margin-top: 0.25rem;
  font-size: 0.75rem;
  font-weight: 400;
  opacity: 0.6;
}

/* ===== LANDING PAGE ===== */
main {
  flex: 1;
}

.landing-header {
  padding: 2rem 2rem 0;
}

.landing-header h1 {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.landing-header p {
  font-size: 1rem;
  color: #444;
  margin-top: 0.4rem;
  font-weight: 500;
}

/* ===== RECIPE GRID ===== */
.recipe-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  padding: 1.5rem 2rem 3rem;
}

/* ===== RECIPE CARD (Neo Brutalist Panel) ===== */
.recipe-card {
  border: 3px solid #000;
  box-shadow: 6px 6px 0 #000;
  padding: 1.5rem;
  text-decoration: none;
  display: block;
  transition: transform 0.1s ease, box-shadow 0.1s ease;
  min-height: 120px;
  position: relative;
  overflow: hidden;
}

/* Semi-transparent dark overlay for text legibility */
.recipe-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.28);
  pointer-events: none;
}

.recipe-card:hover {
  transform: translate(3px, 3px);
  box-shadow: 3px 3px 0 #000;
}

.recipe-card:active {
  transform: translate(6px, 6px);
  box-shadow: 0 0 0 #000;
}

.recipe-card h2 {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.6rem;
  color: #fff;
  position: relative;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}

.recipe-card .summary {
  font-size: 0.8rem;
  color: #fff;
  font-weight: 500;
  line-height: 1.4;
  position: relative;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
}

/* ===== DETAIL PAGE ===== */
.detail-page {
  max-width: 960px;
  margin: 0 auto;
  padding: 2rem 2rem 4rem;
}

.brew-panels-row {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  margin-bottom: 1.25rem;
}

.brew-panel-left {
  flex: 3;
  min-width: 0;
}

.brew-panel-right {
  flex: 2;
  min-width: 0;
}

.brew-panels-row .brew-section {
  margin-bottom: 0;
}

.brew-panel-right .import-block {
  margin-bottom: 0.75rem;
}

.back-link {
  display: inline-block;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid #000;
  box-shadow: 3px 3px 0 #000;
  padding: 0.35rem 0.75rem;
  margin-bottom: 1.5rem;
  transition: transform 0.1s, box-shadow 0.1s;
  background: #fff;
}

.back-link:hover {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 #000;
}

.detail-title {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

/* ===== IMPORT BUTTON ===== */
.import-block {
  margin-bottom: 2rem;
}

.import-btn {
  display: block;
  text-align: center;
  box-sizing: border-box;
  width: 100%;
  background: #000;
  color: #fff;
  border: 3px solid #000;
  box-shadow: 5px 5px 0 #555;
  padding: 0.85rem 1.75rem;
  font-weight: 700;
  font-size: 1rem;
  font-family: inherit;
  text-decoration: none;
  transition: transform 0.1s ease, box-shadow 0.1s ease;
  letter-spacing: 0.02em;
}

.import-btn:hover {
  transform: translate(3px, 3px);
  box-shadow: 2px 2px 0 #555;
}

.import-btn:active {
  transform: translate(5px, 5px);
  box-shadow: 0 0 0 #555;
}

/* ===== BREW SECTIONS ===== */
.brew-section {
  border: 3px solid #000;
  box-shadow: 4px 4px 0 #000;
  padding: 1.25rem;
  margin-bottom: 1.25rem;
  background: #fff;
}

.section-title {
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #000;
}

.subsection-title {
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 1rem 0 0.5rem;
  color: #333;
}

/* ===== DETAIL LIST (key/value pairs) ===== */
.detail-list {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.3rem 1rem;
  list-style: none;
}

.detail-list dt {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #555;
  white-space: nowrap;
  padding-top: 0.1rem;
}

.detail-list dd {
  font-size: 0.95rem;
  font-weight: 500;
}

/* ===== AIDEN QUICK-INPUT PANEL ===== */
.quick-input-hint {
  font-size: 0.78rem;
  color: #555;
  margin-bottom: 0.9rem;
  font-style: italic;
}

.quick-input-list .qi-group {
  margin-top: 0.6rem;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #000;
  border-top: 1px solid #ddd;
  padding-top: 0.5rem;
}

.quick-input-list .qi-sub {
  padding-left: 1rem;
  font-size: 0.78rem;
  color: #666;
  font-weight: 600;
}

/* ===== BLOOM ON/OFF BADGE ===== */
.bloom-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  padding: 2px 9px;
  border: 2px solid #000;
  box-shadow: 2px 2px 0 #000;
  vertical-align: middle;
  line-height: 1.5;
}

.bloom-on {
  background: #1a7a1a;
  color: #fff;
}

.bloom-off {
  background: #d0d0d0;
  color: #000;
}

/* ===== SOURCE LINK ===== */
.source-link-wrap {
  margin-top: 1rem;
}

.source-link {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  border: 2px solid #000;
  box-shadow: 3px 3px 0 #000;
  padding: 0.3rem 0.75rem;
  background: #fff;
  color: #000;
  transition: transform 0.1s, box-shadow 0.1s;
}

.source-link:hover {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 #000;
}

.source-link + .source-link {
  margin-left: 0.5rem;
}

/* ===== NOTES ===== */
.notes-text {
  font-size: 0.9rem;
  font-weight: 400;
  color: #333;
  line-height: 1.5;
}

.notes-text p + p {
  margin-top: 0.75rem;
}

/* ===== SURPRISE ME ===== */
.surprise-wrap {
  padding: 0 2rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.surprise-btn {
  background: #fff;
  color: #000;
  border: 3px solid #000;
  box-shadow: 5px 5px 0 #000;
  padding: 0.7rem 1.5rem;
  font-weight: 700;
  font-size: 1rem;
  font-family: inherit;
  cursor: pointer;
  transition: transform 0.1s ease, box-shadow 0.1s ease;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.surprise-btn:hover {
  transform: translate(3px, 3px);
  box-shadow: 2px 2px 0 #000;
}

.surprise-btn:active {
  transform: translate(5px, 5px);
  box-shadow: 0 0 0 #000;
}

.surprise-tagline {
  font-size: 0.9rem;
  font-weight: 500;
  color: #555;
  font-style: italic;
  line-height: 1.4;
}


/* ===== BREW TIMELINE ===== */
.brew-timeline {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0;
  margin-top: 0.75rem;
  overflow-x: auto;
  padding-bottom: 0.4rem;
}

.tl-segment {
  border: 2px solid #000;
  padding: 0.45rem 0.55rem;
  text-align: center;
  min-width: 60px;
  flex-shrink: 0;
}

.tl-segment-off {
  background: #d0d0d0 !important;
  color: #000 !important;
}

.tl-off-text {
  font-size: 0.7rem;
  font-weight: 700;
}

.tl-phase {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  opacity: 0.9;
  line-height: 1;
  margin-bottom: 0.25rem;
}

.tl-temp {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1;
}

.tl-time {
  font-size: 0.7rem;
  font-weight: 500;
  opacity: 0.85;
  margin-top: 0.2rem;
  line-height: 1;
}

.tl-connector {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 0.35rem;
  flex-shrink: 0;
  position: relative;
}

.tl-connector::before {
  content: '→';
  font-size: 1rem;
  font-weight: 700;
  color: #000;
  line-height: 1;
}

.tl-gap {
  font-size: 0.65rem;
  font-weight: 600;
  color: #555;
  letter-spacing: 0.03em;
  white-space: nowrap;
  margin-top: 0.15rem;
  line-height: 1;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 600px) {
  .site-header { padding: 1rem; }
  .landing-header { padding: 1rem 1rem 0; }
  .landing-header h1 { font-size: 1.8rem; }
  .recipe-grid { padding: 1rem; gap: 1rem; grid-template-columns: 1fr; }
  .detail-page { padding: 1rem 1rem 3rem; }
  .detail-title { font-size: 1.5rem; }
  .surprise-wrap { padding: 0 1rem 1.25rem; }
}
