/* ==========================================================================
   NEXORIA-ROLEPLAY - FINAL FULL STYLESHEET 2026
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;700;900&display=swap');
:root {
    --p-pink: #554af7;
    --p-red: #1201f3;
    --p-orange: #544cca;
    --p-dark: #1a1a1a;
    --p-bg: #111111;
    --grad: linear-gradient(135deg, var(--p-red), var(--p-orange));
    --grad-scroll: linear-gradient(180deg, var(--p-pink), var(--p-red), var(--p-orange));
}


/* --- RESET I ZABEZPIECZENIA --- */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scrollbar-width: thin;
    scrollbar-color: var(--p-red) transparent;
}

::-webkit-scrollbar {
    width: 6px;
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--grad-scroll);
    border-radius: 10px;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--p-dark);
    color: white;
    line-height: 1.6;
    overflow-x: hidden;
    scrollbar-gutter: stable;
    /* BLOKADA ZAZNACZANIA */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}


/* --- OCHRONA OBRAZKÓW --- */

img {
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    pointer-events: none;
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}


/* --- NAVBAR --- */

.navbar {
    height: 80px;
    background: rgba(17, 17, 17, 0.95);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    overflow: visible;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0 40px;
    overflow: visible;
}

.nav-logo img {
    height: 50px;
    pointer-events: none;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 25px;
    align-items: center;
    overflow: visible;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    transition: 0.3s;
    pointer-events: auto;
}

.nav-links a:hover {
    color: var(--p-red);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 22px;
    cursor: pointer;
}

.menu-toggle .bar {
    display: block;
    width: 100%;
    height: 3px;
    background: white;
    border-radius: 999px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.menu-toggle.is-active .bar:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.menu-toggle.is-active .bar:nth-child(2) {
    opacity: 0;
}

.menu-toggle.is-active .bar:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

.dropdown {
    position: relative;
    overflow: visible;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 220px;
    background: rgba(17, 17, 17, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 12px 0;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: 0.25s ease;
    z-index: 1100;
    overflow: visible;
    white-space: nowrap;
}

.dropdown-menu li {
    width: 100%;
}

.dropdown-menu li a {
    display: block;
    width: 100%;
    padding: 10px 18px;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    color: #ddd;
}

.dropdown-menu li a:hover {
    color: var(--p-red);
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown.open .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}


/* --- PRZYCISKI (PRAWIDŁOWY WYGLĄD) --- */

.btn-primary,
.btn-discord {
    padding: 14px 30px;
    border-radius: 6px;
    text-decoration: none !important;
    font-weight: 800;
    display: inline-block;
    margin: 10px;
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: auto !important;
    cursor: pointer;
    border: none;
    color: white !important;
    text-transform: uppercase;
    font-size: 14px;
    text-align: center;
}

.btn-primary {
    background: var(--grad);
    box-shadow: 0 4px 15px rgba(91, 80, 237, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(83, 80, 237, 0.6);
}

.btn-discord {
    background: #5865F2;
    box-shadow: 0 4px 15px rgba(88, 101, 242, 0.3);
}

.btn-discord:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(88, 101, 242, 0.6);
}


/* --- HERO SECTION --- */

.hero {
    height: 100vh;
    background: url('img/hero-bg.png') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    text-align: center;
}

.hero-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(0deg, var(--p-bg) 0%, rgba(0, 0, 0, 0.7) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 900;
    background: var(--grad);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: text-breathe 3s ease-in-out infinite;
    margin-bottom: 20px;
}

.container h1 {
    text-align: center;
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 900;
    background: var(--grad);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: text-breathe 3s ease-in-out infinite;
    margin-bottom: 20px;
}

@keyframes text-breathe {
    0%,
    100% {
        opacity: 0.9;
        filter: drop-shadow(0 0 0px rgba(237, 80, 117, 0));
    }
    50% {
        opacity: 1;
        filter: drop-shadow(0 0 15px rgba(80, 83, 237, 0.4));
    }
}


/* --- INFO SECTIONS --- */

.info-section {
    padding: 100px 0;
    background: var(--p-bg);
}

.info-item {
    display: flex;
    align-items: center;
    gap: 60px;
    margin-bottom: 80px;
}

.info-item.reverse {
    flex-direction: row-reverse;
}

.info-img {
    flex: 1;
}

.info-img img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

.info-text {
    flex: 1;
}

.info-text h2 {
    font-size: 2.2rem;
    font-weight: 900;
    margin-bottom: 15px;
    background: var(--grad);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-transform: uppercase;
}

.info-text p {
    color: #ccc;
    font-size: 1.1rem;
    margin-bottom: 15px;
}


/* --- STOPKA I IKONY --- */

.main-footer {
    padding: 60px 0;
    background: #0a0a0a;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-socials {
    display: flex;
    gap: 20px;
}

.footer-socials a {
    color: #ffffff !important;
    /* Białe domyślnie */
    font-size: 1.5rem;
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0.7;
    pointer-events: auto;
    text-decoration: none;
}

.footer-socials a:hover {
    color: var(--p-pink) !important;
    /* Fioletowe po najechaniu */
    transform: translateY(-5px) scale(1.1);
    opacity: 1;
}

.footer-disclaimer {
    text-align: center;
    flex: 1;
}

.footer-disclaimer p {
    font-size: 10px;
    opacity: 0.3;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-copy {
    text-align: right;
    opacity: 0.5;
    font-size: 0.85rem;
}


/* --- COOKIE BANNER --- */

.cookie-banner {
    position: fixed;
    left: 20px;
    right: 20px;
    bottom: 20px;
    z-index: 2000;
    background: rgba(17, 17, 17, 0.97);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    padding: 20px 24px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    backdrop-filter: blur(10px);
}

.cookie-banner.hidden {
    display: none;
}

.cookie-content p {
    color: #d6d6d6;
    font-size: 0.95rem;
    line-height: 1.5;
}

.cookie-content strong {
    color: white;
}

.cookie-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.cookie-btn {
    border: none;
    border-radius: 8px;
    padding: 10px 16px;
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
    font-size: 0.85rem;
    transition: 0.2s ease;
}

.cookie-btn:hover {
    transform: translateY(-2px);
}

.cookie-btn.accept {
    background: var(--grad);
    color: white;
}

.cookie-btn.reject {
    background: transparent;
    color: #cfcfcf;
    border: 1px solid rgba(255, 255, 255, 0.15);
}


/* --- PODSTRONY --- */

.page-hero {
    min-height: 70vh;
    padding: 80px 20px 40px;
}

.page-badge {
    display: inline-block;
    margin-bottom: 15px;
    padding: 8px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    color: #d8d8ff;
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-weight: 700;
}

.page-shell {
    padding: 100px 0 80px;
    background: var(--p-bg);
}

.page-grid {
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.page-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.22);
}

.discord-profile {
    text-align: center;
}

.discord-avatar {
    width: 112px;
    height: 112px;
    max-width: 112px;
    max-height: 112px;
    margin: 0 auto 18px;
    display: block;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--p-red);
    background: rgba(255, 255, 255, 0.08);
}

.discord-profile-error .discord-avatar {
    opacity: 0.55;
}

.page-card h3 {
    font-size: 1.15rem;
    margin-bottom: 12px;
    color: white;
    font-weight: 800;
    text-transform: uppercase;
}

.page-card p,
.page-card li {
    color: #cfcfcf;
    font-size: 0.98rem;
}

.page-list {
    list-style: none;
    display: grid;
    gap: 10px;
}

.page-list li {
    position: relative;
    padding-left: 16px;
}

.page-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--p-red);
    font-weight: 700;
}

