/* Nakios.org — Design inspired by nakios.click */

:root {
    --bg: #000000;
    --bg2: #090909;
    --bg3: #141414;
    --accent: #f97316;
    --accent-h: #fb923c;
    --premium: #9333ea;
    --text: #e2e8f0;
    --muted: #94a3b8;
    --dim: #64748b;
    --border: rgba(255, 255, 255, 0.1);
    --green: #10b981;
    --radius: 8px;
    --font-h: "Sora", sans-serif;
    --font-b: "DM Sans", sans-serif;
    --max-w: 860px;
    --header-h: 72px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-b);
    font-size: 16px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.2s;
}
a:hover {
    color: var(--accent-h);
    text-decoration: underline;
}

/* ─── Header ─── */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    min-height: var(--header-h);
    --header-max-w: 1180px;
    padding-inline: max(18px, calc((100vw - var(--header-max-w)) / 2));
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    background: rgba(0, 0, 0, 0.82);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.site-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    font-family: var(--font-h);
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    flex: 0 0 auto;
}

.site-logo:hover {
    color: #fff;
    text-decoration: none;
}

.site-logo img {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 0 22px rgba(249, 115, 22, 0.32);
}

.site-nav {
    display: flex;
    justify-content: flex-end;
    flex: 1 1 auto;
}

.site-nav ul {
    display: flex;
    gap: 6px;
    list-style: none;
    align-items: center;
    padding: 0;
    margin: 0;
}

.site-nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    color: rgba(255, 255, 255, 0.62);
    font-family: var(--font-h);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 9px 12px;
    border-radius: 8px;
    transition: color 0.2s, background-color 0.2s, border-color 0.2s, transform 0.2s;
}

.site-nav a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    text-decoration: none;
}

.site-nav li:nth-child(4) a {
    color: #fff;
    background: #f97316;
    box-shadow: 0 0 26px rgba(249, 115, 22, 0.28);
}

.site-nav li:nth-child(4) a:hover {
    background: #fb923c;
    transform: translateY(-1px);
}

.nav-toggle {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.nav-toggle-label {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    background: rgba(255, 255, 255, 0.05);
    cursor: pointer;
}

.nav-toggle-label span {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: #fff;
    transition: transform 0.2s, opacity 0.2s;
}

.nav-toggle:checked + .nav-toggle-label span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle:checked + .nav-toggle-label span:nth-child(2) {
    opacity: 0;
}

.nav-toggle:checked + .nav-toggle-label span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.nav-toggle:focus-visible + .nav-toggle-label {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

.site-nav a[aria-current="page"] {
    color: #fff;
    background: rgba(147, 51, 234, 0.2);
    border: 1px solid rgba(147, 51, 234, 0.35);
}

main > section:first-of-type p:last-child a {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    margin: 4px 6px 4px 0;
    padding: 9px 14px;
    color: #fff;
    background: var(--accent);
    border-radius: 8px;
    font-family: var(--font-h);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

main > section:first-of-type p:last-child a:hover {
    background: var(--accent-h);
    text-decoration: none;
}

/* ─── Breadcrumb ─── */
main > nav[aria-label^="Fil d"] {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 14px 20px 0;
}
main > nav[aria-label^="Fil d"] ol {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    list-style: none;
    font-size: 0.82rem;
    color: var(--dim);
}
main > nav[aria-label^="Fil d"] li + li::before {
    content: "›";
    margin-right: 4px;
}
main > nav[aria-label^="Fil d"] a {
    color: var(--muted);
}
main > nav[aria-label^="Fil d"] a:hover {
    color: var(--text);
}

/* ─── Main content ─── */
main {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 20px 60px;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-h);
    color: #fff;
    line-height: 1.3;
}

h1 {
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    font-weight: 800;
    margin: 36px 0 18px;
}

h2 {
    font-size: clamp(1.15rem, 2.5vw, 1.5rem);
    font-weight: 700;
    margin-bottom: 14px;
}

h3 {
    font-size: 1.05rem;
    font-weight: 600;
}

p {
    margin-bottom: 14px;
    color: var(--text);
}
p:last-child {
    margin-bottom: 0;
}

/* ─── Sections ─── */
section {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 28px 24px;
    margin-top: 24px;
    transition: border-color 0.25s;
}
section:hover {
    border-color: rgba(147, 51, 234, 0.35);
}

/* ─── Lists ─── */
ul,
ol {
    padding-left: 1.4em;
    margin-bottom: 12px;
}
li {
    margin-bottom: 6px;
}
li:last-child {
    margin-bottom: 0;
}

/* ─── Tables ─── */
table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    margin-top: 8px;
}
caption {
    font-size: 0.82rem;
    color: var(--dim);
    text-align: left;
    margin-bottom: 10px;
}
th {
    font-family: var(--font-h);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--muted);
    padding: 10px 14px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}
