/* Shared site theme and navigation */
:root {
    color-scheme: dark;
    --site-background: #000000;
    --site-header-background: #080808;
    --site-accent: #e5a00d;
    --site-border: #1c1c1c;
    --site-panel: #111318;
}

html {
    background-color: var(--site-background);
    overflow-y: scroll;
    scrollbar-gutter: stable both-edges;
}

body.site-page {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    background: var(--site-background);
    color: #ffffff;
    font-family: Arial, Tahoma, Helvetica, sans-serif;
    text-align: left;
}

body.site-page .box { margin: 30px auto; }

body.site-page .error-page {
    display: flex;
    flex: 1 0 auto;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    text-align: center;
}

.site-header {
    width: 100%;
    flex: 0 0 auto;
    background: var(--site-header-background);
    border-bottom: 1px solid var(--site-border);
    line-height: normal;
}

.site-header .header-bar {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 14px;
}

.site-header .header-left-group {
    display: flex;
    grid-column: 1;
    align-items: center;
    gap: 30px;
}

.site-header .logo {
    display: inline-block;
    margin: 0;
    color: #ffffff;
    font-size: 2.4rem;
    font-weight: 900;
    letter-spacing: -1.5px;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
}

.site-header .logo span { color: var(--site-accent); }

.site-header .search-area {
    display: flex;
    grid-column: 2;
    align-items: center;
    justify-self: center;
    width: 430px;
    padding: 3px;
    background: #1a1e26;
    border: 1px solid #3a404b;
    border-radius: 9px;
    transition: border-color .2s, box-shadow .2s;
}

.site-header .search-area:focus-within {
    border-color: var(--site-accent);
    box-shadow: 0 0 0 3px rgba(229, 160, 13, .12);
}

.site-header .search-icon { padding: 0 8px; color: #a3a8b2; font-size: 1.1rem; }

.site-header .search-input {
    flex: 1;
    min-width: 0;
    width: 100%;
    padding: 6px 4px;
    border: 0;
    outline: 0;
    background: transparent;
    color: #ffffff;
    font: inherit;
    font-size: .85rem;
}

.site-header .search-input::placeholder { color: #969eaa; }

.site-header .search-btn {
    padding: 8px 14px;
    border: 1px solid var(--site-accent);
    border-radius: 6px;
    background: var(--site-accent);
    color: #000000;
    cursor: pointer;
    font-size: .85rem;
    font-weight: 900;
    text-transform: uppercase;
}

.site-header .search-btn:hover { background: #ffb82e; border-color: #ffb82e; }

.site-header .category-bar-lower {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 16px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 8px 14px;
    border-top: 1px solid #1c1f26;
}

.site-header .cat-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 8px;
    border: 0;
    border-radius: 4px;
    background: transparent;
    color: var(--site-accent);
    cursor: pointer;
    font-family: inherit;
    font-size: .75rem;
    font-weight: bold;
    letter-spacing: .5px;
    text-decoration: none;
    text-transform: uppercase;
    transition: background-color .2s, color .2s;
}

.site-header .cat-item:hover { background: #151515; color: #ffffff; }
.site-header .cat-icon { font-size: 1rem; line-height: 1; }

.site-footer {
    width: 100%;
    flex: 0 0 auto;
    margin-top: 40px;
    padding: 24px 14px;
    border-top: 1px solid var(--site-border);
    background: var(--site-header-background);
    color: #666666;
    font-size: .75rem;
    text-align: center;
}

.site-footer .footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    margin-bottom: 10px;
}

.site-footer .footer-links a { color: #888888; text-decoration: none; }
.site-footer .footer-links a:hover { color: var(--site-accent); text-decoration: underline; }
.site-footer p { margin: 0; color: inherit; }

.category-card.fu10-category:not(.has-image) {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 170px;
    background: linear-gradient(135deg, #111318, #201a0d);
    color: var(--site-accent);
    font-size: 1.5rem;
    letter-spacing: .08em;
}

@media (max-width: 960px) {
    .site-header .header-bar {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .site-header .header-left-group { width: 100%; justify-content: space-between; gap: 16px; }
    .site-header .search-area { width: 100%; justify-content: center; }
}

@media (max-width: 600px) {
    .site-header .header-left-group { flex-direction: column; align-items: flex-start; }
    .site-header .category-bar-lower { width: 100%; justify-content: space-between; gap: 6px; }
    .site-header .cat-item { gap: 4px; padding: 6px 4px; font-size: .68rem; }
}
