/* ==========================================
   GILDIA BIAŁA FURIA - OFICJALNY STYL
   ========================================== */

/* Definicja zmiennych i kolorów neonowych */
:root {
    --bg-primary: #030308;       /* Głęboka, smocza czerń */
    --bg-secondary: #080816;     /* Ciemny fioletowo-niebieski */
    --neon-cyan: #00f2fe;        /* Neonowy błękit (lodowa furia) */
    --neon-purple: #7f00ff;      /* Mistyczny fiolet (magia smoków) */
    --neon-purple-glow: rgba(127, 0, 255, 0.4);
    --neon-cyan-glow: rgba(0, 242, 254, 0.4);
    --text-white: #ffffff;       /* Śnieżna biel */
    --text-gray: #a5a5cc;        /* Srebrzysty fiolet */
    --glass-bg: rgba(8, 8, 24, 0.6);
    --glass-border: rgba(255, 255, 255, 0.05);
    
    --font-heading: 'Cinzel', serif;
    --font-body: 'Poppins', sans-serif;
    
    --transition-smooth: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* ==========================================
   RESET I USTAWIENIA PODSTAWOWE
   ========================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-white);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--neon-purple), var(--neon-cyan));
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--neon-cyan), var(--neon-purple));
}

/* ==========================================
   EFEKTY SPECJALNE (TŁO, KURSOR, ELEMENTY)
   ========================================== */

/* Tło Canvas z cząsteczkami */
#particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    pointer-events: none;
}

/* Poświata za kursorem */
#cursor-glow {
    position: fixed;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(127, 0, 255, 0.15) 0%, rgba(0, 242, 254, 0.05) 50%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: -1;
    transition: width 0.3s, height 0.3s;
    mix-blend-mode: screen;
}

/* Glassmorphism panel helper */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
}

/* Efekty świecenia (Glow) */
.furia-glow {
    font-family: var(--font-heading);
    font-weight: 900;
    letter-spacing: 2px;
    color: var(--text-white);
    text-shadow: 0 0 10px var(--neon-cyan-glow), 0 0 20px var(--neon-purple-glow);
}

.gradient-text {
    background: linear-gradient(135deg, var(--text-white) 30%, var(--neon-cyan) 70%, var(--neon-purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 8px rgba(0, 242, 254, 0.3));
}

/* ==========================================
   NAGŁÓWEK (HEADER)
   ========================================== */
.glass-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(3, 3, 8, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    transition: var(--transition-smooth);
}

.glass-header.scrolled {
    background: rgba(3, 3, 8, 0.95);
    border-bottom: 1px solid rgba(0, 242, 254, 0.2);
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.5);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    text-decoration: none;
    font-size: 1.5rem;
}

.nav-menu ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-link {
    color: var(--text-gray);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    position: relative;
    padding: 5px 0;
    transition: var(--transition-smooth);
}

.nav-link:hover, .nav-link.active {
    color: var(--neon-cyan);
    text-shadow: 0 0 8px var(--neon-cyan-glow);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--neon-cyan), var(--neon-purple));
    transition: var(--transition-smooth);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

/* Mobilna nawigacja */
.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-nav-toggle .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--text-white);
    transition: var(--transition-smooth);
}

/* ==========================================
   PRZYCISKI (BUTTONS)
   ========================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 30px;
    font-family: var(--font-body);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--neon-purple), var(--neon-cyan));
    color: var(--text-white);
    border: none;
}

.glow-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: 0.5s;
}

.glow-btn:hover::before {
    left: 100%;
}

.btn-primary:hover {
    box-shadow: 0 0 20px var(--neon-cyan-glow), 0 0 10px var(--neon-purple-glow);
    transform: translateY(-2px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-white);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(5px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--neon-purple);
    box-shadow: 0 0 15px rgba(127, 0, 255, 0.2);
    transform: translateY(-2px);
}

/* ==========================================
   SEKCJA HERO (EKRAN STARTOWY)
   ========================================== */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 140px 10% 80px 10%;
    max-width: 1400px;
    margin: 0 auto;
    gap: 50px;
}

.hero-content {
    flex: 1;
    max-width: 650px;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: 3px;
    margin-bottom: 20px;
}

.typewriter-container {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--neon-cyan);
    text-shadow: 0 0 8px var(--neon-cyan-glow);
    height: 35px;
    margin-bottom: 25px;
}

