:root {
  --bg: #0f0f12;
  --bg-soft: #16171c;
  --card: #1b1d23;
  --text: #e8e8ea;
  --muted: #b8bcc7;
  --brand: #ff7a1a;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
  --radius: 16px;
  --radius-sm: 12px;
  --container: 1200px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
}

body {
  font-family: "Josefin Sans", system-ui, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: linear-gradient(145deg, #0f0f12, #12131a 55%, #0c0d11);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
  border-radius: var(--radius-sm);
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 20px;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: 12px;
  background: var(--brand);
  color: #0b0b0b;
  padding: 8px 12px;
  border-radius: 8px;
  z-index: 80;
  transform: translateY(-120%);
  transition: transform 0.18s ease;
}

.skip-link:focus {
  transform: translateY(0);
  outline: 3px solid rgba(255, 255, 255, 0.08);
}

nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(18, 19, 26, 0.85);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
}

nav h2 {
  margin: 0;
  font-weight: 700;
  letter-spacing: 0.4px;
}

nav h2 span {
  color: var(--brand);
}

.nav-spacer {
  flex: 1;
}

.navbar {
  list-style: none;
  display: flex;
  gap: 16px;
  margin: 0;
  padding: 0;
  align-items: center;
}

.navbar > li {
  position: relative;
  background: transparent !important;
  color: inherit !important;
}

.navbar > li > a,
.navbar > li > a:visited {
  padding: 10px 12px;
  border-radius: 10px;
  display: inline-block;
  transition: background 0.2s ease;
  color: var(--text) !important;
  background: transparent !important;
  text-decoration: none;
}

.navbar > li > a:hover {
  background: rgba(255, 255, 255, 0.06) !important;
  color: var(--text) !important;
}

.navbar > li > a.active,
.navbar > li > a[aria-current="page"] {
  color: var(--brand) !important;
  background: rgba(255, 255, 255, 0.08) !important;
  font-weight: 700;
}

nav .navbar i {
  color: inherit !important;
}

.navbar li ul {
  position: absolute;
  left: 0;
  top: 42px;
  min-width: 250px;
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 8px;
  display: none;
  flex-direction: column;
  gap: 4px;
  box-shadow: var(--shadow);
  z-index: 50;
  list-style: none;
  margin: 0;
}

.navbar li:hover > ul,
.navbar li:focus-within > ul,
.navbar li.open > ul {
  display: flex;
}

.navbar li ul li a {
  position: relative;
  padding: 8px 10px 8px 30px;
  border-radius: 8px;
  font-size: 0.95rem;
  color: var(--muted);
  transition: background 0.2s ease, color 0.2s ease;
}

.navbar li ul li a:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.navbar li ul li:nth-child(1) a::before { content: "🌾"; }
.navbar li ul li:nth-child(2) a::before { content: "🥣"; }
.navbar li ul li:nth-child(3) a::before { content: "🍝"; }
.navbar li ul li:nth-child(4) a::before { content: "🥐"; }
.navbar li ul li:nth-child(5) a::before { content: "🥩"; }
.navbar li ul li:nth-child(6) a::before { content: "🍟"; }
.navbar li ul li:nth-child(7) a::before { content: "🐟"; }
.navbar li ul li:nth-child(8) a::before { content: "🥛"; }
.navbar li ul li:nth-child(9) a::before { content: "🥗"; }
.navbar li ul li:nth-child(10) a::before { content: "🍰"; }

.navbar li ul li a::before {
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
  opacity: 0.9;
}

.hamburger {
  display: none;
  position: relative;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #ffbe73 0%, #ff8a2a 52%, #ff6417 100%);
  border: 1px solid rgba(255, 210, 168, 0.55);
  border-radius: 10px;
  color: #2f1400;
  cursor: pointer;
  box-shadow:
    0 10px 24px rgba(255, 122, 26, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.32);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    filter 0.2s ease,
    background 0.2s ease;
  overflow: hidden;
}

.hamburger::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0) 58%);
  pointer-events: none;
}

.hamburger i {
  position: relative;
  font-size: 1.1rem;
  color: inherit;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.25);
  transition: transform 0.22s ease, color 0.22s ease;
}

