/* ================================
   Astracel – Home (Glass)
   ================================ */

:root{
  --bg: #0e1013;
  --panel: rgba(255,255,255,0.06);
  --panel-hover: rgba(255,255,255,0.10);
  --panel-border: rgba(255,255,255,0.14);
  --text: #eef2f6;
  --muted: #a9b1ba;
  --accent: #1bdf91;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.03);
  --shadow-soft: 0 8px 24px rgba(0,0,0,0.28);
}

/* Base with full gradient coverage */
*,
*::before,
*::after { box-sizing: border-box; }
html { min-height: 100%; background: var(--bg); }
body{
  min-height: 100%;
  margin: 0;
  padding: 0 0 40px 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(1200px 800px at 10% -10%, color-mix(in srgb, var(--accent) 35%, transparent), transparent 60%),
    radial-gradient(1000px 700px at 100% 0%, rgba(86,98,246,0.06), transparent 60%),
    var(--bg);
  background-repeat: no-repeat;
  background-attachment: fixed, fixed, scroll;
}

/* Scrollbars */
* { scrollbar-width: thin; scrollbar-color: var(--accent) transparent; }
*::-webkit-scrollbar { width: 8px; height: 8px; }
*::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--accent), color-mix(in srgb, var(--accent) 60%, transparent));
  border-radius: 20px;
}
*::-webkit-scrollbar-track { background: transparent; }

/* Containers */
.container{
  width: min(1280px, 94vw);
  margin: 24px auto 0;
}

/* Hero */
.hero{ position: relative; margin-top: 18px; }
.hero-inner{
  width: min(1280px, 94vw);
  margin: 0 auto;
  padding: 22px 18px 20px;
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02)), var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 18px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.site-title{
  margin: 0 0 8px 0;
  font-family: "CopperplateGothicBold", ui-sans-serif, system-ui, Arial, sans-serif;
  font-size: clamp(22px, 3vw, 38px);
  letter-spacing: .6px;
}
.site-subtitle{ margin: 0 0 16px 0; color: var(--muted); }

/* Quickjump */
.quickjump{ display: flex; gap: 10px; margin-top: 8px; }
.quickjump input{
  flex: 1; padding: 12px 14px; border-radius: 12px;
  border: 1px solid var(--panel-border);
  background: rgba(255,255,255,0.04); color: var(--text);
  outline: none;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.quickjump input:focus{
  box-shadow:
    0 0 0 2px color-mix(in srgb, var(--accent) 60%, transparent),
    0 0 0 6px color-mix(in srgb, var(--accent) 18%, transparent);
  border-color: color-mix(in srgb, var(--panel-border) 50%, #fff 50%);
  background: rgba(255,255,255,0.06);
}
.quickjump .btn-accent{
  padding: 12px 16px; border-radius: 12px; border: 1px solid var(--panel-border);
  background: linear-gradient(180deg, rgba(255,255,255,0.14), rgba(255,255,255,0.06));
  color: var(--text); font-weight: 600; cursor: pointer;
  transition: transform .12s ease, background .18s ease, color .18s ease, border-color .18s ease;
}
.quickjump .btn-accent:hover{
  transform: translateY(-1px);
  background: linear-gradient(180deg, rgba(255,255,255,0.18), rgba(255,255,255,0.08));
  color: var(--accent);
}

/* Little shake feedback if input fails pattern */
@keyframes shake {
  10%, 90% { transform: translateX(-1px); }
  20%, 80% { transform: translateX(2px); }
  30%, 50%, 70% { transform: translateX(-4px); }
  40%, 60% { transform: translateX(4px); }
}
.quickjump input.shake { animation: shake .45s; }

/* Stats */
.stats{
  display: grid; gap: 10px; margin-top: 14px;
  grid-template-columns: repeat(4, minmax(0,1fr));
}
@media (min-width: 920px){
  .stats{ grid-template-columns: repeat(8, minmax(0,1fr)); }
}
.stat{
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--panel-border);
  border-radius: 12px;
  padding: 10px 12px; text-align: center;
}
.stat-num{ font-size: clamp(18px, 2vw, 24px); font-weight: 800; }
.stat-label{ color: var(--muted); font-size: 12px; margin-top: 2px; }

/* Sections */
.section{ margin-top: 28px; }
.section-head{
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

/* Your section headings */
.section h2{
  margin: 0;
  font-size: clamp(18px, 2.2vw, 24px);
}

/* "Browse all" */
.link-more{
  color: var(--text);
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 10px;
  transition: color .18s ease, background .18s ease;
  white-space: nowrap;
}
.link-more:hover{ background: var(--panel-hover); color: var(--accent); }

/* Grids */
.grid{ display: grid; gap: 14px; }
.grid-fauna{ grid-template-columns: repeat( auto-fill, minmax(220px, 1fr) ); }
.grid-zones{ grid-template-columns: repeat( auto-fill, minmax(200px, 1fr) ); }
.grid-text{ grid-template-columns: repeat( auto-fill, minmax(220px, 1fr) ); }

/* Cards */
.card{
  position: relative; overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transition: transform .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease;
  text-decoration: none; color: var(--text);
}
.card:hover{
  background: var(--panel-hover);
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--panel-border) 60%, #fff 40%);
  box-shadow: var(--shadow-soft);
}

/* Image-style cards (reused for fauna/flora/races) */
.fauna-card{ display: grid; grid-template-rows: 160px auto; }
.fauna-img{
  background-size: cover; background-position: center;
  min-height: 160px; filter: contrast(1.02) saturate(1.08);
}
.fauna-img.no-img{
  background:
    linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03)),
    rgba(255,255,255,0.04);
}
.fauna-meta{ padding: 10px 12px 12px; }
.badge{
  display: inline-block; padding: 4px 8px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.24);
  background: rgba(255,255,255,0.06);
  font-size: 12px; letter-spacing: .3px;
}
.fauna-name{ margin-top: 8px; font-weight: 700; line-height: 1.2; }

/* Zone cards */
.zone-card{
  display: grid; grid-template-rows: auto auto; align-items: center; justify-items: center;
  padding: 18px 12px; text-align: center;
}
.zone-code{ font-weight: 800; font-size: 18px; letter-spacing: .4px; }
.zone-name{ margin-top: 6px; opacity: .9; }

/* Text-only cards (religions / stories) */
.text-card{ padding: 14px 16px; }
.text-card-title{ font-weight: 700; line-height: 1.25; }

/* Empty placeholder */
.empty{
  opacity: .7; padding: 18px; text-align: center;
  border: 1px dashed rgba(255,255,255,0.18); border-radius: 12px;
}

/* =========================================
   Section Header Icons (ADDED)
   ========================================= */

.section-title{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  line-height: 1.1;
}

/* Small glassy icon chip */
.section-icon{
  width: 30px;
  height: 30px;
  flex: 0 0 26px;
  object-fit: contain;

  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0);
  background: transparent;
  box-shadow: 0 8px 18px rgba(0,0,0,0.25);
}

/* On very small screens, keep headers tidy */
@media (max-width: 520px){
  .section-head{
    align-items: flex-start;
  }
  .section-title{
    gap: 8px;
  }
  .section-icon{
    width: 24px;
    height: 24px;
    border-radius: 7px;
  }
}