.typewriter-container .cursor {
    animation: blink 0.7s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.hero-description {
    color: var(--text-gray);
    font-size: 1.05rem;
    margin-bottom: 40px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

/* Portal z główną grafiką */
.hero-portal-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    max-width: 500px;
}

.portal-glow {
    position: absolute;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, var(--neon-cyan) 0%, var(--neon-purple) 60%, transparent 100%);
    filter: blur(40px);
    opacity: 0.6;
    animation: pulseGlow 6s infinite alternate;
    border-radius: 50%;
}

@keyframes pulseGlow {
    0% { transform: scale(0.9); opacity: 0.5; }
    100% { transform: scale(1.1); opacity: 0.8; }
}

.portal-card {
    background: rgba(8, 8, 24, 0.4);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    padding: 10px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 
                0 0 30px rgba(0, 242, 254, 0.2), 
                inset 0 0 15px rgba(255, 255, 255, 0.05);
    transform-style: preserve-3d;
    perspective: 1000px;
    animation: floatPortal 4s ease-in-out infinite;
}

.portal-img {
    width: 100%;
    max-height: 400px;
    object-fit: contain;
    border-radius: 20px;
    display: block;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.5));
}

@keyframes floatPortal {
    0%, 100% { transform: translateY(0px) rotateY(0deg); }
    50% { transform: translateY(-15px) rotateY(2deg); }
}

/* ==========================================
   STRUKTURA NAGŁÓWKÓW SEKCJI
   ========================================== */
section {
    padding: 100px 10%;
    max-width: 1400px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: 4px;
    margin-bottom: 10px;
    color: var(--text-white);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}

.title-bar {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--neon-cyan), var(--neon-purple));
    margin: 0 auto 15px auto;
    border-radius: 2px;
    box-shadow: 0 0 8px var(--neon-cyan);
}

.section-subtitle {
    color: var(--text-gray);
    font-size: 1.05rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* ==========================================
   SEKCJA LORE
   ========================================== */
.lore-container {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 50px;
    align-items: center;
}

.lore-card.text-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 40px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4),
                inset 0 0 15px rgba(255, 255, 255, 0.02);
}

.card-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(127, 0, 255, 0.08) 0%, transparent 60%);
    pointer-events: none;
}

.lore-card h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--neon-cyan);
    margin-bottom: 20px;
    text-shadow: 0 0 8px var(--neon-cyan-glow);
}

.lore-card p {
    color: var(--text-gray);
    margin-bottom: 20px;
}

.lore-card p strong {
    color: var(--text-white);
}

.lore-images {
    display: flex;
    gap: 20px;
    justify-content: center;
    position: relative;
    height: 450px;
}

.lore-img-card {
    flex: 1;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    overflow: hidden;
    height: 380px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
    transition: var(--transition-smooth);
}

.lore-img-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.lore-img-card:hover img {
    transform: scale(1.05);
}

.left-img {
    transform: translateY(0px);
    border-color: rgba(0, 242, 254, 0.3);
}

.right-img {
    transform: translateY(40px);
    border-color: rgba(127, 0, 255, 0.3);
}

.lore-img-card:hover {
    box-shadow: 0 15px 35px rgba(0, 242, 254, 0.2);
}

.right-img:hover {
    box-shadow: 0 15px 35px rgba(127, 0, 255, 0.2);
}

/* ==========================================
   SEKCJA REGULAMINU (ACCORDION)
   ========================================== */
.rules-container {
    max-width: 900px;
    margin: 0 auto 50px auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.accordion-item {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.accordion-item:hover {
    border-color: rgba(0, 242, 254, 0.3);
    box-shadow: 0 5px 15px rgba(0, 242, 254, 0.05);
}

.accordion-header {
    width: 100%;
    background: none;
    border: none;
    padding: 22px 30px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    cursor: pointer;
    text-align: left;
    color: var(--text-white);
    font-family: var(--font-body);
    transition: var(--transition-smooth);
    gap: 20px;
}

.accordion-num {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--neon-cyan);
    text-shadow: 0 0 6px var(--neon-cyan-glow);
}

.accordion-header h3 {
    font-size: 1.15rem;
    font-weight: 600;
    flex: 1;
}

.accordion-icon {
    font-size: 1.5rem;
    color: var(--text-gray);
    transition: var(--transition-smooth);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    background: rgba(3, 3, 8, 0.4);
}

.accordion-content p {
    padding: 0 30px 25px 70px;
    color: var(--text-gray);
    font-size: 0.95rem;
}

/* Aktywny element akordeonu */
.accordion-item.active {
    border-color: var(--neon-purple);
    box-shadow: 0 10px 25px rgba(127, 0, 255, 0.15);
}

.accordion-item.active .accordion-header {
    background: rgba(127, 0, 255, 0.05);
}

.accordion-item.active .accordion-icon {
    transform: rotate(45deg);
    color: var(--neon-purple);
}

.rules-text-container {
    max-width: 800px;
    margin: 40px auto 0 auto;
    perspective: 1000px;
}

.rules-text-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 40px;
    color: var(--text-gray);
    box-shadow: 0 15px 35px rgba(0,0,0,0.5);
}

