/* RecipeReview Site - Light Green Theme */
:root {
  --primary: #2d5a3d;
  --accent: #4a9e6a;
  --accent-hover: #3a8558;
  --body-bg: #f4f7f4;
  --card-bg: #ffffff;
  --sidebar-bg: #eef5f0;
  --text: #2d3748;
  --text-muted: #718096;
  --border: #c8dace;
  --badge-bg: #e8f5ec;
}

body {
  background: var(--body-bg);
  color: var(--text);
  font-family: 'Segoe UI', system-ui, sans-serif;
}

/* Navbar */
.site-navbar {
  background: var(--primary) !important;
  border-bottom: 2px solid var(--accent);
  padding: 12px 0;
}
.site-navbar .navbar-brand {
  font-size: 1.6rem;
  font-weight: 800;
  color: #fff !important;
  letter-spacing: -1px;
}
.site-navbar .navbar-brand span { color: #a8e6be; }
.site-navbar .nav-link {
  color: #c8e6d2 !important;
  font-weight: 500;
}
.site-navbar .nav-link:hover { color: #fff !important; }

/* Ad Banners */
.ad-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 8px 0;
}
.ad-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e8f0ea;
  border: 1px dashed #b0ccb8;
  border-radius: 4px;
  overflow: hidden;
  font-size: 11px;
  color: #aaa;
  position: relative;
}
.ad-banner img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ad-leaderboard { width: 728px; height: 90px; max-width: 100%; }
.ad-rectangle  { width: 300px; height: 250px; }
.ad-halfpage   { width: 300px; height: 600px; }
.ad-label {
  position: absolute;
  top: 2px; left: 6px;
  font-size: 9px;
  color: #aaa;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* Inline mid-grid ad */
.ad-inline-row { padding: 8px 0; }
.ad-inline-block {
  width: 100%;
  height: 160px;
  background: linear-gradient(135deg, #e8f5ec 0%, #ddf0e5 50%, #e8f5ec 100%);
  border: 1px dashed #b0ccb8;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  position: relative;
  overflow: hidden;
}
.ad-inline-block::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    45deg, transparent, transparent 20px,
    rgba(74,158,106,0.05) 20px, rgba(74,158,106,0.05) 21px
  );
  pointer-events: none;
}
.ad-inline-block .ad-label {
  font-size: 9px; color: #a0bba8;
  letter-spacing: 2px; text-transform: uppercase;
  position: relative; z-index: 1;
}
.ad-inline-block .ad-img {
  width: min(970px, 92%); height: 112px;
  object-fit: cover; border-radius: 6px;
  display: block; position: relative; z-index: 1;
}

/* Genre/Category Filter */
.genre-filter-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 0;
  padding: 10px 14px;
  background: var(--sidebar-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  position: relative;
  z-index: 20;
  flex-shrink: 0;
  isolation: isolate;
}
.cards-section {
  overflow: hidden;
  margin-top: 0;
  padding-top: 0;
}
.cards-section .row.g-3 { margin-top: 0 !important; }
.genre-btn {
  background: transparent;
  border: 1px solid #b5d4be;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}
.genre-btn:hover { border-color: var(--accent); color: var(--primary); }
.genre-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  font-weight: 700;
}
.genre-count {
  display: inline-block;
  background: rgba(0,0,0,0.1);
  border-radius: 10px;
  padding: 0 5px;
  font-size: 0.7rem;
  margin-left: 2px;
}
.genre-btn.active .genre-count { background: rgba(255,255,255,0.25); }

#cards-grid { position: relative; z-index: 1; padding-top: 0; }

/* Section title */
.section-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 2px;
  border-left: 3px solid var(--accent);
  padding-left: 10px;
  margin: 20px 0 16px;
}

/* Recipe Cards */
.album-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.album-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(74,158,106,0.18);
  border-color: var(--accent);
}
.album-card .cover-wrap {
  position: relative;
  width: 100%;
  padding-top: 66%;
  overflow: hidden;
  background: #dceee2;
}
.album-card .cover-wrap img {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}
.album-card:hover .cover-wrap img { transform: scale(1.05); }
.album-card .genre-badge {
  position: absolute;
  top: 8px; right: 8px;
  background: rgba(45,90,61,0.88);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.diff-badge {
  position: absolute;
  top: 8px; left: 8px;
  background: rgba(255,255,255,0.9);
  color: var(--primary);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 12px;
}
.album-card .card-body {
  padding: 14px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.album-card .album-title {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 2px;
  line-height: 1.3;
}
.album-card .album-artist {
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 4px;
}
.album-card .album-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.album-card .album-desc {
  font-size: 0.78rem;
  color: #718096;
  line-height: 1.5;
  flex: 1;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}
.album-card .btn-read {
  margin-top: 10px;
  background: var(--accent);
  border: none;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 20px;
  text-decoration: none;
  text-align: center;
  transition: background 0.2s;
  display: block;
}
.album-card .btn-read:hover { background: var(--accent-hover); color: #fff; }

/* Sidebar */
.sidebar-sticky { position: sticky; top: 20px; padding-top: 8px; }

/* Recipe Page */
.review-page { padding: 20px 0; }
.review-header {
  display: flex;
  gap: 24px;
  margin-bottom: 20px;
}
.review-cover {
  width: 220px;
  min-width: 220px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(45,90,61,0.2);
}
.review-cover img { width: 100%; display: block; }
.review-meta h1 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 4px;
}
.review-meta .artist-name {
  font-size: 1rem;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 8px;
}
.review-meta .meta-row {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.rating-badge {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 800;
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 12px;
}
.review-sections { display: grid; gap: 10px; }
.review-section {
  background: var(--badge-bg);
  border-left: 3px solid var(--accent);
  padding: 10px 14px;
  border-radius: 0 6px 6px 0;
}
.review-section h6 {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--accent-hover);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 4px;
}
.review-section p {
  font-size: 0.83rem;
  color: var(--text);
  margin: 0;
  line-height: 1.6;
}
.tracks-list {
  font-size: 0.83rem;
  color: var(--text-muted);
  margin: 0;
  font-style: italic;
}

.btn-yandex {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 10px 24px;
  border-radius: 24px;
  text-decoration: none;
  transition: background 0.2s, transform 0.1s;
  border: none;
  margin-top: 16px;
}
.btn-yandex:hover { background: var(--accent-hover); color: #fff; transform: scale(1.03); }

.back-link {
  color: var(--text-muted);
  font-size: 0.83rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 16px;
}
.back-link:hover { color: var(--accent); }

footer {
  background: var(--primary);
  border-top: 2px solid var(--accent);
  padding: 20px 0;
  margin-top: 30px;
  text-align: center;
  color: #a8d4b8;
  font-size: 0.8rem;
}

@media (max-width: 768px) {
  .review-header { flex-direction: column; }
  .review-cover { width: 160px; min-width: 160px; }
  .ad-leaderboard { width: 320px; height: 50px; }
}
