/* ========================================
   LEGION OESTE — SHARED STYLESHEET
   Performance-optimized, no heavy blur/particles
   ======================================== */

@import url('https://fonts.cdnfonts.com/css/chinese-rocks');
@import url('https://fonts.googleapis.com/css2?family=Roboto+Condensed:ital,wght@0,300;0,400;0,700;1,400&family=Oswald:wght@400;600;700&display=swap');

/* ===== RESET & BASE ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto Condensed', sans-serif;
    font-weight: 400;
    background-color: #080604;
    background-image:
        radial-gradient(ellipse at 50% 0%, rgba(120, 68, 0, 0.22) 0%, transparent 60%),
        radial-gradient(ellipse at 0% 100%, rgba(80, 44, 0, 0.10) 0%, transparent 45%);
    background-attachment: fixed;
    color: #d8d0c5;
    min-height: 100vh;
    line-height: 1.75;
    overflow-x: hidden;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #0d0a06; }
::-webkit-scrollbar-thumb { background: #5a3d18; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #8b6022; }

/* ===== NAVBAR ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(5, 3, 1, 0.97);
    border-bottom: 1px solid #3a2800;
    box-shadow: 0 2px 20px rgba(0,0,0,0.8);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 36px;
    height: 62px;
}

.navbar-brand {
    font-family: 'Chinese Rocks', 'Oswald', sans-serif;
    font-weight: 700;
    font-size: 1.3rem;
    color: #c8922a;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    white-space: nowrap;
    text-decoration: none;
    flex-shrink: 0;
}

.navbar-brand:hover { color: #f0a82a; }

.navbar-links {
    display: flex;
    align-items: center;
    gap: 0;
    list-style: none;
    flex-wrap: nowrap;
    overflow-x: auto;
}

.navbar-links li a,
.navbar-links li span {
    font-family: 'Roboto Condensed', sans-serif;
    font-weight: 700;
    font-size: 0.76rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    padding: 0 13px;
    height: 62px;
    display: flex;
    align-items: center;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: color 0.2s, border-color 0.2s;
    cursor: pointer;
    white-space: nowrap;
}

.navbar-links li a:hover,
.navbar-links li span:hover,
.navbar-links li a.active {
    color: #c8922a;
    border-bottom-color: #c8922a;
}

.navbar-divider {
    width: 1px;
    height: 24px;
    background: #2a1e00;
    margin: 0 3px;
    flex-shrink: 0;
}

.navbar-cta {
    font-family: 'Roboto Condensed', sans-serif !important;
    font-weight: 700 !important;
    font-size: 0.76rem !important;
    color: #0a0500 !important;
    background: linear-gradient(135deg, #e8a020, #b86c0c);
    border-radius: 2px;
    padding: 7px 16px !important;
    height: auto !important;
    border-bottom: none !important;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    transition: box-shadow 0.2s, filter 0.2s !important;
    margin-left: 8px;
    text-decoration: none;
}

.navbar-cta:hover {
    filter: brightness(1.15);
    color: #0a0500 !important;
    border-bottom: none !important;
}

.navbar-toggle {
    display: none;
    background: none;
    border: 1px solid #3a2800;
    color: #c8922a;
    font-size: 1.4rem;
    padding: 5px 10px;
    cursor: pointer;
    border-radius: 3px;
    line-height: 1;
}

/* ===== MAIN LAYOUT PATTERNS ===== */

/* Full-width pages (index) */
.page-container {
    position: relative;
    width: 100%;
    padding: 80px 50px 50px;
}

/* Sidebar layout (lore, regras, codigo-penal) */
.sidebar-layout {
    display: flex;
    gap: 28px;
    align-items: flex-start;
    width: 100%;
    padding: 80px 50px 50px;
}

.sidebar-nav {
    width: 240px;
    flex-shrink: 0;
    position: sticky;
    top: 78px;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    background: #0f0c07;
    border: 1px solid #2e2000;
    border-radius: 10px;
    padding: 20px 16px;
}

