/* RESET */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #0b0e12;
    color: #e3e6ed;
    line-height: 1.5;
}

/* TOPBAR + FLAGI */
.topbar {
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background: linear-gradient(to right, #141b28, #0b0e12);
    position: sticky;
    top: 0;
    z-index: 50;
}

.topbar-inner {
    max-width: 1250px;
    margin: 0 auto;
    padding: 8px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.topbar-title a {
    font-size: 18px;
    font-weight: 600;
    color: #f9d27d;
    text-decoration: none;
}

.lang-switch {
    display: flex;
    gap: 8px;
}

.lang-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    font-size: 18px;
    background: rgba(5, 7, 11, 0.8);
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #e3e6ed;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.05s, border-color 0.15s;
    text-decoration: none;
}

.lang-btn span {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.lang-btn:hover {
    background: rgba(249, 210, 125, 0.15);
}

.lang-btn.active {
    border-color: #f9d27d;
    background: rgba(249, 210, 125, 0.18);
}

/* LAYOUT */
.layout {
    display: flex;
    min-height: calc(100vh - 46px);
}

/* SIDEBAR */
.sidebar {
    width: 260px;
    background: radial-gradient(circle at top, #1a2434, #05070b);
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    padding: 24px 18px;
    position: sticky;
    top: 46px;
    align-self: flex-start;
    max-height: calc(100vh - 46px);
    overflow-y: auto;
}

.logo {
    margin-bottom: 24px;
}

.logo-title {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #f9d27d;
}

.logo-subtitle {
    font-size: 12px;
    color: #aab4c8;
}

.nav-toggle {
    display: none;
    margin-bottom: 12px;
    padding: 8px 10px;
    background: #151b26;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #e3e6ed;
    border-radius: 6px;
    cursor: pointer;
}

/* NAV */
.nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.nav a {
    font-size: 14px;
    color: #c3cbe0;
    text-decoration: none;
    padding: 6px 10px;
    border-radius: 6px;
    transition: background 0.15s ease, color 0.15s ease, transform 0.05s;
}

.nav a:hover {
    background: rgba(249, 210, 125, 0.08);
    color: #f9d27d;
    transform: translateX(2px);
}

.nav a.active {
    background: rgba(249, 210, 125, 0.16);
    color: #f9d27d;
}

/* CONTENT */
.content {
    flex: 1;
    padding: 28px 32px 40px;
    max-width: 1100px;
    margin: 0 auto;
}

.section {
    margin-bottom: 40px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.section:last-of-type {
    border-bottom: none;
}

.section h1,
.section h2 {
    margin-bottom: 12px;
    color: #f9d27d;
}

.section h3, .section h4 {
    margin-top: 16px;
    margin-bottom: 6px;
    color: #e9edf6;
}

p {
    margin-bottom: 10px;
    color: #cbd3e6;
}

ul, ol {
    margin-left: 18px;
    margin-bottom: 10px;
}

li {
    margin-bottom: 4px;
}

/* BOX / GRID */
.info-box {
    margin-top: 12px;
    padding: 16px 18px;
    border-radius: 10px;
    background: rgba(13, 19, 31, 0.9);
    border: 1px solid rgba(249, 210, 125, 0.25);
}

.grid {
    display: grid;
    gap: 14px;
    margin-top: 10px;
}

.grid.two-cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card {
    background: rgba(13, 19, 31, 0.8);
    border-radius: 10px;
    padding: 14px 16px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

/* FOOTER */
.footer {
    margin-top: 40px;
    font-size: 13px;
    color: #8f9abb;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 12px;
}

/* CODE */
code {
    background: rgba(0, 0, 0, 0.4);
    padding: 1px 4px;
    border-radius: 4px;
    font-size: 90%;
}

/* LINKS */
.section a {
    color: #f3c96b;
    text-decoration: underline;
    text-decoration-thickness: 1px;
}

.section a:hover {
    text-decoration: none;
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .layout {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        max-height: none;
        position: static;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
        top: 0;
    }

    .nav-toggle {
        display: block;
    }

    .nav {
        margin-top: 6px;
        display: none;
    }

    .nav.open {
        display: flex;
    }

    .content {
        padding: 18px 16px 30px;
    }

    .grid.two-cols {
        grid-template-columns: 1fr;
    }

    .topbar-inner {
        padding: 6px 12px;
    }
}

/* ========== ACCORDION ========== */
.accordion {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.accordion-item {
    background: rgba(13, 19, 31, 0.9);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.accordion-item.open {
    border-color: rgba(249, 210, 125, 0.5);
    box-shadow: 0 0 0 1px rgba(249, 210, 125, 0.15);
}

.accordion-header {
    width: 100%;
    background: transparent;
    border: none;
    color: #e3e6ed;
    padding: 10px 14px;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
}

.accordion-header:hover {
    background: rgba(249, 210, 125, 0.08);
}

.accordion-icon {
    font-weight: 700;
    font-size: 18px;
    transform: rotate(0deg);
    transition: transform 0.15s ease;
}

.accordion-item.open .accordion-icon {
    transform: rotate(45deg);
}

.accordion-body {
    max-height: 0;
    overflow: hidden;
    padding: 0 16px;
    transition: max-height 0.2s ease, padding 0.2s ease;
}

.accordion-item.open .accordion-body {
    padding: 10px 16px 14px;
    max-height: 2000px;
}
