/*
 * PreBot theme: the mood of the League client without copying it (no Riot logos, no Riot fonts).
 * Hextech black and deep navy surfaces, cream text, gold for frames and titles,
 * hextech teal for "open / live" states. Flat: no gradients, no glows.
 */
:root {
    --pb-bg: #010a13;            /* hextech black */
    --pb-surface: #0a1428;       /* deep navy panels */
    --pb-surface-2: #0f1d33;     /* inputs, inner boxes */
    --pb-border: #1e2d3d;        /* quiet hairlines */
    --pb-border-strong: #3c3c41;
    --pb-gold: #c8aa6e;          /* titles, primary frames */
    --pb-gold-strong: #c89b3c;
    --pb-gold-dim: #785a28;      /* gold hairlines */
    --pb-text: #f0e6d2;          /* cream */
    --pb-text-dim: #a09b8c;      /* warm grey */
    --pb-accent: #c8aa6e;        /* primary actions = gold */
    --pb-accent-hover: #f0e6d2;
    --pb-accent-soft: rgba(200, 170, 110, 0.10);
    --pb-teal: #0ac8b9;          /* hextech teal: open, live, links */
    --pb-teal-soft: rgba(10, 200, 185, 0.10);
    --pb-success: #0ac8b9;
    --pb-success-soft: rgba(10, 200, 185, 0.10);
    --pb-warning: #d9a441;
    --pb-warning-soft: rgba(217, 164, 65, 0.10);
    --pb-danger: #d8484f;
    --pb-radius: 6px;
}

html, body {
    background: var(--pb-bg);
    color: var(--pb-text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI Variable Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 15px;
    -webkit-font-smoothing: antialiased;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

main.container,
.site-header .container,
.site-footer .container {
    max-width: 860px;
}

h1, h2, h3, h4, .h3, .h4 {
    font-weight: 650;
    letter-spacing: -0.01em;
    color: var(--pb-text);
}

h1:focus {
    outline: none;
}

a {
    color: var(--pb-teal);
    text-decoration: none;
}

a:hover {
    color: #5ee8dc;
    text-decoration: underline;
}

.text-dim {
    color: var(--pb-text-dim) !important;
}

.text-gold, .text-accent {
    color: var(--pb-accent);
}

code {
    color: var(--pb-text);
    background: var(--pb-surface-2);
    padding: 0.05rem 0.3rem;
    border-radius: 4px;
}

/* ---------- Icons ---------- */
.icon {
    width: 1em;
    height: 1em;
    flex-shrink: 0;
    vertical-align: -0.125em;
}

/* ---------- Buttons ---------- */
.btn {
    border-radius: var(--pb-radius);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
}

.btn-lg {
    font-size: 1rem;
    padding: 0.6rem 1.2rem;
}

/* Primary button: gold frame on a dark fill, like the League client's buttons (flat, no gradient). */
.btn-gold, .btn-primary {
    background: #1e2328;
    border: 1px solid var(--pb-gold);
    color: var(--pb-text);
    font-weight: 600;
    letter-spacing: 0.02em;
}

.btn-gold:hover, .btn-gold:focus, .btn-primary:hover {
    background: #252b31;
    border-color: var(--pb-text);
    color: #fff;
}

.btn-gold:disabled {
    background: #1e2328;
    border-color: var(--pb-gold-dim);
    color: var(--pb-text-dim);
    opacity: 0.7;
}

.btn-outline-light {
    border-color: var(--pb-border-strong);
    color: var(--pb-text);
    background: transparent;
}

.btn-outline-light:hover {
    background: var(--pb-surface-2);
    border-color: var(--pb-gold-dim);
    color: var(--pb-text);
}

.btn-outline-danger {
    border-color: rgba(229, 72, 77, 0.45);
    color: #f0868a;
}

.btn-outline-danger:hover {
    background: rgba(229, 72, 77, 0.12);
    border-color: var(--pb-danger);
    color: #f6a2a5;
}

.btn-link {
    color: var(--pb-text-dim);
    text-decoration: none;
}

.btn-link:hover {
    color: var(--pb-text);
    text-decoration: none;
}

/* ---------- Cards ---------- */
.pb-card {
    background: var(--pb-surface);
    border: 1px solid var(--pb-border);
    border-radius: var(--pb-radius);
    padding: 1rem 1.15rem;
}

.pb-card + .pb-card {
    margin-top: 0.75rem;
}

.listing-card.highlight {
    border-color: var(--pb-gold-dim);
    box-shadow: inset 3px 0 0 var(--pb-gold);
}

.listing-title {
    font-weight: 600;
    font-size: 1.02rem;
}

.listing-note {
    color: var(--pb-text-dim);
    margin-top: 0.35rem;
}

/* Small neutral labels: rank range, seats, Riot ID. */
.rank-chip, .role-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: var(--pb-surface-2);
    border: 1px solid var(--pb-border);
    border-radius: 4px;
    padding: 0.1rem 0.5rem;
    font-size: 0.82rem;
    font-weight: 500;
    margin-left: 0.25rem;
    color: var(--pb-text);
}

.role-chip {
    margin: 0 0.35rem 0.35rem 0;
}

/* Status line on top of a listing ("Açık · 1 kişi eksik ..."). */
.status-line {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: var(--pb-text-dim);
    font-size: 0.85rem;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    border-radius: 999px;
    padding: 0.05rem 0.55rem;
    font-size: 0.78rem;
    font-weight: 600;
    background: var(--pb-surface-2);
    color: var(--pb-text-dim);
}

.status-pill.open {
    background: var(--pb-success-soft);
    color: var(--pb-success);
}

.status-pill.done {
    background: var(--pb-accent-soft);
    color: var(--pb-gold);
}

.status-live {
    border-color: rgba(10, 200, 185, 0.35);
}

.dot {
    display: inline-block;
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: var(--pb-success);
    margin-right: 0.45rem;
    vertical-align: 0.1em;
}

.section-title {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--pb-gold);
    margin: 1.75rem 0 0.6rem;
}