.accordion-list {
    display: grid;
    gap: 16px;
}

.accordion-item {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.22);
}

.accordion-summary {
    cursor: pointer;
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    list-style: none;
    color: white;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.accordion-summary::-webkit-details-marker {
    display: none;
}

.accordion-summary::after {
    content: "+";
    font-size: 1.3rem;
    color: var(--p-red);
    transition: transform 0.2s ease;
}

.accordion-item[open] .accordion-summary::after {
    content: "−";
}

.accordion-content {
    padding: 0 24px 24px;
}


/* --- RESPONSIVE --- */

@media (max-width: 960px) {
    .nav-container {
        padding: 0 20px;
    }
    .menu-toggle {
        display: flex;
    }
    .nav-links {
        position: fixed;
        top: 80px;
        right: 0;
        width: 100%;
        max-width: 320px;
        height: calc(100vh - 80px);
        flex-direction: column;
        background: rgba(17, 17, 17, 0.98);
        backdrop-filter: blur(20px);
        padding: 20px 0;
        gap: 0;
        align-items: stretch;
        transform: translateX(100%);
        transition: transform 0.3s ease;
        z-index: 999;
        overflow-y: auto;
        overflow-x: visible;
    }
    .nav-links.active {
        transform: translateX(0);
    }
    .nav-links li {
        width: 100%;
    }
    .nav-links a {
        width: 100%;
        padding: 14px 24px;
        font-size: 14px;
        border-top: 1px solid rgba(255, 255, 255, 0.06);
    }
    .nav-links>li:first-child a {
        border-top: none;
    }
    .dropdown-menu {
        position: static;
        transform: translateY(0);
        opacity: 0;
        visibility: hidden;
        display: none;
        background: transparent;
        border: none;
        box-shadow: none;
        padding: 0;
        margin: 0;
    }
    .dropdown-menu li a {
        padding-left: 40px;
        background: rgba(255, 255, 255, 0.02);
        color: white;
        font-weight: 700;
        text-transform: uppercase;
    }
    .dropdown.open .dropdown-menu {
        display: block;
        opacity: 1;
        visibility: visible;
    }
    .dropdown>a {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    .dropdown.open>a i {
        transform: rotate(180deg);
    }
    .info-item,
    .info-item.reverse {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }
    .footer-container {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }
    .footer-copy {
        text-align: center;
    }
}