.sidebar-nav::-webkit-scrollbar { width: 5px; }
.sidebar-nav::-webkit-scrollbar-thumb { background: #4a3010; border-radius: 3px; }

.sidebar-nav-title {
    font-family: 'Chinese Rocks', 'Oswald', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    color: #c8922a;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid #2e2000;
    text-align: center;
}

.sidebar-nav ul {
    list-style: none;
}

.sidebar-nav ul li a {
    display: block;
    color: #777;
    text-decoration: none;
    padding: 6px 10px;
    font-size: 0.82rem;
    border-left: 2px solid transparent;
    transition: color 0.2s, border-color 0.2s, padding-left 0.2s;
    line-height: 1.4;
    border-radius: 0 3px 3px 0;
}

.sidebar-nav ul li a:hover,
.sidebar-nav ul li a.active {
    color: #c8922a;
    border-left-color: #c8922a;
    background: rgba(200, 146, 42, 0.06);
    padding-left: 14px;
}

.content-area {
    flex: 1;
    min-width: 0;
}

/* ===== PAGE HEADER ===== */
.page-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 36px 30px;
    background: #0d0a06;
    border: 1px solid #2e2000;
    border-radius: 12px;
}

.page-header h1 {
    font-family: 'Chinese Rocks', 'Oswald', sans-serif;
    font-weight: 700;
    font-size: clamp(2rem, 4vw, 3.2rem);
    color: #e8a020;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 10px;
    text-shadow: 0 0 40px rgba(232, 160, 32, 0.4), 2px 2px 6px rgba(0,0,0,0.9);
}

.page-header p {
    font-size: 0.9rem;
    color: #666;
    letter-spacing: 0.25em;
    text-transform: uppercase;
}

/* ===== CONTENT CARDS ===== */
.card {
    background: #0d0a06;
    border: 1px solid #2a1c00;
    border-radius: 12px;
    padding: 40px;
    margin-bottom: 24px;
    scroll-margin-top: 80px;
}

.card h2 {
    font-family: 'Chinese Rocks', 'Oswald', sans-serif;
    font-weight: 700;
    font-size: clamp(1.4rem, 2.5vw, 2rem);
    color: #e8a020;
    text-transform: uppercase;
    margin-bottom: 22px;
    padding-bottom: 14px;
    border-bottom: 1px solid #2e2000;
    letter-spacing: 0.1em;
}

.card h3 {
    font-family: 'Chinese Rocks', 'Oswald', sans-serif;
    font-weight: 600;
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    color: #c8922a;
    text-transform: uppercase;
    margin: 26px 0 12px;
    letter-spacing: 0.08em;
    scroll-margin-top: 80px;
}

.card h4 {
    font-family: 'Roboto Condensed', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    color: #b87a20;
    text-transform: uppercase;
    margin: 18px 0 8px;
    letter-spacing: 0.06em;
}

.card p {
    color: #998870;
    font-size: 1.02em;
    margin-bottom: 14px;
    text-align: justify;
    line-height: 1.8;
}

.card ul,
.card ol {
    color: #998870;
    font-size: 1.02em;
    margin-left: 26px;
    margin-bottom: 16px;
}

.card li {
    margin-bottom: 8px;
    line-height: 1.6;
}

/* ===== CALLOUT BOXES ===== */
.callout {
    border-left: 3px solid #c8922a;
    background: rgba(200, 146, 42, 0.06);
    padding: 16px 20px;
    margin: 20px 0;
    border-radius: 0 6px 6px 0;
}

.callout p {
    margin-bottom: 0;
    font-style: italic;
    color: #aa8852 !important;
}

.callout-warn {
    border-left-color: #c84a4a;
    background: rgba(200, 74, 74, 0.07);
}

.callout-warn p, .callout-warn ul, .callout-warn li {
    color: #c07070 !important;
}

.callout-critical {
    border: 2px solid #c84a4a;
    background: rgba(200, 74, 74, 0.1);
    border-radius: 6px;
    padding: 20px;
    margin: 20px 0;
    text-align: center;
}

.callout-critical h3 {
    color: #e06060 !important;
    margin-top: 0 !important;
}

/* ===== ARTICLE BOX (constituicao) ===== */
.article-box {
    background: rgba(200, 146, 42, 0.03);
    border: 1px solid #2e2000;
    border-radius: 8px;
    padding: 20px;
    margin: 16px 0;
}

.article-box h4 {
    color: #c8922a;
    font-family: 'Chinese Rocks', 'Oswald', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 10px;
}