.hamburger:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
  box-shadow:
    0 14px 28px rgba(255, 122, 26, 0.36),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.hamburger:focus-visible {
  outline: 3px solid rgba(255, 184, 104, 0.45);
  outline-offset: 3px;
}

.hamburger[aria-expanded="true"] {
  background: linear-gradient(135deg, #fff0d7 0%, #ffd19e 100%);
  border-color: rgba(255, 214, 166, 0.72);
  color: #5b2500;
  box-shadow:
    0 16px 30px rgba(255, 122, 26, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.hamburger[aria-expanded="true"] i {
  transform: rotate(90deg) scale(1.06);
}

.nav-button {
  background: var(--brand);
  color: #111;
  border: 0;
  padding: 10px 14px;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
  transition: filter 0.2s ease;
}

.nav-button:hover {
  filter: brightness(1.05);
}

.search-box {
  display: flex;
  align-items: center;
  background: var(--bg-soft);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  overflow: hidden;
}

.search-txt {
  all: unset;
  padding: 10px 12px;
  min-width: 220px;
  color: var(--text);
}

.search-btn {
  padding: 10px 12px;
  display: grid;
  place-items: center;
  color: var(--muted);
  cursor: pointer;
  background: transparent;
  border: 0;
}

.grid {
  display: grid;
  gap: 22px;
  margin-top: 22px;
  grid-template-columns: 2fr 1fr;
  align-items: start;
}

.main-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 22px;
  margin-bottom: 32px;
}

.main-welcome {
  grid-column: 1 / span 2;
}

.sidebar-recipes {
  grid-column: 3;
}

.card {
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}

.main .indx-content {
  max-width: 70ch;
}

.main .indx-content h2 {
  margin: 4px 0 10px;
  font-size: clamp(1.3rem, 2.2vw, 1.8rem);
}

.main .indx-content p {
  line-height: 1.72;
  color: var(--muted);
}

.main .indx-content a {
  color: var(--brand);
}

#sidebar {
  position: sticky;
  top: 88px;
}

#sidebar h2 {
  margin-top: 0;
}

#sidebar p {
  margin: 0.5rem 0;
  color: var(--muted);
}

.sidebar-recipes {
  padding: 20px;
}

.sidebar-recipes h2 {
  margin-bottom: 16px;
  font-size: 1.4rem;
  color: var(--brand);
}

.sidebar-recipe {
  margin-bottom: 18px;
}

.sidebar-recipe p {
  margin: 6px 0;
  font-weight: 600;
}

.sidebar-recipe a {
  text-decoration: none;
  color: var(--text);
  transition: color 0.2s ease;
}

.sidebar-recipe a:hover {
  color: var(--brand);
}

.sidebar-recipe img {
  width: 100%;
  border-radius: 10px;
  margin-top: 6px;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  cursor: pointer;
  opacity: 1;
  transform: none;
}

.sidebar-recipe img:hover {
  transform: scale(1.04);
  box-shadow: 0 6px 14px rgba(255, 122, 26, 0.25);
}

.sidebar-recipe:not(:last-child) {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 12px;
}

#sidebar p a {
  color: var(--brand);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.25s ease;
}

#sidebar p a:hover {
  color: #ffa94d;
}

#sidebar p:last-of-type a {
  color: #fff;
  font-weight: 600;
}

#sidebar p:last-of-type a:hover {
  color: #d9d9d9;
}

.tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-top: 22px;
  align-items: stretch;
}

.tile.card {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  padding: 15px;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  min-height: 320px;
}

.supporters-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 22px;
  align-items: stretch;
}

