﻿@import url('/static/style.css');

/* =====================================================
   Sweden National Day theme  -  improved
   Flag colours: Blue #006AA7  .  Yellow #FECC02
   ===================================================== */

:root {
  --bg:     #040e18;
  --card:   #071828;
  --muted:  #7ab5d6;
  --text:   #dff0fb;
  --accent: #fecc02;
  --blue:   #006aa7;
}

/* -- Background --------------------------------------------- */
html, body {
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 90% 35% at 10% 0%,  rgba(0, 106, 167, 0.28), transparent 60%),
    radial-gradient(ellipse 70% 28% at 90% 0%,  rgba(254, 204, 2, 0.10), transparent 50%),
    linear-gradient(180deg, #050f1a 0%, #071623 55%, #040c14 100%);
  color: var(--text);
}

/*
  Swedish flag watermark.
  Proportions: 16 wide : 10 tall (official).
  Cross bars:
    horizontal  40% - 60% of height
    vertical    31.25% - 43.75% of width  (offset left, as on a real flag)
  Placed bottom-right, faint but clearly flag-shaped.
*/
body::before {
  content: '';
  position: fixed;
  bottom: 48px;
  right: 56px;
  width: 240px;
  height: 150px;     /* 16:10 ratio */
  pointer-events: none;
  z-index: 0;
  border-radius: 4px;
  opacity: 0.10;
  background-color: #006aa7;
  background-image:
    /* horizontal bar */
    linear-gradient(to bottom,
      transparent 40%, #fecc02 40%,
      #fecc02 60%, transparent 60%),
    /* vertical bar (offset left) */
    linear-gradient(to right,
      transparent 31.25%, #fecc02 31.25%,
      #fecc02 43.75%, transparent 43.75%);
}

/* -- Topbar -------------------------------------------------- */
.topbar {
  background: linear-gradient(90deg, #03111e 0%, #061a2c 50%, #03111e 100%);
  border-bottom: 2px solid rgba(254, 204, 2, 0.55);
  box-shadow: 0 2px 20px rgba(254, 204, 2, 0.08);
}

.brand {
  color: #fecc02;
  letter-spacing: -0.3px;
  text-shadow: 0 0 18px rgba(254, 204, 2, 0.4);
}

.nav-link-active {
  color: #fecc02;
  border-bottom-color: #fecc02;
}

.nav-link { color: #90c8e8; }
.nav-link:hover { color: #fecc02; }

/* -- Holiday banner ------------------------------------------ */
.holiday-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(105deg, #005a8e 0%, #006aa7 40%, #005080 100%);
  color: #fecc02;
  border: 1px solid rgba(254, 204, 2, 0.60);
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(0, 106, 167, 0.50), inset 0 1px 0 rgba(255, 255, 255, 0.10);
  font-weight: 700;
  letter-spacing: 0.25px;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.50);
}

/* -- Sidebar ------------------------------------------------- */
.sidebar {
  background: rgba(7, 28, 46, 0.90);
  border: 1px solid rgba(0, 106, 167, 0.40);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

.sidebar .list li { border-bottom: 1px solid rgba(0, 106, 167, 0.20); }

.sidebar .list li a {
  color: #90c8e8;
  border-radius: 8px;
  transition: background .15s, color .15s;
}

.sidebar .list li a:hover {
  background: rgba(0, 106, 167, 0.20);
  color: var(--text);
}

.sidebar .list li a.active {
  background: rgba(254, 204, 2, 0.12);
  color: #fecc02;
  font-weight: 600;
}

/* -- Cards --------------------------------------------------- */
.card {
  background: rgba(7, 24, 40, 0.88);
  border: 1px solid rgba(0, 106, 167, 0.40);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

#today-card { border-top: 2px solid rgba(254, 204, 2, 0.70); }

.card h2 { color: var(--text); }

.form {
  background: rgba(7, 24, 40, 0.88);
  border: 1px solid rgba(0, 106, 167, 0.40);
}

/* -- Tables -------------------------------------------------- */
.table th {
  background: rgba(0, 106, 167, 0.18);
  color: #fecc02;
  border-bottom: 1px solid rgba(0, 106, 167, 0.40);
  letter-spacing: 0.3px;
  font-size: 12px;
  text-transform: uppercase;
}

.table td { border-bottom: 1px solid rgba(0, 106, 167, 0.14); }

.table tbody tr:nth-child(even) td { background: rgba(0, 106, 167, 0.06); }

.table tbody tr:hover td { background: rgba(0, 106, 167, 0.18) !important; }

.table tbody tr:first-child > td { background: rgba(254, 204, 2, 0.07) !important; }

.table tbody tr:first-child > td:first-child {
  border-left: 3px solid #fecc02;
  font-weight: 700;
  color: #fecc02;
}

/* -- Links --------------------------------------------------- */
a:not(.btn),
a:not(.btn):visited { color: #4dc8f5; }

a:not(.btn):hover,
a:not(.btn):focus  { color: #fecc02; }

/* -- Buttons ------------------------------------------------- */
.btn {
  background: linear-gradient(170deg, #fedc30 0%, #fecc02 50%, #d9a800 100%);
  color: #06111c;
  font-weight: 700;
  border: none;
  box-shadow: 0 2px 12px rgba(254, 204, 2, 0.30);
  transition: box-shadow .2s, filter .2s;
}

.btn:hover {
  filter: brightness(1.08);
  box-shadow: 0 4px 20px rgba(254, 204, 2, 0.45);
}

.btn.ghost {
  background: transparent;
  border: 1px solid rgba(254, 204, 2, 0.40);
  color: var(--text);
  box-shadow: none;
}

.btn.ghost:hover {
  border-color: #fecc02;
  color: #fecc02;
  background: rgba(254, 204, 2, 0.07);
}

.topbar a.btn,
.topbar a.btn:link,
.topbar a.btn:visited,
.topbar a.btn:hover,
.topbar a.btn:active { color: #06111c !important; }

.topbar a.btn.ghost,
.topbar a.btn.ghost:link,
.topbar a.btn.ghost:visited,
.topbar a.btn.ghost:hover,
.topbar a.btn.ghost:active { color: var(--text) !important; }

/* -- Flash --------------------------------------------------- */
.flash {
  background: rgba(0, 60, 100, 0.60);
  border: 1px solid #1a6d9e;
  color: #aaddff;
}

.flash.warn {
  background: rgba(60, 40, 0, 0.60);
  border-color: #7a5e00;
  color: #fecc02;
}

/* -- Podium highlights --------------------------------------- */
.podium-step.place-1 { border-top: 3px solid #fecc02; }
.podium-step.place-2 { border-top: 3px solid #aad4ed; }
.podium-step.place-3 { border-top: 3px solid #5ba3c4; }

/* -- Badge --------------------------------------------------- */
.badge-unranked {
  background: rgba(0, 106, 167, 0.25);
  border: 1px solid rgba(0, 106, 167, 0.45);
  color: #7ab5d6;
}

/* -- Toast --------------------------------------------------- */
.toast {
  background: #071828;
  border: 1px solid rgba(254, 204, 2, 0.50);
  color: var(--text);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.50);
}

/* -- Footer -------------------------------------------------- */
.footer {
  color: #5a8fac;
  border-top: 1px solid rgba(0, 106, 167, 0.25);
}