/* ===== FOOTER ===== */
.site-footer {
    text-align: center;
    margin-top: 50px;
    padding: 28px;
    color: #3a2a10;
    font-size: 0.85em;
    letter-spacing: 0.2em;
    border-top: 1px solid #1e1600;
    text-transform: uppercase;
}

/* ===== MUSIC PLAYER ===== */
.music-player {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: #0a0703;
    border: 1px solid #3a2800;
    border-radius: 12px;
    padding: 14px 18px;
    box-shadow: 0 6px 24px rgba(0,0,0,0.9);
    z-index: 999;
    min-width: 250px;
    transition: all 0.3s ease;
}

.music-player.minimized {
    min-width: 0;
    width: auto;
    padding: 10px 14px;
}

.music-player.minimized .player-body {
    display: none;
}

.player-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
}

.music-player.minimized .player-header {
    margin-bottom: 0;
}

.player-title {
    font-family: 'Chinese Rocks', 'Oswald', sans-serif;
    font-weight: 600;
    color: #c8922a;
    font-size: 0.9rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    white-space: nowrap;
}

.player-min-btn {
    background: none;
    border: 1px solid #3a2800;
    color: #666;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s;
    padding: 0;
    line-height: 1;
}

.player-min-btn:hover {
    border-color: #c8922a;
    color: #c8922a;
}

.vinyl-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 14px;
}

.vinyl {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: conic-gradient(#1a0e04 0%, #2a1808 20%, #1a0e04 40%, #2a1808 60%, #1a0e04 80%, #2a1808 100%);
    border: 3px solid #3a2400;
    position: relative;
}

.vinyl::after {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    background: #c8922a;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 2px solid #0d0a06;
}

@keyframes spin-vinyl {
    100% { transform: rotate(360deg); }
}

.vinyl.playing {
    animation: spin-vinyl 3s linear infinite;
}

.player-controls {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 12px;
}

.ctrl-btn {
    background: #1a1106;
    border: 1px solid #3a2800;
    color: #c8922a;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.ctrl-btn:hover {
    background: #2a1a08;
    border-color: #c8922a;
    transform: scale(1.08);
}

.vol-ctrl {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 4px;
}

.vol-label {
    color: #555;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
}

.vol-slider {
    flex: 1;
    height: 3px;
    background: #2a1800;
    border-radius: 2px;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.vol-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    background: #c8922a;
    border-radius: 50%;
    cursor: pointer;
}

.vol-slider::-moz-range-thumb {
    width: 12px;
    height: 12px;
    background: #c8922a;
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

/* ===== SECTION TITLE ===== */
.section-title {
    font-family: 'Chinese Rocks', 'Oswald', sans-serif;
    font-weight: 700;
    font-size: clamp(1.5rem, 2.5vw, 2.2rem);
    color: #e8a020;
    text-align: center;
    margin-bottom: 28px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    padding-bottom: 14px;
    border-bottom: 1px solid #2a1c00;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 960px) {
    .navbar { padding: 0 18px; }
    .navbar-toggle { display: block; }
    .navbar-links {
        display: none;
        position: absolute;
        top: 62px;
        left: 0;
        width: 100%;
        flex-direction: column;
        background: rgba(5, 3, 1, 0.99);
        border-top: 1px solid #2e2000;
        padding: 8px 0;
        overflow-x: hidden;
    }
    .navbar-links.open { display: flex; }
    .navbar-links li a,
    .navbar-links li span {
        height: 44px;
        padding: 0 22px;
        border-bottom: none;
        border-left: 2px solid transparent;
        width: 100%;
        justify-content: flex-start;
    }
    .navbar-links li a:hover,
    .navbar-links li a.active { border-left-color: #c8922a; border-bottom: none; }
    .navbar-divider { display: none; }
    .navbar-cta { margin: 6px 22px !important; width: calc(100% - 44px) !important; justify-content: center !important; }

    .sidebar-layout { flex-direction: column; padding: 72px 18px 40px; }
    .sidebar-nav { display: none; }
    .page-container { padding: 72px 18px 40px; }
    .card { padding: 24px 18px; }
    .page-header { padding: 28px 16px; }
}

@media (max-width: 600px) {
    .music-player { bottom: 16px; right: 16px; min-width: 220px; }
}
