/* Eduki-inspired: tyrkys + žltá CTA + marketplace mriežka. User: "pojdeme stylom eduki" */
:root {
  --ink: #262626;
  --muted: #515151;
  --teal: #26bfbf;
  --teal-dark: #1a9a9a;
  --teal-soft: #eefafa;
  --teal-mid: #d3f2f2;
  --yellow: #fddc69;
  --yellow-hover: #f5ce45;
  --red: #d1031c;
  --paper: #ffffff;
  --line: #e6e6e6;
  --radius: 8px;
  --shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Roboto, "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.5;
}
img { max-width: 100%; display: block; }
a { color: var(--teal-dark); }
a:hover { color: var(--teal); }
.wrap { width: min(1120px, calc(100% - 2rem)); margin-inline: auto; }

/* Header like eduki */
.site-header {
  border-bottom: 1px solid var(--line);
  background: #fff;
  position: sticky; top: 0; z-index: 30;
}
.site-header .inner {
  display: flex; align-items: center; gap: 1rem;
  padding: 0.75rem 0; flex-wrap: wrap;
}
.brand {
  font-weight: 700; font-size: 1.35rem; color: var(--teal);
  text-decoration: none; letter-spacing: -0.02em;
}
.brand span { color: var(--ink); font-weight: 500; font-size: 0.95rem; margin-left: 0.35rem; }
.search {
  flex: 1; min-width: 200px; display: flex; gap: 0;
  border: 2px solid var(--teal); border-radius: 999px; overflow: hidden; background: #fff;
}
.search input {
  flex: 1; border: 0; padding: 0.65rem 1rem; font: inherit; outline: none;
}
.search button {
  border: 0; background: var(--teal); color: #fff;
  padding: 0 1.1rem; font-weight: 700; cursor: pointer;
}
.nav { display: flex; gap: 0.85rem; align-items: center; flex-wrap: wrap; }
.nav a { text-decoration: none; color: var(--ink); font-weight: 500; font-size: 0.92rem; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--yellow); color: var(--ink) !important; border: 0;
  border-radius: 999px; padding: 0.65rem 1.2rem;
  font-weight: 700; text-decoration: none !important; cursor: pointer;
}
.btn:hover { background: var(--yellow-hover); }
.btn-teal {
  background: var(--teal); color: #fff !important;
}
.btn-teal:hover { background: var(--teal-dark); }
.btn-ghost {
  background: transparent; border: 1.5px solid var(--teal);
  color: var(--teal-dark) !important; border-radius: 999px;
  padding: 0.55rem 1rem; font-weight: 700; text-decoration: none !important;
}

/* Hero band — soft teal like eduki + big lesson finder */
.hero {
  background: linear-gradient(180deg, var(--teal-soft) 0%, #fff 100%);
  padding: 2.25rem 0 1.75rem;
}
.hero-grid {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 1.5rem; align-items: start;
}
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } }
.hero h1 {
  margin: 0 0 0.5rem; font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 700; max-width: 28ch;
}
.hero-copy > p { margin: 0 0 1rem; color: var(--muted); max-width: 36rem; }
.hero-photo {
  margin: 0; border-radius: 16px; overflow: hidden;
  border: 1px solid var(--line); background: #fff;
  box-shadow: var(--shadow);
}
.hero-photo img { display: block; width: 100%; height: auto; }
.finder {
  background: #fff; border: 2px solid var(--teal); border-radius: 16px;
  padding: 1.1rem 1.15rem 1.2rem; box-shadow: var(--shadow);
}
.finder-lg { padding: 1.35rem 1.35rem 1.45rem; }
.finder h2 { margin: 0 0 0.35rem; font-size: 1.35rem; }
.finder .hint { margin: 0 0 0.85rem; color: var(--muted); font-size: 0.9rem; }
.finder-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.7rem;
}
@media (max-width: 520px) { .finder-grid { grid-template-columns: 1fr; } }
.finder label { display: block; font-size: 0.78rem; font-weight: 700; color: var(--muted); margin-bottom: 0.2rem; }
.finder select, .finder input {
  width: 100%; border: 1px solid var(--line); border-radius: 8px;
  padding: 0.75rem 0.8rem; font: inherit; background: #fff; font-size: 1rem;
}
.finder .full { grid-column: 1 / -1; }
.finder .btn { width: 100%; margin-top: 0.7rem; padding: 0.95rem 1rem; font-size: 1.1rem; }