.supporters-row > .supporters-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.supporters-row > .supporters-col .tile.card {
  flex: 1 1 auto;
  min-height: 320px;
  height: 100%;
  width: 100%;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

.supporters-logos {
  display: flex;
  gap: 14px 18px;
  align-items: center;
  width: 100%;
  padding: 8px 6px;
  box-sizing: border-box;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
}

.supporters-logos .logo,
.supporters-logos .placeholder {
  flex: 0 0 auto;
  width: 140px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  padding: 6px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  box-sizing: border-box;
  scroll-snap-align: center;
}

.supporters-logos .logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

.supporters-logos .placeholder {
  color: #666;
  font-weight: 600;
}

.supporters-logos .logo:hover,
.supporters-logos .placeholder:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

.supporters-logos-vertical {
  display: flex;
  flex-direction: column;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  max-height: 220px;
  gap: 12px;
  padding: 8px 0;
  align-items: center;
  justify-content: center;
}

.supporters-logos-vertical .logo,
.supporters-logos-vertical .placeholder {
  margin-inline: auto;
  width: 100%;
  max-width: 100%;
  align-self: flex-start;
  height: 60px;
  overflow: hidden;
}

.supporters-logos-vertical .logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.tile-header {
  color: var(--brand);
  font-weight: 700;
  margin: 0 0 8px;
  font-size: 1.1rem;
  text-align: left;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.brand-link {
  color: var(--brand);
  font-weight: 700;
  text-decoration: none;
}

.card-hr {
  margin: 12px 0;
  border: none;
  height: 1px;
  background: rgba(255, 255, 255, 0.06);
}

.top-comment {
  background: rgba(255, 255, 255, 0.03);
  padding: 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease;
  width: 100%;
}

.top-comment:hover {
  transform: scale(1.02);
}

.top-comment blockquote {
  margin: 6px 0 0;
  padding-left: 10px;
  border-left: 3px solid var(--brand);
  color: var(--muted);
  font-style: italic;
}

.like-btn {
  margin-top: 8px;
  background: var(--brand);
  color: #111;
  border: 0;
  padding: 8px 10px;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
}

.like-btn:hover {
  filter: brightness(1.05);
}

#bestOfContainer {
  align-items: stretch;
}

#bestOfContainer img {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

#bestOfContainer a:hover img {
  transform: scale(1.02);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
}

footer {
  margin: 40px auto 20px;
  max-width: var(--container);
  padding: 12px 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

footer .icons a {
  text-decoration: none;
}

footer .icons {
  display: flex;
  align-items: center;
  gap: 10px;
}

footer .icons .social-link {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease, border-color 0.2s ease;
}

footer .icons .social-link.is-placeholder {
  opacity: 0.55;
}

footer .icons .social-link.has-link {
  color: #fff;
  border-color: transparent;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.28);
}

footer .icons .social-link.has-link:hover {
  transform: translateY(-2px) scale(1.04);
  filter: brightness(1.06);
}

footer .icons .social-link.has-link:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.85);
  outline-offset: 2px;
}

footer .icons .social-link.is-facebook {
  background: linear-gradient(135deg, #1877f2 0%, #0f5fcc 100%);
}

footer .icons .social-link.is-instagram {
  background:
    radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 8%, #fd5949 42%, #d6249f 68%, #285aeb 100%);
}

footer .icons .social-link.is-twitch {
  background: linear-gradient(135deg, #9146ff 0%, #6b25da 100%);
}

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

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

  .main-welcome,
  .sidebar-recipes {
    grid-column: auto;
  }

  .supporters-row {
    grid-template-columns: 1fr;
  }

  .supporters-logos {
    gap: 12px;
    padding: 6px;
  }

  .supporters-logos .logo,
  .supporters-logos .placeholder {
    width: 120px;
    height: 70px;
  }
}

@media (max-width: 820px) {
  nav {
    flex-wrap: wrap;
    row-gap: 10px;
  }

  .navbar {
    display: none;
    position: absolute;
    left: 14px;
    right: 14px;
    top: calc(100% - 4px);
    background: var(--card);
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    margin: 0;
  }

  .navbar.open {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  .navbar > li,
  .navbar > li > a {
    width: 100%;
  }

  .navbar li ul {
    position: static;
    min-width: 100%;
    margin-top: 6px;
    box-shadow: none;
  }

  .search-box {
    display: flex;
    order: 10;
    width: 100%;
    flex: 1 0 100%;
    margin-top: 2px;
  }

  .search-txt {
    min-width: 0;
    width: 100%;
  }

  .hamburger {
    display: inline-flex;
  }

  .nav-button {
    display: none;
  }
}

@media (max-width: 560px) {
  .container {
    padding: 14px;
  }

  .supporters-logos {
    gap: 10px;
    padding: 6px;
  }

  .supporters-logos .logo,
  .supporters-logos .placeholder {
    width: 110px;
    height: 60px;
  }
}
