/* Link Logs officer site. Dark, with Warcraft Logs parse colours as accents. */
:root {
  color-scheme: dark;
  --bg: #0c0b10; --card: #17161e; --card2: #201e29; --hover: #23212d; --line: #2a2834; --line2: #3a3746;
  --text: #eceaf4; --muted: #a19eb0; --dim: #6f6c7e;
  --pink: #e268a8; --gold: #e5cc80; --orange: #ff8000; --purple: #a335ee; --blue: #4f8edb;
  --green: #3fbf6f; --red: #e5534b; --amber: #e0a526; --discord: #5865f2;
}
* { box-sizing: border-box; }
html { background: var(--bg); }
body {
  margin: 0; min-height: 100vh; color: var(--text);
  font: 15px/1.55 Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  background:
    radial-gradient(1100px 520px at 8% -8%, rgba(163, 53, 238, .17), transparent 60%),
    radial-gradient(900px 480px at 100% 0%, rgba(226, 104, 168, .12), transparent 55%),
    radial-gradient(900px 600px at 50% 125%, rgba(229, 204, 128, .06), transparent 60%),
    var(--bg);
  background-attachment: fixed;
}
a { color: #a9b8ff; }
main { max-width: 1200px; margin: 0 auto; padding: 28px 20px 64px; }
h1 { font-size: 28px; font-weight: 700; letter-spacing: -.02em; margin: 0 0 6px; }
h2 { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .09em; color: var(--muted); margin: 36px 0 12px; }
.sub, .muted { color: var(--muted); }
.small { font-size: 13px; }
code { background: var(--card2); padding: 1px 6px; border-radius: 6px; font-size: 13px; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px; background: var(--card2); color: var(--text); text-decoration: none;
  border: 1px solid var(--line2); padding: 8px 14px; border-radius: 10px; font: inherit; font-weight: 500; cursor: pointer;
  transition: background .15s, border-color .15s, transform .1s;
}
.btn:hover { border-color: #4a4658; background: var(--hover); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: linear-gradient(180deg, #6c76ff, #5865f2); border-color: #5865f2; color: #fff; }
.btn.primary:hover { filter: brightness(1.08); }
.btn.small { padding: 5px 10px; font-size: 13px; border-radius: 8px; }

/* navigation */
.nav {
  position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 4px; flex-wrap: wrap;
  padding: 10px 20px; border-bottom: 1px solid var(--line); background: rgba(12, 11, 16, .74); backdrop-filter: blur(12px);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--text); text-decoration: none; margin-right: 16px; }
.brand img { width: 28px; height: 28px; }
.brand b { color: var(--pink); font-weight: 700; }
.nav a.link { color: var(--muted); text-decoration: none; padding: 6px 11px; border-radius: 8px; font-weight: 500; }
.nav a.link:hover { color: var(--text); background: #1c1b24; }
.nav a.link.on { color: var(--text); background: #24222e; box-shadow: inset 0 -2px 0 var(--pink); }
.who { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.who img { width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--line2); }

/* cards and stats */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.card {
  position: relative; display: block; color: inherit; text-decoration: none; border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .03), rgba(255, 255, 255, 0) 60%), var(--card);
}
a.card { transition: transform .15s, border-color .15s; }
a.card:hover { border-color: var(--line2); transform: translateY(-2px); }
.stat b { display: block; font-size: 32px; font-weight: 700; letter-spacing: -.02em; line-height: 1.2; }
.stat span { color: var(--muted); font-size: 14px; }
.stat::before { content: ""; position: absolute; left: 18px; right: 18px; top: -1px; height: 2px; border-radius: 2px; background: var(--accent, var(--pink)); }
.hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }

