:root {
    --fg: #c9c3c3;
    --hv: #ffffff
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: #808080;
    color: var(--fg);
}

/* Container used in layout */
.container {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header + navigation*/
.site-header {
    background: #000000;
    position: sticky;
    top: 0;
    z-index: 20;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    padding: 0.5rem 0.5rem;
}

.brand {
    font-weight: bold;
    margin: 0;
    white-space: nowrap;
}

.main-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
    .main-nav a {
        color: var(--fg);
        text-decoration: none;
        font-size: 0.95rem;
        padding: 0.25rem 0.6rem;
        border-radius: 9999px;
        border: 1px solid transparent;
        transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
    }


    .main-nav a:hover {
        color: var(--hv);
        border-color: var(--hv);
    }

/* Smaller header on mobile */
@media (max-width: 600px) {
    .header-inner {
        flex-direction: column;
        align-items: flex-start;
    }
}

/*Buttons (shared)*/
.button,
.button.primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    padding: 0.35rem 0.9rem;
    border-radius: 9999px;
    border: 1px solid var(--fg);
    color: var(--fg);
    background: #000000;
    font-weight:bold;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}

    .button.primary {
        border-color: var(--fg);
        color: var(--fg);
    }

    .button:hover {
        transform: translateY(-1px);
        border-color: var(--hv);
        color: var(--hv);
    }

    /* Generic icon-only arrow buttons (for pagination) */
    .button.icon {
        width: 2rem;
        height: 2rem;
        padding: 0;
        font-size:large;
        font-weight:bold;
    }

/*Global loading overlay8*/
.loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    display: none; /* JS toggles to flex */
    align-items: center;
    justify-content: center;
    z-index: 999;
}

.loading-box {
    background: #020617;
    padding: 1.1rem 1.6rem;
    border-radius: 0.75rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.85);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.65rem;
}

.loading-spinner {
    width: 28px;
    height: 28px;
    border-radius: 9999px;
    border: 3px solid rgba(148, 163, 184, 0.5);
    border-top-color: var(--accent);
    animation: spin 0.7s linear infinite;
}

.loading-text {
    font-size: 0.95rem;
    color: var(--fg);
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}


