/* ================================================
   GENESIS ROLEPLAY — COMMON DESIGN SYSTEM
   Shared components: navbar, footer, scrollbar,
   info-message, animations, design tokens
   ================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Montserrat:wght@300;400;500;600;700;800;900&display=swap');

/* ---------- Design Tokens ---------- */
:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-card: rgb(27, 27, 27);
    --bg-card-hover: rgba(255, 255, 255, 0.06);
    --bg-glass: rgba(15, 15, 25, 0.65);
    --bg-glass-strong: rgba(15, 15, 25, 0.85);

    --accent-gradient: linear-gradient(135deg, #7c3aed, #2563eb);
    --accent-gradient-hover: linear-gradient(135deg, #6d28d9, #1d4ed8);
    --accent-cyan: #06b6d4;
    --accent-violet: #7c3aed;
    --accent-blue: #2563eb;

    --text-primary: #f1f5f9;
    --text-secondary: rgba(241, 245, 249, 0.7);
    --text-muted: rgba(241, 245, 249, 0.4);

    --border-subtle: rgba(255, 255, 255, 0.06);
    --border-glass: rgba(255, 255, 255, 0.1);
    --border-accent: rgba(124, 58, 237, 0.3);

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 30px rgba(124, 58, 237, 0.15);

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;

    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-spring: 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);

    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Montserrat', 'Inter', sans-serif;

    --navbar-height: 70px;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, html {
    height: 100%;
    font-family: var(--font-primary);
    scroll-behavior: smooth;
    overflow-x: hidden;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-thumb {
    background: rgba(124, 58, 237, 0.35);
    border-radius: 10px;
    transition: background-color 0.3s;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(124, 58, 237, 0.6);
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
}

/* ---------- Navbar ---------- */
.navbar {
    width: 100%;
    height: var(--navbar-height);
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-subtle);
    transition: background var(--transition-smooth);
}

.navbar.scrolled {
    background: var(--bg-glass-strong);
    box-shadow: var(--shadow-md);
}

.logo {
    display: flex;
    align-items: center;
    height: 100%;
}

.logo img {
    height: 32px;
    transition: transform var(--transition-smooth);
}

.logo img:hover {
    transform: scale(1.05);
}

.nav-center {
    display: flex;
    align-items: center;
    gap: 4px;
}

.kreskaOddzie {
    width: 1px;
    height: 18px;
    background: var(--border-glass);
    margin: 0 2px;
    border-radius: 1px;
}

.nav-link, .nav-link2 {
    position: relative;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    font-weight: 500;
    font-size: 14px;
    letter-spacing: 0.3px;
    transition: color var(--transition-smooth), background var(--transition-smooth);
}

.nav-link:hover, .nav-link2:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.nav-link::after,
.nav-link2::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 4px;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--accent-gradient);
    border-radius: 2px;
    transition: width var(--transition-smooth);
}

.nav-link:hover::after,
.nav-link2:hover::after {
    width: 60%;
}

#kolornieb {
    color: var(--accent-cyan);
}
#kolornieb:hover {
    color: #22d3ee;
}

.logowanie-container {
    display: flex;
    align-items: center;
}

.nav-link3 {
    position: relative;
    color: white;
    text-decoration: none;
    padding: 9px 20px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    background: var(--accent-gradient);
    transition: all var(--transition-smooth);
    border: none;
    overflow: hidden;
}

.nav-link3::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--accent-gradient-hover);
    opacity: 0;
    transition: opacity var(--transition-smooth);
}

.nav-link3:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(124, 58, 237, 0.4);
}

.nav-link3:hover::before {
    opacity: 1;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    padding: 8px;
    border-radius: var(--radius-sm);
    transition: background var(--transition-smooth);
    z-index: 1001;
}

.hamburger:hover {
    background: rgba(255, 255, 255, 0.05);
}

.hamburger span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all var(--transition-smooth);
    transform-origin: center;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ---------- Minimalist Footer ---------- */
footer {
    background: var(--bg-primary);
    color: var(--text-muted);
    padding: 24px 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 13px;
    font-weight: 500;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
}

footer::before {
    display: none;
}

footer > p:first-of-type:not(.footer-copy) {
    display: none;
}

footer p:not(.footer-copy),
.footer-links {
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.3);
    width: 100%;
}

.footer-links .separator {
    display: none;
}

.pogrubienie {
    font-family: var(--font-display);
    font-weight: 700;
}

.regulamin-button_fivem,
.regulamin-button_disc,
.regulamin-button_tik,
.regulamin-button_yout {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.05) !important;
    color: rgba(255, 255, 255, 0.85) !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    letter-spacing: 0.5px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2) !important;
    transform: none !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
    text-decoration: none;
}