td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--border);
    color: var(--text);
    vertical-align: top;
}
tr:last-child td {
    border-bottom: none;
}
tbody tr:hover td {
    background: var(--bg3);
}

/* ─── details / summary (FAQ) ─── */
details {
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0;
    margin-top: 10px;
    background: var(--bg3);
    overflow: hidden;
    transition: border-color 0.2s;
}
details:hover {
    border-color: rgba(147, 51, 234, 0.4);
}
details[open] {
    border-color: var(--premium);
}

summary {
    cursor: pointer;
    font-family: var(--font-h);
    font-weight: 600;
    font-size: 0.95rem;
    color: #fff;
    padding: 14px 18px;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    user-select: none;
}
summary::-webkit-details-marker {
    display: none;
}
summary::after {
    content: "+";
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--accent);
    transition: transform 0.2s;
}
details[open] summary::after {
    transform: rotate(45deg);
}

details p {
    padding: 0 18px 16px;
    margin: 0;
    font-size: 0.92rem;
    color: var(--muted);
}

/* ─── Footer ─── */
footer {
    border-top: 1px solid var(--border);
    background: #050505;
    padding: 40px 20px 30px;
    margin-top: 60px;
    font-size: 0.88rem;
    color: var(--dim);
}

footer > * {
    max-width: var(--max-w);
    margin-left: auto;
    margin-right: auto;
}

footer h2 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--muted);
    margin-bottom: 10px;
}

footer p {
    color: var(--dim);
    margin-bottom: 10px;
}
footer strong {
    color: var(--muted);
}

footer ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px 16px;
    margin-bottom: 16px;
}
footer li {
    margin: 0;
}
footer a {
    color: var(--dim);
    font-size: 0.85rem;
}
footer a:hover {
    color: var(--accent);
    text-decoration: none;
}

footer section {
    background: none;
    border: none;
    border-radius: 0;
    padding: 0;
    margin: 0 auto 28px;
}
footer section:hover {
    border-color: transparent;
}

footer nav ul {
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 16px;
}

/* ─── Responsive ─── */
@media (max-width: 640px) {
    .site-header {
        min-height: 64px;
        padding: 0 16px;
    }

    .site-logo img {
        width: 34px;
        height: 34px;
    }

    .site-logo span {
        font-size: 0.82rem;
        letter-spacing: 0.14em;
    }

    .nav-toggle-label {
        display: flex;
    }

    .site-nav {
        position: fixed;
        left: 12px;
        right: 12px;
        top: 76px;
        display: block;
        padding: 10px;
        background: rgba(10, 10, 10, 0.96);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 8px;
        box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
        backdrop-filter: blur(22px);
        -webkit-backdrop-filter: blur(22px);
        opacity: 0;
        pointer-events: none;
        transform: translateY(-10px);
        transition: opacity 0.2s, transform 0.2s;
    }

    .nav-toggle:checked ~ .site-nav {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }

    .site-nav ul {
        display: grid;
        gap: 4px;
    }

    .site-nav a {
        justify-content: flex-start;
        width: 100%;
        min-height: 46px;
        padding: 12px 14px;
        color: rgba(255, 255, 255, 0.74);
        background: rgba(255, 255, 255, 0.03);
    }

    .site-nav li:nth-child(4) a {
        justify-content: center;
        margin-top: 6px;
    }
    main {
        padding: 0 16px 48px;
    }
    section {
        padding: 20px 18px;
    }
    th,
    td {
        padding: 10px 10px;
    }
    summary {
        padding: 12px 14px;
        font-size: 0.9rem;
    }
}
