/*
Theme Name: Seasoning
Theme URI: https://myseasoning.co.uk
Author: Seasoning
Description: A custom recipe blog theme with a season-grid homepage, secret seasoning reveal, and Albanian twist badges.
Version: 1.0
*/

@import url('https://fonts.googleapis.com/css2?family=Sacramento&display=swap');

:root {
  --bg: #3d0a14;
  --card: #2e0810;
  --border: #5a1a26;
  --blue: #aed4e8;
  --cream: #f2e4d0;
  --muted: #c9a3ac;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--cream);
}

a { color: inherit; }

.wrap {
  max-width: 700px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3rem;
}

.site-logo {
  text-align: center;
  margin-bottom: 0.5rem;
}

.site-logo a {
  font-family: 'Sacramento', cursive;
  font-size: 40px;
  color: var(--blue);
  text-decoration: none;
}

.site-tagline {
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  margin: 4px 0 1.5rem;
}

.season-tabs {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.season-tabs a {
  font-size: 12px;
  padding: 5px 12px;
  border-radius: 999px;
  text-decoration: none;
  border: 0.5px solid var(--border);
  color: var(--muted);
}

.season-tabs a.active {
  color: var(--blue);
  background: var(--border);
  border: none;
}

.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.tile {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: var(--card);
  text-decoration: none;
  color: inherit;
  display: block;
}

.tile img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
}

.tile .label {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: rgba(20,5,5,0.75);
  padding: 4px 10px;
  border-radius: 6px;
}

.tile .label p {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--cream);
}

.tile .label span {
  font-size: 10px;
  color: var(--muted);
}

.tile.locked img {
  filter: grayscale(0.4) brightness(0.5);
}

.crumb {
  text-align: center;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.page-title {
  text-align: center;
  font-size: 20px;
  font-weight: 500;
  margin: 4px 0 2px;
  color: var(--cream);
}

.page-sub {
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  margin: 0 0 1.5rem;
}

.recipes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 480px) {
  .recipes { grid-template-columns: 1fr; }
}

.card {
  background: var(--card);
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: block;
  position: relative;
}

.card img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
}

.card .body { padding: 10px 12px; }

.card .body p.name {
  margin: 0;
  font-size: 13px;
  font-weight: 500;
  color: var(--cream);
  line-height: 1.3;
}

.card .body p.meta {
  margin: 4px 0 0;
  font-size: 11px;
  color: var(--muted);
}

.badge {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.badge span {
  font-size: 7px;
  font-weight: 600;
  color: var(--bg);
  line-height: 1.15;
}

/* Single recipe page */
.recipe-hero {
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 1rem;
  position: relative;
}

.recipe-hero img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  display: block;
}

.recipe-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.recipe-tags .tag {
  font-size: 11px;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--border);
  color: var(--blue);
}

.recipe-tags .tag.difficulty {
  background: transparent;
  border: 0.5px solid var(--border);
  color: var(--cream);
}

.recipe-title {
  font-size: 20px;
  font-weight: 500;
  margin: 0 0 4px;
  color: var(--cream);
}

.recipe-meta {
  font-size: 12px;
  color: var(--muted);
  margin: 0 0 1rem;
}

/* Secret seasoning reveal */
.secret-box {
  cursor: pointer;
  background: #472030;
  border: 1px dashed var(--border);
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 1.25rem;
  text-align: center;
  font-size: 13px;
  color: #ddc3ca;
  transition: background 0.2s;
}

.secret-box.revealed {
  background: var(--border);
  color: var(--cream);
  text-align: left;
}

.secret-box .hint { display: block; }
.secret-box.revealed .hint { display: none; }
.secret-box .answer { display: none; }
.secret-box.revealed .answer { display: block; }

.recipe-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 480px) {
  .recipe-columns { grid-template-columns: 1fr; }
}

.recipe-columns h3 {
  font-size: 13px;
  color: var(--blue);
  margin: 0 0 8px;
}

.recipe-columns ul, .recipe-columns ol {
  margin: 0;
  padding-left: 16px;
  font-size: 12px;
  color: #e0c3a8;
  line-height: 1.9;
}

.affiliate-box {
  background: var(--card);
  border-radius: 10px;
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 1.5rem;
}

.affiliate-box .body { flex: 1; }

.affiliate-box .name {
  font-size: 12px;
  font-weight: 500;
  margin: 0;
  color: var(--cream);
}

.affiliate-box .desc {
  font-size: 11px;
  margin: 2px 0 0;
  color: var(--muted);
}

.affiliate-box a.shop {
  font-size: 11px;
  color: var(--blue);
  border: 0.5px solid var(--blue);
  padding: 4px 10px;
  border-radius: 6px;
  text-decoration: none;
  white-space: nowrap;
}

.newsletter-box {
  border-top: 0.5px solid var(--border);
  padding-top: 12px;
  margin-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.newsletter-box p {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
}

.newsletter-box button {
  font-size: 12px;
  padding: 6px 12px;
  background: transparent;
  border: 0.5px solid var(--blue);
  color: var(--blue);
  border-radius: 6px;
  cursor: pointer;
}
