/* =========================
   DataSoupKitchen — styles.css
   Wabi-sabi palette + soft UI
   ========================= */

/* ---------- COLOR SYSTEM ---------- */
:root{
  --bg:#FCF1EA;          /* Albino */
  --card:#ffffff;

  /* subtle tinted surface (use on hero + cards) */
  --surface:linear-gradient(180deg, rgba(0,164,63,.07), rgba(0,164,63,0));

  --text:#1f2430;
  --muted:#5c6678;

  --accent:#00A43F;      /* Enchanted Emerald (use sparingly) */
  --accent-dark:#092629; /* Fence Green */
  --gold:#E6B373;        /* Pyramid Gold */

  --border:rgba(0,0,0,.08);
  --pill:#f3e8dc;

  --shadow:0 10px 30px rgba(0,0,0,.05);
  --shadow2:0 6px 16px rgba(0,0,0,.06);

  --radius:18px;
}

/* ---------- BASE ---------- */
*{ box-sizing:border-box; }

html, body{ height:100%; }

body{
  margin:0;
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial;
  background:var(--bg);
  color:var(--text);
  line-height:1.5;
}

a{
  color:var(--accent-dark);
  text-decoration:none;
}
a:hover{ text-decoration:underline; }

/* ---------- LAYOUT ---------- */
.wrap{
  max-width:980px;
  margin:0 auto;
  padding:24px;
}

/* ---------- NAV ---------- */
.nav{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  flex-wrap:wrap;
  margin-bottom:22px;
}

/* brand row (icon + text) */
.brand{
  font-weight:750;
  letter-spacing:.2px;
}
.brand a{
  display:flex;
  align-items:center;
  gap:10px;
  color:var(--text);
  text-decoration:none;
}

/* keep logo controlled */
.brand-icon{
  height:26px;
  width:auto;
  display:block;
}

/* make the brand text a bit larger like you wanted */
.brand-name{
  font-size:18px;
  line-height:1;
}

/* ---------- LINKS ---------- */
.links{
  display:flex;
  gap:16px;
  flex-wrap:wrap;
}

.links a{
  color:var(--muted);
  position:relative;
  padding-bottom:2px;
}
.links a:hover{
  color:var(--text);
  text-decoration:none;
}
.links a.active::after{
  content:"";
  position:absolute;
  left:0;
  bottom:-4px;
  width:100%;
  height:2px;
  background:var(--gold);
  border-radius:2px;
}

/* ---------- HERO ---------- */
.hero{
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:20px;
  padding:24px;
  margin-bottom:24px;
  box-shadow:var(--shadow2);
}
.hero > *{ max-width:100%; }

.featured-label{
  display:inline-block;
  background:var(--pill);
  border:1px solid var(--border);
  border-radius:999px;
  padding:6px 12px;
  font-size:13px;
  color:var(--muted);
  margin-bottom:10px;
}

.hero h1{
  margin:0 0 10px;
  font-size:32px;
  letter-spacing:-.2px;
}

.hero h1 a{
  color:var(--text);
  text-decoration:none;
}
.hero h1 a:hover{
  text-decoration:underline;
}

.small{
  font-size:14px;
  color:var(--muted);
  line-height:1.55;
  margin:0;
}

/* ---------- BUTTON ---------- */
.btn{
  display:inline-flex;
  align-items:center;
  gap:8px;
  background:var(--accent-dark);
  color:white !important;
  border:none;
  padding:10px 18px;
  border-radius:999px;
  font-size:14px;
  text-decoration:none !important;
  transition:transform .06s ease, background .2s ease;
}
.btn:hover{
  background:var(--accent);
  transform:translateY(-1px);
}

/* ---------- GRID / CARDS ---------- */
.grid{
  display:grid;
  gap:18px;
  grid-template-columns:repeat(auto-fit, minmax(260px, 1fr));
}

/* IMPORTANT:
   Make cards match hero vibe (tinted surface), not flat white */
.card{
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:20px;
  box-shadow:var(--shadow);
}

