/* ================================
   Astracel – Regions List (Glass)
   File: regions.default.css
   ================================ */

: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: #1bdfd9;
  --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);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { min-height: 100%; background: var(--bg); }

body{
  min-height: 100%;
  margin: 0;
  padding: 0 0 32px 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; }

/* Heading */
h2{
  margin: 22px auto 10px;
  text-align: center;
  font-family: "CopperplateGothicBold", ui-sans-serif, system-ui, Arial, sans-serif;
  font-size: clamp(20px, 2vw, 28px);
  letter-spacing: .5px;
}

.regions-shell{
  width: min(1280px, 94vw);
  margin: 0 auto;
}

/* World View card */
.worldview-card{
  width: 100%;
  margin: 16px auto 14px;
  padding: 18px 20px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
  text-decoration: none;
  color: var(--text);
  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;
}
.worldview-card:hover{
  background: var(--panel-hover);
  border-color: rgba(255,255,255,0.18);
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}
.worldview-card-left{
  min-width: 0;
}
.worldview-kicker{
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .14em;
  margin-bottom: 6px;
}
.worldview-title{
  font-family: "CopperplateGothicBold", ui-sans-serif, system-ui, Arial, sans-serif;
  font-size: clamp(18px, 2vw, 26px);
  letter-spacing: .4px;
}
.worldview-subtitle{
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.45;
  max-width: 850px;
}
.worldview-card-right{
  display: flex;
  align-items: center;
  justify-content: center;
}
.worldview-code{
  min-width: 84px;
  padding: 10px 14px;
  text-align: center;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.06);
  color: var(--text);
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

/* Search header */
.list-header{
  width: 100%;
  margin: 12px auto 8px auto;
  display: grid;
  gap: 10px;
}

.searchbar{
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  position: relative;
}
.searchbar input{
  width: 100%;
  height: 44px;
  padding: 10px 44px 10px 14px;
  font-size: 16px;
  color: var(--text);
  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);
  outline: none;
  transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
}
.searchbar input:focus{
  border-color: rgba(255,255,255,0.22);
  box-shadow: var(--shadow-soft);
}
.searchbar .clear{
  position: absolute;
  right: 94px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  line-height: 28px;
  text-align: center;
  border-radius: 999px;
  text-decoration: none;
  color: var(--muted);
  background: transparent;
  transition: background .15s ease, color .15s ease;
}
.searchbar .clear:hover{
  color: var(--text);
  background: rgba(255,255,255,0.06);
}
.searchbar button{
  height: 44px;
  padding: 0 18px;
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.03)), var(--panel);
  color: var(--text);
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.searchbar button:hover{
  transform: translateY(-1px);
  background: var(--panel-hover);
  border-color: rgba(255,255,255,0.18);
  box-shadow: var(--shadow-soft);
}
.results-meta{
  color: var(--muted);
  font-size: 14px;
  padding: 0 2px;
}

/* Table */
.zones-table{
  width: 100%;
  margin: 14px auto;
  border-collapse: separate;
  border-spacing: 0;
  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);
  overflow: hidden;
}

.zones-table thead th{
  position: sticky;
  top: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02)),
    var(--panel);
  border-bottom: 1px solid var(--panel-border);
  font-weight: 700;
  letter-spacing: .3px;
}

.zones-table th,
.zones-table td{
  padding: 12px 14px;
  text-align: center;
  border-right: 1px solid rgba(255,255,255,0.06);
}
.zones-table th:last-child,
.zones-table td:last-child{
  border-right: none;
}
.zones-table tbody tr + tr td{
  border-top: 1px solid rgba(255,255,255,0.06);
}

.zones-table tbody tr:nth-child(odd){
  background: color-mix(in srgb, var(--panel) 90%, #000 10%);
}
.zones-table tbody tr:nth-child(even){
  background: color-mix(in srgb, var(--panel) 96%, #fff 4%);
}

.zones-table tbody tr{
  transition: background .18s ease;
}
.zones-table tbody tr:hover{
  background: var(--panel-hover);
}

/* Header links */
.zones-table th a{
  display: inline-block;
  padding: 6px 8px;
  color: var(--text);
  text-decoration: none;
  border-radius: 10px;
  transition: color .16s ease, background .16s ease, text-shadow .16s ease;
}
.zones-table th a:hover{
  background: var(--panel-hover);
  color: var(--accent);
  text-shadow: 0 0 12px color-mix(in srgb, var(--accent) 40%, transparent);
}

/* Cell links */
.zones-table td a{
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 2px;
  transition: color .16s ease, text-decoration-color .16s ease, text-shadow .16s ease;
}
.zones-table td a:hover{
  color: var(--accent);
  text-decoration-color: #fff;
  text-shadow: 0 0 10px color-mix(in srgb, var(--accent) 40%, transparent);
}

/* Focus rings */
.zones-table th a:focus-visible,
.zones-table td a:focus-visible,
.worldview-card:focus-visible{
  outline: 2px solid transparent;
  box-shadow:
    0 0 0 2px color-mix(in srgb, var(--accent) 70%, transparent),
    0 0 0 6px color-mix(in srgb, var(--accent) 18%, transparent);
  border-radius: 10px;
}

.continent-name-cell{
  white-space: nowrap;
}

.continent-color-cube{
  display: inline-block;
  width: 18px;
  height: 18px;
  border-radius: 4px;
  border: 1px solid rgba(255,255,255,0.25);
  vertical-align: middle;
  margin-left: 8px;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.18) inset;
}

/* Small screens */
@media (max-width: 760px){
  .worldview-card{
    grid-template-columns: 1fr;
    text-align: center;
  }

  .worldview-card-right{
    justify-content: center;
  }

  .zones-table{
    display: block;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
  }

  thead,
  tbody,
  tr{
    display: table;
    width: 100%;
    table-layout: fixed;
  }

  th,
  td{
    white-space: nowrap;
  }
}