.rules-text-card h3 {
    color: var(--neon-cyan);
    font-family: var(--font-heading);
    margin-bottom: 20px;
}

.rules-list {
    margin: 20px 0;
    padding-left: 20px;
}

.rules-list li {
    margin-bottom: 10px;
}

.rules-text-card hr {
    border: 0;
    border-top: 1px solid var(--glass-border);
    margin: 20px 0;
}

/* ==========================================
   SEKCJA JAK DOŁĄCZYĆ
   ========================================== */
.join-container {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 50px;
    align-items: center;
}

.join-info-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
}

.step {
    display: flex;
    align-items: flex-start;
    gap: 25px;
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
}

.step:last-child {
    margin-bottom: 0;
}

.step-num {
    width: 50px;
    height: 50px;
    min-width: 50px;
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--text-white);
    box-shadow: 0 0 15px var(--neon-cyan-glow);
}

.step-desc h4 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--text-white);
}

.step-desc p {
    color: var(--text-gray);
    font-size: 0.95rem;
}

.join-asset-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 10px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.join-asset-img {
    width: 100%;
    border-radius: 12px;
    display: block;
    transition: var(--transition-smooth);
}

.join-asset-card:hover .join-asset-img {
    transform: scale(1.02);
}

/* ==========================================
   STOPKA (FOOTER)
   ========================================== */
footer {
    background: #020205;
    border-top: 1px solid var(--glass-border);
    padding: 80px 10% 30px 10%;
    position: relative;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 50px;
}

.footer-brand h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.footer-brand p {
    color: var(--text-gray);
    max-width: 320px;
    font-size: 0.95rem;
}

.footer-links h4, .footer-social h4 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    margin-bottom: 20px;
    letter-spacing: 1px;
    color: var(--neon-cyan);
    text-shadow: 0 0 5px var(--neon-cyan-glow);
}

.footer-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: var(--text-gray);
    text-decoration: none;
    transition: var(--transition-smooth);
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--neon-cyan);
    padding-left: 5px;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icon {
    width: 45px;
    height: 45px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    transition: var(--transition-smooth);
}

.social-icon svg {
    width: 22px;
    height: 22px;
}

.social-icon:hover {
    color: var(--neon-cyan);
    border-color: var(--neon-cyan);
    box-shadow: 0 0 15px var(--neon-cyan-glow);
    transform: translateY(-3px);
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.85rem;
}

/* ==========================================
   RESPONSYWNOŚĆ (MEDIA QUERIES)
   ========================================== */

@media (max-width: 1100px) {
    .hero-section {
        flex-direction: column;
        text-align: center;
        padding-top: 160px;
        gap: 60px;
    }
    
    .hero-content {
        max-width: 100%;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-portal-container {
        max-width: 400px;
        width: 100%;
    }
    
    .lore-container, .join-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .lore-images {
        height: auto;
        margin-top: 20px;
    }
    
    .lore-img-card {
        height: 280px;
    }
    
    .right-img {
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    body {
        font-size: 15px;
    }
    
    section {
        padding: 70px 5%;
    }
    
    .hero-title {
        font-size: 2.6rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    /* Nawigacja mobilna */
    .mobile-nav-toggle {
        display: block;
    }
    
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: rgba(3, 3, 8, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        transition: var(--transition-smooth);
        border-top: 1px solid rgba(255,255,255,0.05);
    }
    
    .nav-menu.open {
        left: 0;
    }
    
    .nav-menu ul {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        height: 100%;
        gap: 40px;
    }
    
    .nav-link {
        font-size: 1.2rem;
    }
    
    .mobile-nav-toggle.open .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .mobile-nav-toggle.open .bar:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-nav-toggle.open .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .accordion-header {
        padding: 18px 20px;
    }
    
    .accordion-content p {
        padding: 0 20px 20px 50px;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        gap: 35px;
        text-align: center;
    }
    
    .footer-brand p {
        margin: 0 auto;
    }
    
    .social-icons {
        justify-content: center;
    }
}
