/* ================================
   Astracel – Flora List (Glass)
   File: flora.default.css
   ================================ */

/* Tokens */
: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: #1bdf28;
  --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 */
*,
*::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;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* 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;
  color: var(--text);
  text-shadow: 0 1px 0 rgba(255,255,255,0.04);
}

/* Table */
table{
  width: min(1280px, 94vw);
  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;
}

/* Sticky header */
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;
}

/* Cells */
th, td{
  padding: 12px 14px;
  text-align: center;
  border-right: 1px solid rgba(255,255,255,0.06);
}
th:last-child, td:last-child{ border-right: none; }

/* Row lines */
tbody tr + tr td{ border-top: 1px solid rgba(255,255,255,0.06); }

/* Zebra */
tbody tr:nth-child(odd){ background: color-mix(in srgb, var(--panel) 90%, #000 10%); }
tbody tr:nth-child(even){ background: color-mix(in srgb, var(--panel) 96%, #fff 4%); }

/* Hover/active */
tbody tr{ transition: background .18s ease, transform .12s ease, box-shadow .18s ease; }
tbody tr:hover{ background: var(--panel-hover); }
tbody tr:active{
  transform: translateY(1px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
}

/* Links */
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;
}
th a:hover{
  background: var(--panel-hover);
  color: var(--accent);
  text-shadow: 0 0 12px color-mix(in srgb, var(--accent) 40%, transparent);
}

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;
}
td a:hover{
  color: var(--accent);
  text-decoration-color: #fff;
  text-shadow: 0 0 10px color-mix(in srgb, var(--accent) 40%, transparent);
}

/* Italic */
td i{ color: color-mix(in srgb, var(--text) 92%, #fff 8%); }

/* Responsive */
@media (max-width: 760px){
  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; }
}

/* Focus */
th a:focus-visible,
td a: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;
}