/* ---------- Alerts (quiet: tinted background, coloured edge) ---------- */
.alert {
    border-radius: var(--pb-radius);
    border: 1px solid var(--pb-border);
    border-left-width: 3px;
    background: var(--pb-surface);
    color: var(--pb-text);
}

.alert-success {
    border-left-color: var(--pb-success);
    background: var(--pb-success-soft);
}

.alert-info {
    border-left-color: var(--pb-teal);
    background: var(--pb-teal-soft);
}

.alert-warning {
    border-left-color: var(--pb-warning);
    background: var(--pb-warning-soft);
}

.alert-secondary {
    border-left-color: var(--pb-border-strong);
}

.alert a {
    color: var(--pb-teal);
}

/* ---------- "New listing for you" banner ---------- */
.wave-alert {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    background: var(--pb-surface);
    border: 1px solid var(--pb-border-strong);
    border-left: 3px solid var(--pb-gold);
    border-radius: var(--pb-radius);
    padding: 0.85rem 1.1rem;
    margin-bottom: 1rem;
    animation: slide-in 0.2s ease-out;
}

@keyframes slide-in {
    from { transform: translateY(-4px); opacity: 0; }
    to { transform: none; opacity: 1; }
}

/* ---------- Home ---------- */
.hero {
    padding: 2.75rem 0 1rem;
}

.eyebrow {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--pb-gold);
    margin-bottom: 0.75rem;
}

.hero h1 {
    font-size: clamp(1.75rem, 4.5vw, 2.4rem);
    font-weight: 700;
    line-height: 1.2;
    max-width: 40rem;
}

.hero .lead {
    color: var(--pb-text-dim);
    font-size: 1.05rem;
    max-width: 36rem;
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.75rem;
    margin-top: 2rem;
}

.steps .pb-card + .pb-card {
    margin-top: 0;
}

.step-no {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.6rem;
    height: 1.6rem;
    border-radius: 50%;
    border: 1px solid var(--pb-gold-dim);
    color: var(--pb-gold);
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.6rem;
}

/* ---------- Forms ---------- */
.form-select, .form-control {
    background-color: var(--pb-surface-2);
    border-color: var(--pb-border);
    color: var(--pb-text);
    border-radius: var(--pb-radius);
}

.form-control::placeholder {
    color: #6b6a63;
}

.form-select:focus, .form-control:focus {
    background-color: var(--pb-surface-2);
    border-color: var(--pb-gold);
    box-shadow: 0 0 0 3px var(--pb-accent-soft);
    color: var(--pb-text);
}

.form-label {
    color: var(--pb-text-dim);
    font-size: 0.85rem;
    margin-bottom: 0.3rem;
}

.form-check-input:checked {
    background-color: var(--pb-teal);
    border-color: var(--pb-teal);
}

.prose h2 {
    font-size: 1.1rem;
    margin-top: 1.5rem;
}

.prose p, .prose li {
    color: #cdc6b5;
}

.push-prompt {
    border-color: var(--pb-border-strong);
}

/* ---------- Onboarding & Riot ID ---------- */
.getting-started {
    border-color: var(--pb-border-strong);
}

.checklist {
    padding-left: 0;
    list-style: none;
    margin-bottom: 0;
}

.checklist li {
    display: flex;
    gap: 0.65rem;
    align-items: flex-start;
    padding: 0.45rem 0;
    color: var(--pb-text);
}

.checklist li + li {
    border-top: 1px solid var(--pb-border);
}

.checklist .step-mark {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.35rem;
    height: 1.35rem;
    border-radius: 50%;
    border: 1px solid var(--pb-border-strong);
    color: var(--pb-text-dim);
    font-size: 0.72rem;
    font-weight: 600;
    margin-top: 0.1rem;
}

.checklist li.done {
    color: var(--pb-text-dim);
}

.checklist li.done .step-mark {
    background: var(--pb-success-soft);
    border-color: transparent;
    color: var(--pb-success);
}

.riot-prompt {
    background: var(--pb-surface-2);
    border: 1px solid var(--pb-border);
    border-radius: 8px;
    padding: 0.65rem 0.75rem;
    margin-top: 0.75rem;
}

.riot-copy {
    cursor: pointer;
}

.riot-copy .copy-hint {
    color: var(--pb-text-dim);
    font-size: 0.75rem;
}

.riot-copy:hover {
    border-color: var(--pb-gold);
}

/* ---------- Stats ---------- */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.75rem;
}

.stats-grid .pb-card + .pb-card {
    margin-top: 0;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 650;
    color: var(--pb-text);
    font-variant-numeric: tabular-nums;
}

.stat-label {
    color: var(--pb-text-dim);
    font-size: 0.82rem;
}

/* ---------- Custom game lobby & secondary boxes ---------- */
.lobby-box {
    border: 1px solid var(--pb-border);
    border-radius: var(--pb-radius);
    padding: 0.8rem 0.95rem;
    background: var(--pb-surface-2);
}

/* ---------- Tables (privacy page) ---------- */
.table-dark {
    --bs-table-bg: var(--pb-surface);
    --bs-table-border-color: var(--pb-border);
}
