/* NLW theme: dark background, light text, gold accents taken from the NL Warriors artwork. */
:root {
    color-scheme: dark;
    --bg: #0b0a08;
    --bg-raised: #15130f;
    --bg-card: #1b1813;
    --border: #3a3122;
    --text: #ece6d8;
    --text-muted: #a69c88;
    --gold: #e2b54a;
    --gold-light: #f6d77c;
    --gold-dark: #9a7424;
    --radius: 10px;
    --font-body: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-display: "Trajan Pro", "Cinzel", Georgia, "Times New Roman", serif;
}

*, *::before, *::after {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
}

body {
    background:
        radial-gradient(ellipse at top, rgba(226, 181, 74, 0.10), transparent 60%),
        var(--bg);
    min-height: 100vh;
}

a {
    color: var(--gold-light);
    text-decoration: none;
}

    a:hover {
        color: var(--gold);
        text-decoration: underline;
    }

h1, h2, h3 {
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    line-height: 1.2;
    margin: 0 0 0.6em;
}

h1 {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    background: linear-gradient(180deg, var(--gold-light), var(--gold) 55%, var(--gold-dark));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

h2 {
    font-size: 1.35rem;
    color: var(--gold);
    border-bottom: 1px solid var(--border);
    padding-bottom: 0.35em;
}

h3 {
    font-size: 1rem;
    color: var(--text);
}

    h1:focus {
        outline: none;
    }

p {
    margin: 0 0 1em;
}

.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding-inline: 16px;
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(11, 10, 8, 0.92);
    backdrop-filter: blur(6px);
    border-bottom: 1px solid var(--border);
}

    .site-header .container {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
        min-height: 60px;
        flex-wrap: wrap;
    }

.brand {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: 0.12em;
    color: var(--gold);
    text-transform: uppercase;
}

    .brand:hover {
        color: var(--gold-light);
        text-decoration: none;
    }

.site-nav {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
}

    .site-nav a {
        color: var(--text-muted);
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.08em;
        font-size: 0.85rem;
    }

        .site-nav a:hover, .site-nav a.active {
            color: var(--gold-light);
            text-decoration: none;
        }

/* Main content */
main {
    padding-block: 2rem 3rem;
}

section {
    margin-bottom: 2.5rem;
}

/* Hero */
.hero {
    text-align: center;
}

    .hero img {
        display: block;
        width: 100%;
        max-width: 900px;
        height: auto;
        margin: 0 auto 1.5rem;
        border-radius: var(--radius);
        border: 1px solid var(--border);
        box-shadow: 0 0 40px rgba(226, 181, 74, 0.18), 0 10px 30px rgba(0, 0, 0, 0.6);
    }

    .hero .lead {
        font-size: 1.15rem;
        color: var(--text-muted);
        max-width: 650px;
        margin-inline: auto;
    }

.notice {
    display: inline-block;
    padding: 0.35rem 0.9rem;
    border: 1px solid var(--gold-dark);
    border-radius: 999px;
    color: var(--gold-light);
    font-size: 0.85rem;
    letter-spacing: 0.05em;
}

/* Buttons */
.button-row {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1.25rem;
}

.button {
    display: inline-block;
    padding: 0.6rem 1.3rem;
    border-radius: 6px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-size: 0.85rem;
    border: 1px solid var(--gold);
    color: var(--gold-light);
    background: transparent;
}

    .button:hover {
        background: rgba(226, 181, 74, 0.12);
        color: var(--gold-light);
        text-decoration: none;
    }

    .button.primary {
        background: linear-gradient(180deg, var(--gold-light), var(--gold) 60%, var(--gold-dark));
        color: #1a1407;
        border-color: var(--gold);
    }

        .button.primary:hover {
            filter: brightness(1.08);
            color: #1a1407;
        }

/* Clan cards */
.clan-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
}

.clan-card {
    background: linear-gradient(180deg, var(--bg-card), var(--bg-raised));
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem 1.1rem;
    transition: border-color 0.15s, box-shadow 0.15s;
}

    .clan-card:hover {
        border-color: var(--gold-dark);
        box-shadow: 0 0 18px rgba(226, 181, 74, 0.12);
    }

    .clan-card h3 {
        margin-bottom: 0.25rem;
    }

    .clan-card .tag {
        color: var(--text-muted);
        font-family: ui-monospace, Consolas, monospace;
        font-size: 0.85rem;
    }

    .clan-card a {
        font-size: 0.85rem;
    }

/* Footer */
.site-footer {
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.85rem;
    padding-block: 1.5rem;
}

    .site-footer .container {
        display: flex;
        justify-content: space-between;
        gap: 1rem;
        flex-wrap: wrap;
    }

/* Blazor defaults */
.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e5484d;
}

.validation-message {
    color: #e5484d;
}

.blazor-error-boundary {
    background: #b32121;
    padding: 1rem 1rem 1rem 1.5rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "Er is een fout opgetreden."
    }

.clan-card .league {
    color: var(--gold);
    font-size: 0.9rem;
    font-weight: 600;
}
