/* assets/style.css (FULL REPLACEMENT) */

/* ============ Theme tokens ============ */
:root{
  /* Δηλώνουμε ρητά dark ώστε να μην κάνει ο browser “auto dark” σε light στοιχεία */
  color-scheme: dark;

  /* Dark palette */
  --bg: #0b1220;
  --bg-2: #0f1b35;

  --surface: rgba(17, 24, 39, .92);
  --surface-2: rgba(15, 23, 42, .92);

  --text: #f8fafc;
  --muted: #cbd5e1;

  --border: rgba(148, 163, 184, .22);

  --primary: #60a5fa;
  --primary-2: #3b82f6;

  --radius: 16px;
  --shadow: 0 18px 45px rgba(0,0,0,.45);
  --shadow-sm: 0 8px 22px rgba(0,0,0,.32);

  --container: 1100px;
  --pad: 18px;
}

/* Optional: Αν θες να υποστηρίζει και light theme σωστά, άφησέ το.
   Αν όχι, μπορείς να σβήσεις αυτό το block. */
@media (prefers-color-scheme: light){
  :root{
    color-scheme: light;
    --bg: #f6f7fb;
    --bg-2: #eef2ff;

    --surface: #ffffff;
    --surface-2: rgba(255,255,255,.92);

    --text: #111827;
    --muted: #6b7280;

    --border: #e5e7eb;

    --primary: #2563eb;
    --primary-2: #1d4ed8;

    --shadow: 0 10px 30px rgba(17,24,39,.08);
    --shadow-sm: 0 4px 14px rgba(17,24,39,.06);
  }
}

/* ============ Base reset ============ */
*{ box-sizing: border-box; }
html, body{ height: 100%; }
body{
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans";
  color: var(--text);
  line-height: 1.55;

  background:
    radial-gradient(1200px 800px at 20% 0%, var(--bg-2) 0%, var(--bg) 45%, var(--bg) 100%);
}

a{ color: inherit; text-decoration: none; }
a:hover{ color: var(--primary); }

/* ============ Layout helpers ============ */
.container{
  width: min(var(--container), calc(100% - 2*var(--pad)));
  margin: 0 auto;
}

.main{ padding: 26px 0 44px; }

.grid{
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 16px;
}
@media (max-width: 900px){
  .grid{ grid-template-columns: 1fr; }
}

/* ============ Header / Nav ============ */
.header{
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(10px);
  background: rgba(11, 18, 32, .72);
  border-bottom: 1px solid var(--border);
}

.nav{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 14px;
  flex-wrap: wrap;
}

.brand{
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: .2px;
}

.brand-badge{
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary-2) 0%, var(--primary) 100%);
  color: #fff;
  box-shadow: var(--shadow-sm);
  font-size: 14px;
}

.brand small{
  display: block;
  font-weight: 650;
  color: var(--muted);
  letter-spacing: 0;
}

/* pills on the right */
.nav-links{
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.pill{
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  color: var(--text);
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
  transition: transform .12s ease, background .12s ease, border-color .12s ease;
}
.pill:hover{
  transform: translateY(-1px);
  border-color: rgba(96,165,250,.45);
  background: rgba(96,165,250,.12);
}
.pill.primary{
  background: rgba(96,165,250,.18);
  border-color: rgba(96,165,250,.35);
}
.pill.primary:hover{
  background: rgba(96,165,250,.26);
}

/* ============ Cards (the important part) ============ */
.card,
.hero,
.notice,
.card-link,
.table,
.table-card,
.file-card{
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  color: var(--text);
}

/* Hero gets a “premium” background like your top card */
.hero{
  padding: 22px;
  border-radius: calc(var(--radius) + 6px);
  box-shadow: var(--shadow);
  background:
    radial-gradient(600px 260px at 15% 10%, rgba(96,165,250,.18) 0%, rgba(96,165,250,0) 55%),
    radial-gradient(700px 280px at 85% 0%, rgba(59,130,246,.14) 0%, rgba(59,130,246,0) 60%),
    var(--surface-2);
}

.card{ padding: 18px; }

/* Typography */
h1{
  margin: 0 0 6px;
  font-size: clamp(26px, 3.2vw, 38px);
  line-height: 1.15;
}
.section-title{
  margin: 0 0 10px;
  font-size: 16px;
  letter-spacing: .2px;
  font-weight: 800;
}
.subhead{
  margin: 0 0 14px;
  color: var(--muted);
  font-weight: 650;
}
.muted{ color: var(--muted); }

/* Meta tags row */
.meta{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.tag{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  font-size: 13px;
  color: var(--text);
}
.tag span{
  width: 8px; height: 8px;
  border-radius: 999px;
  background: rgba(96,165,250,.75);
  display: inline-block;
}

/* Lists */
.list{
  margin: 10px 0 0;
  padding-left: 18px;
}
.list li{ margin: 6px 0; }

/* Cards grid */
.cards{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
@media (max-width: 760px){
  .cards{ grid-template-columns: 1fr; }
}

.card-link{
  display: block;
  padding: 14px;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease, background .15s ease;
  background:
    radial-gradient(420px 220px at 15% 10%, rgba(96,165,250,.12) 0%, rgba(96,165,250,0) 55%),
    var(--surface);
}
.card-link:hover{
  transform: translateY(-2px);
  border-color: rgba(96,165,250,.45);
  box-shadow: 0 14px 30px rgba(0,0,0,.35);
  background:
    radial-gradient(420px 220px at 15% 10%, rgba(96,165,250,.18) 0%, rgba(96,165,250,0) 55%),
    var(--surface);
}
.card-link h4{ margin: 0 0 6px; font-size: 16px; }
.card-link p{ margin: 0; color: var(--muted); font-size: 14px; }

/* Separator */
.hr{
  height: 1px;
  background: var(--border);
  margin: 14px 0;
}

/* Breadcrumb */
.breadcrumb{
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 10px;
}
.breadcrumb a{ color: var(--primary); font-weight: 800; }

/* Notice */
.notice{
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px dashed rgba(96,165,250,.40);
  background: rgba(96,165,250,.10);
}

/* Buttons */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  background: rgba(96,165,250,.18);
  color: #6b8298;
  border: 1px solid rgba(96,165,250,.35);
  border-radius: 999px;
  padding: 10px 18px;

  cursor: pointer;
  transition: background .18s ease, transform .12s ease, border-color .18s ease;
}
.btn:hover{
  background: rgba(96,165,250,.28);
  border-color: rgba(96,165,250,.50);
  transform: translateY(-1px);
}
.btn:active{ transform: translateY(0); }
.btn[disabled]{
  opacity: .55;
  cursor: not-allowed;
}

/* ============ Tables (worksheets list) ============ */
.table{
  padding: 14px;
  overflow: hidden;
}
table{
  width: 100%;
  border-collapse: collapse;
}
th, td{
  padding: 12px 10px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
  color: var(--text);
}
th{
  text-align: left;
  font-weight: 900;
  color: var(--text);
}
td small{ color: var(--muted); }

/* make long filenames wrap nicely */
td{
  word-break: break-word;
  overflow-wrap: anywhere;
}

/* Mobile: give a little more breathing room */
@media (max-width: 600px){
  th, td{ padding: 12px 8px; }
}

/* ============ Footer ============ */
.footer{
  border-top: 1px solid var(--border);
  padding: 22px 0;
  color: var(--muted);
  font-size: 14px;
}

/* ============ Small mobile polish ============ */
@media (max-width: 520px){
  .nav{ padding: 12px 0; }
  .pill{ font-size: 13px; padding: 8px 12px; }
  .card{ padding: 16px; }
}