/* Season pills */
.pills { display: flex; flex-wrap: wrap; gap: 0.45rem; margin: 1rem 0 0; }
.pill {
  background: #fff; border: 1px solid var(--teal-mid);
  color: var(--teal-dark); border-radius: 999px;
  padding: 0.35rem 0.8rem; font-size: 0.88rem; font-weight: 600;
  text-decoration: none;
}
.pill:hover { background: var(--teal-mid); }

/* Sections */
.section { padding: 1.75rem 0 2.25rem; }
.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 1rem; margin-bottom: 1rem; flex-wrap: wrap;
}
.section h2 { margin: 0; font-size: 1.35rem; }
.section .sub { margin: 0; color: var(--muted); font-size: 0.95rem; }

/* Marketplace card grid — eduki style */
.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
@media (max-width: 1000px) { .cards { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px) { .cards { grid-template-columns: 1fr; } }

.card {
  border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; background: #fff;
  display: flex; flex-direction: column;
  transition: box-shadow .15s ease;
  text-decoration: none; color: inherit;
}
.card:hover { box-shadow: var(--shadow); }
.card-thumb {
  aspect-ratio: 4 / 3;
  background: var(--teal-mid);
  position: relative;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; color: var(--teal-dark);
}
.card-thumb.t2 { background: #fff3cd; }
.card-thumb.t3 { background: #e8f5e9; }
.card-thumb.t4 { background: #fce4ec; }
.card-body { padding: 0.75rem 0.85rem 0.95rem; display: flex; flex-direction: column; gap: 0.35rem; flex: 1; }
.card-title {
  font-weight: 700; font-size: 0.95rem; line-height: 1.3;
  text-decoration: none; color: var(--ink);
}
.meta { color: var(--muted); font-size: 0.8rem; }
.price { font-weight: 700; color: var(--ink); margin-top: auto; padding-top: 0.35rem; }
.badges { display: flex; flex-wrap: wrap; gap: 0.3rem; position: absolute; top: 0.45rem; left: 0.45rem; }
.badge {
  font-size: 0.68rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.02em; border-radius: 4px; padding: 0.2rem 0.4rem;
}
.b-best { background: var(--yellow); color: #5c4400; }
.b-new { background: var(--teal); color: #fff; }
.b-top { background: #262626; color: #fff; }
.b-ok { background: #fff; color: var(--teal-dark); border: 1px solid var(--teal); }
.b-trend { background: #ffedd5; color: #9a3412; }

/* Filters bar */
.filters {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
  background: var(--teal-soft); border-radius: 12px;
  padding: 0.85rem; margin-bottom: 1.25rem;
}
.filters select, .filters input {
  border: 1px solid var(--line); border-radius: 6px;
  padding: 0.5rem 0.65rem; font: inherit; background: #fff;
}

/* Detail */
.detail-layout { display: grid; grid-template-columns: 1.4fr 0.8fr; gap: 1.5rem; }
@media (max-width: 800px) { .detail-layout { grid-template-columns: 1fr; } }
.panel {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.1rem; background: #fff;
}
.panel.sticky { position: sticky; top: 4.5rem; }
.actions { display: flex; flex-wrap: wrap; gap: 0.55rem; align-items: center; margin: 1rem 0; }
.like-btn {
  border: 1px solid var(--line); background: #fff; border-radius: 999px;
  padding: 0.45rem 0.9rem; font-weight: 700; cursor: pointer;
}
.comments { margin-top: 1.5rem; }
.comment { border-top: 1px solid var(--line); padding: 0.85rem 0; }
.comment-form textarea {
  width: 100%; min-height: 90px; border: 1px solid var(--line);
  border-radius: 8px; padding: 0.7rem; font: inherit; resize: vertical;
}
.note { font-size: 0.85rem; color: var(--muted); }
.site-footer {
  border-top: 1px solid var(--line); padding: 1.5rem 0 2rem;
  color: var(--muted); font-size: 0.9rem; background: var(--teal-soft);
}
.preview-bar {
  display: flex; gap: 0.75rem; flex-wrap: wrap; align-items: center;
  background: #fff8dc; border: 1px solid var(--yellow);
  border-radius: 8px; padding: 0.65rem 0.9rem; margin-bottom: 1rem; font-size: 0.9rem;
}