/* raid cards */
.raid .top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.raid .top b { font-size: 16px; }
.bar { height: 6px; background: #26242f; border-radius: 6px; overflow: hidden; margin: 12px 0 6px; }
.bar i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, var(--purple), var(--pink), var(--gold)); }
.minibar { display: inline-block; width: 70px; height: 5px; background: #26242f; border-radius: 5px; overflow: hidden; vertical-align: middle; margin-left: 8px; }
.minibar i { display: block; height: 100%; background: linear-gradient(90deg, var(--purple), var(--pink)); }

/* pills */
.pill { display: inline-block; font-size: 12px; font-weight: 500; padding: 2px 9px; border-radius: 999px; background: var(--card2); color: var(--muted); white-space: nowrap; }
.pill.ok { background: #16301f; color: #7fd99a; } .pill.warn { background: #33290f; color: #f0c766; }
.pill.bad { background: #351a1a; color: #f19a97; } .pill.info { background: #172739; color: #8cb8f2; }
.pill.miss { background: #351a1a; color: #f19a97; text-decoration: line-through; }
.pill.need { background: #2a1625; color: #f2a7cf; border: 1px solid #4a2741; font-size: 13px; padding: 4px 11px; }
.needs { display: flex; flex-wrap: wrap; gap: 8px; }

/* tables */
.scroll { overflow-x: auto; border-radius: 16px; }
table { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--card); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
th, td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { color: var(--dim); font-weight: 600; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; background: #15141b; }
tr:last-child td { border-bottom: none; }
tbody tr:hover td, tr:hover td { background: #1b1a23; }
.tabs { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
img.icon { width: 22px; height: 22px; border-radius: 5px; vertical-align: -6px; margin-right: 6px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .5); }

/* login */
.center { max-width: 420px; min-height: 100vh; margin: 0 auto; display: flex; flex-direction: column; justify-content: center; padding: 24px 16px; }
.login { text-align: center; padding: 34px 28px; }
.login img { width: 72px; height: 72px; margin-bottom: 14px; }
.login h1 b { color: var(--pink); }
.login p { margin: 0 0 22px; }

/* raid group editor */
.toolbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 16px 0 8px; }
#status { color: var(--muted); }
#groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.group, #bench { border: 1px solid var(--line); border-radius: 16px; padding: 12px; min-height: 120px; background: var(--card); transition: border-color .15s, background .15s; }
.group.over, #bench.over { border-color: var(--pink); background: #1d1722; }
.ghead { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; font-size: 14px; }
.ghead b { font-size: 15px; }
.kind { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--dim); }
.chip {
  display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 10px; background: var(--card2); margin-bottom: 5px;
  cursor: grab; user-select: none; border-left: 3px solid var(--rc, var(--line2)); transition: background .12s;
}
.chip:hover { background: var(--hover); }
.chip img { width: 24px; height: 24px; border-radius: 5px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .5); }
.chip .name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.chip.sel { outline: 2px solid var(--pink); } .chip.dragging { opacity: .4; }
.chip .tag { font-size: 11px; color: var(--amber); }
.r-tank { --rc: #4f8edb; } .r-healer { --rc: #3fbf6f; } .r-melee { --rc: #e0a526; } .r-ranged { --rc: #aad372; } .r-caster { --rc: #b57cf2; }
.slot { padding: 6px 8px; border: 1px dashed var(--line); border-radius: 10px; margin-bottom: 5px; color: #4e4b5c; font-size: 13px; }
.role { font-size: 11px; padding: 1px 7px; border-radius: 6px; background: #2b2936; color: var(--muted); }
.role-tank { color: #8cb8f2; } .role-healer { color: #7fd99a; } .role-melee { color: #f0c766; } .role-ranged { color: #c4e39a; } .role-caster { color: #c9a2f7; }
.pills { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 4px; }
#bench { margin-top: 14px; }
.benchrow { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 5px; }

@media (max-width: 640px) {
  .who span { display: none; } th.opt, td.opt { display: none; }
  main { padding: 20px 14px 48px; } h1 { font-size: 24px; }
}