.regulamin-button_fivem:hover {
    background: rgba(245, 158, 11, 0.15) !important;
    border-color: rgba(245, 158, 11, 0.5);
    color: #fff !important;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.2) !important;
    transform: translateY(-2px) !important;
}

.regulamin-button_disc:hover {
    background: rgba(88, 101, 242, 0.15) !important;
    border-color: rgba(88, 101, 242, 0.5);
    color: #fff !important;
    box-shadow: 0 4px 15px rgba(88, 101, 242, 0.2) !important;
    transform: translateY(-2px) !important;
}

.regulamin-button_tik:hover {
    background: rgba(0, 242, 234, 0.15) !important;
    border-color: rgba(0, 242, 234, 0.5);
    color: #fff !important;
    transform: translateY(-2px) !important;
}

.regulamin-button_yout:hover {
    background: rgba(204, 0, 0, 0.15) !important;
    border-color: rgba(204, 0, 0, 0.5);
    color: #fff !important;
    transform: translateY(-2px) !important;
}

.footer-copy {
    margin: 0;
    color: rgba(255, 255, 255, 0.4);
    font-size: 13px;
    text-align: center;
    width: 100%;
}

@media (max-width: 768px) {
    footer {
        padding: 30px 20px;
    }
}

/* ---------- Info Message ---------- */
#info-message {
    display: none;
    background: linear-gradient(155deg, #2f6cd4c4, #cb1111b6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    color: white;
    text-align: center;
    padding: 16px 28px;
    position: fixed;
    top: -200px;
    left: 50%;
    transform: translateX(-50%) scale(0.9);
    min-width: 280px;
    border-radius: var(--radius-md);
    z-index: 2000;
    font-weight: 600;
    font-size: 14px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    opacity: 0;
}

@keyframes slideDown {
    0% {
        top: -200px;
        opacity: 0;
        transform: translateX(-50%) scale(0.9);
    }
    60% {
        top: 90px;
        opacity: 1;
        transform: translateX(-50%) scale(1.02);
    }
    100% {
        top: 84px;
        opacity: 1;
        transform: translateX(-50%) scale(1);
    }
}

@keyframes slideUp {
    0% {
        top: 84px;
        opacity: 1;
        transform: translateX(-50%) scale(1);
    }
    100% {
        top: -200px;
        opacity: 0;
        transform: translateX(-50%) scale(0.9);
    }
}

#info-message.show {
    display: block;
    animation: slideDown 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

#info-message.hide {
    animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* ---------- Scroll Reveal Animation ---------- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- Sklep Button ---------- */
#sklep-button {
    cursor: pointer;
}

/* ---------- Page Header (subpages) ---------- */
.page-header {
    text-align: center;
    padding: 60px 20px 20px;
}

.page-header h1 {
    font-family: var(--font-display);
    font-size: 42px;
    font-weight: 800;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
}

.page-header p {
    color: var(--text-secondary);
    font-size: 16px;
    font-weight: 400;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .navbar {
        padding: 0 20px;
    }

    .hamburger {
        display: flex;
    }

    .nav-center {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--bg-glass-strong);
        backdrop-filter: blur(30px);
        -webkit-backdrop-filter: blur(30px);
        flex-direction: column;
        justify-content: flex-start;
        padding: 90px 30px 30px;
        gap: 6px;
        border-left: 1px solid var(--border-subtle);
        transition: right var(--transition-smooth);
        z-index: 999;
    }

    .nav-center.open {
        right: 0;
    }

    .kreskaOddzie {
        display: none;
    }

    .nav-link, .nav-link2 {
        width: 100%;
        padding: 14px 16px;
        font-size: 15px;
        border-radius: var(--radius-sm);
    }

    .nav-link:hover, .nav-link2:hover {
        background: rgba(255, 255, 255, 0.08);
    }

    .logowanie-container {
        display: none;
    }

    .nav-link3-mobile {
        display: block;
        color: white;
        text-decoration: none;
        padding: 14px 16px;
        border-radius: var(--radius-sm);
        font-weight: 600;
        font-size: 15px;
        background: var(--accent-gradient);
        text-align: center;
        margin-top: 12px;
        transition: all var(--transition-smooth);
    }

    .page-header h1 {
        font-size: 32px;
    }
}

@media (min-width: 901px) {
    .nav-link3-mobile {
        display: none;
    }
}

/* ---------- Mobile overlay ---------- */
.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    transition: opacity var(--transition-smooth);
}

.nav-overlay.active {
    display: block;
    opacity: 1;
}