.card h2,
.card h3{
  margin:0 0 10px;
  font-size:18px;
  letter-spacing:-.1px;
}

.card p.small{ margin:0; }

/* ---------- DIRECTORY LIST ITEMS ----------
   Your directory page uses .list + .item.
   Add spacing + give them the same surface styling.
*/
.list{
  display:grid;
  gap:16px; /* more breathing room between items */
  margin-top:14px;
}

.item{
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:18px;
  box-shadow:var(--shadow);
}

.item .top{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
  flex-wrap:wrap;
}

.item h3{
  margin:0;
  font-size:16px;
}

.tags{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin-top:12px;
}

/* If the directory page has sections/cards around categories,
   make them match the same styling too. */
.section,
.panel,
.category{
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:20px;
  box-shadow:var(--shadow);
}

/* ---------- FILTER BAR (Directory inputs) ----------
   This fixes the “too tight” filter row spacing. */
.filters{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:12px;
}
.filters input,
.filters select{
  height:34px;
  padding:6px 10px;
  border-radius:10px;
  border:1px solid var(--border);
  background:rgba(255,255,255,.7);
  color:var(--text);
}
.filters input{ min-width:240px; }

/* ---------- PILLS ---------- */
.pill{
  display:inline-block;
  background:var(--pill);
  padding:6px 12px;
  border-radius:999px;
  font-size:13px;
  color:var(--muted);
  border:1px solid var(--border);
}

/* ---------- FOOTER ---------- */
.footer{
  margin-top:28px;
  font-size:13px;
  color:var(--muted);
}

hr{
  border:none;
  border-top:1px solid var(--border);
  margin:24px 0;
}

/* =========================
   HERO CAROUSEL (Swipe + snap)
   ========================= */

.hero-media{
  margin-top:18px;
  max-width:100%;
}

.carousel{
  position:relative;
  width:100%;
  max-width:100%;
}

.carousel-track{
  display:flex;
  flex-direction:row;
  width:100%;

  overflow-x:auto;
  overflow-y:hidden;
  -webkit-overflow-scrolling:touch;

  scroll-snap-type:x mandatory;
  scroll-behavior:smooth;

  gap:0;
  padding:0;

  white-space:nowrap;
}

.slide{
  flex:0 0 100%;
  width:100%;
  scroll-snap-align:start;
  display:block;
}

.slide img{
  display:block;
  width:100%;
  height:320px;          /* desktop: taller */
  object-fit:cover;
  border-radius:16px;
  max-width:100%;
}

/* Hide scrollbars */
.carousel-track::-webkit-scrollbar{ display:none; }
.carousel-track{ scrollbar-width:none; }

/* Dots */
.dots{
  margin-top:10px;
  text-align:center;
}

.dot{
  width:8px;
  height:8px;
  border-radius:50%;
  border:none;
  background:rgba(0,0,0,.25);
  margin:0 4px;
  cursor:pointer;
}

.dot.active{ background:var(--accent-dark); }

/* Click-left / click-right overlays */
.carousel-nav{
  position:absolute;
  top:0;
  bottom:0;
  width:18%;
  border:none;
  background:transparent;
  cursor:pointer;
  padding:0;
}

.carousel-nav.prev{ left:0; }
.carousel-nav.next{ right:0; }

@media (hover:hover){
  .carousel-nav:hover{
    background:linear-gradient(
      to var(--dir, right),
      rgba(0,0,0,.10),
      rgba(0,0,0,0)
    );
  }
  .carousel-nav.prev:hover{ --dir:right; }
  .carousel-nav.next:hover{ --dir:left; }
}

/* ---------- MOBILE ---------- */
@media (max-width:600px){
  .wrap{ padding:18px; }
  .hero{ padding:18px; }

  .hero h1{ font-size:24px; }

  .brand-icon{ height:24px; }
  .brand-name{ font-size:17px; }

  .slide img{ height:220px; }
  .filters input{ min-width:100%; }
}
