/* ── Container ── */
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

/* ── Top bar ── */
.top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
}

.top-bar-logo {
    height: 2.0em;
    vertical-align: middle;
    margin-right: 0.4em;
    background: #fff;
    padding: 2px;
    border-radius: 3px;
}

.top-bar-title {
    font-family: 'Cinzel', 'Bitter', serif;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--gold);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-shadow: 0 0 20px var(--gold-glow);
}

/* ── Theme toggle ── */
.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

.theme-toggle::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, var(--violet), var(--gold), var(--emerald), var(--violet));
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s;
}

.theme-toggle:hover::before {
    opacity: 0.5;
}

.theme-toggle:hover {
    border-color: var(--violet-border);
    box-shadow: 0 0 20px var(--violet-glow), 0 0 40px var(--violet-glow);
}

.theme-toggle svg {
    width: 18px;
    height: 18px;
    fill: var(--gold);
    transition: fill 0.2s, transform 0.4s;
}

.theme-toggle:hover svg {
    fill: var(--text-primary);
    transform: rotate(15deg);
}

/* Default dark: show moon, hide sun */
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }

/* Light: show sun, hide moon */
[data-theme="light"] .theme-toggle .icon-sun { display: block; }
[data-theme="light"] .theme-toggle .icon-moon { display: none; }
