* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #ff6b6b;
    --secondary: #4ecdc4;
    --dark: #1a1a2e;
    --darker: #16213e;
    --light: #f8f9fa;
    --accent: #ffd93d;
    --gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --glow: 0 0 20px rgba(255, 107, 107, 0.5);
}

body {
    font-family: 'Roboto', sans-serif;
    background: var(--dark);
    color: var(--light);
    overflow-x: hidden;
    line-height: 1.6;
    transition: background 0.3s ease, color 0.3s ease;
}

#particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: radial-gradient(circle at 20% 50%, rgba(120,119,198,0.3) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(255,119,198,0.3) 0%, transparent 50%),
                radial-gradient(circle at 40% 80%, rgba(120,219,255,0.3) 0%, transparent 50%);
    animation: particles 20s ease-in-out infinite;
}

@keyframes particles {
    0%, 100% { transform: scale(1) rotate(0deg); opacity: 1; }
    50% { transform: scale(1.1) rotate(180deg); opacity: 0.8; }
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h2 {
    font-family: 'Orbitron', monospace;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 900;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: var(--light);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--primary);
    text-shadow: var(--glow);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.admin-btn {
    background: var(--primary);
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    box-shadow: var(--glow);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--light);
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 2rem 4rem;
    position: relative;
}

.hero-content {
    max-width: 800px;
    animation: fadeInUp 1s ease-out;
}

.hero-title {
    font-family: 'Orbitron', monospace;
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 900;
    margin-bottom: 1rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: var(--glow);
}

.gradient-text {
    background: linear-gradient(45deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.btn-primary, .btn-secondary {
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: var(--glow);
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 107, 107, 0.4);
}

.btn-secondary {
    background: var(--secondary);
    color: white;
}

.btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(78, 205, 196, 0.4);
}

.server-ip {
    margin: 2rem 0;
    font-size: 1.5rem;
}

.server-ip code {
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem 2rem;
    border-radius: 10px;
    font-family: 'Orbitron', monospace;
    border: 2px solid rgba(255, 107, 107, 0.3);
    box-shadow: var(--glow);
    display: inline-block;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: var(--glow); }
    50% { box-shadow: 0 0 30px rgba(255, 107, 107, 0.8); }
}

/* Sections */
.section {
    padding: 100px 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-title {
    font-family: 'Orbitron', monospace;
    font-size: 3rem;
    text-align: center;
    margin-bottom: 4rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Server Grid */
.server-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.server-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.server-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s;
}

.server-card:hover::before {
    left: 100%;
}

.server-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.ip-display {
    font-family: 'Orbitron', monospace;
    font-size: 1.2rem;
    color: var(--primary);
    background: rgba(255, 107, 107, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 10px;
    display: block;
    margin: 1rem 0;
}

.btn-small {
    padding: 0.5rem 1rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.version, .game-mode, .rank {
    font-size: 1.1rem;
    color: var(--secondary);
    font-weight: 600;
}

/* Features */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    padding: 3rem 2rem;
    border-radius: 20px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    position: relative;
}

.feature-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

.feature-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 0 20px currentColor);
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--light);
}

/* Rules */
.rules-container {
    max-width: 800px;
    margin: 0 auto;
}

.rule-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    border-left: 5px solid var(--primary);
    transition: all 0.3s ease;
}

.rule-item:hover {
    transform: translateX(10px);
    box-shadow: 0 10px 30px rgba(255, 107, 107, 0.2);
}

.rule-number {
    font-family: 'Orbitron', monospace;
    font-size: 2rem;
    font-weight: 900;
    color: var(--primary);
    min-width: 50px;
}

.rules-admin-note {
    text-align: center;
    margin-top: 3rem;
    padding: 2rem;
    background: rgba(255, 107, 107, 0.1);
    border-radius: 15px;
    border: 2px dashed var(--primary);
}

/* Changelog styles */
.changelog-container {
    max-width: 900px;
    margin: 0 auto;
}

.changelog-item {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 1.8rem;
    margin-bottom: 1.5rem;
    border-left: 5px solid #ff6b6b;
    transition: all 0.3s ease;
}

.changelog-item:hover {
    transform: translateX(10px);
    box-shadow: 0 10px 30px rgba(255, 107, 107, 0.2);
}

.changelog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.changelog-version {
    font-family: 'Orbitron', monospace;
    font-size: 1.3rem;
    font-weight: 700;
    color: #ff6b6b;
    background: rgba(255, 107, 107, 0.2);
    padding: 0.3rem 1rem;
    border-radius: 30px;
    display: inline-block;
}

.changelog-date {
    color: #4ecdc4;
    font-size: 0.9rem;
}

.changelog-content {
    font-size: 1rem;
    line-height: 1.6;
    white-space: pre-wrap;
}

.changelog-empty {
    text-align: center;
    padding: 3rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    color: #ffd93d;
}

/* Discord */
.discord-section {
    background: linear-gradient(135deg, var(--darker) 0%, var(--dark) 100%);
}

.discord-card {
    background: rgba(114, 137, 218, 0.1);
    backdrop-filter: blur(20px);
    padding: 4rem;
    border-radius: 30px;
    text-align: center;
    border: 1px solid rgba(114, 137, 218, 0.3);
}

.discord-card h2 {
    font-size: 3rem;
    margin-bottom: 2rem;
    background: linear-gradient(45deg, #7289da, #99aab5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.btn-discord {
    background: linear-gradient(45deg, #7289da, #99aab5);
    padding: 1.5rem 3rem;
    font-size: 1.3rem;
    box-shadow: 0 10px 30px rgba(114, 137, 218, 0.4);
    border-radius: 60px;
    border: none;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    color: white;
}

.btn-discord:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(114, 137, 218, 0.6);
}

/* Footer */
.footer {
    background: var(--darker);
    padding: 3rem 0 1rem;
    text-align: center;
}

.social-links {
    margin-top: 1rem;
}

.social-links a {
    color: var(--light);
    margin: 0 1rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--primary);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

section {
    animation: fadeInUp 1s ease-out;
}

/* ===================== USTAWIENIA (KOŁO ZĘBATE, PANEL, TOASTY) ===================== */

/* Koło zębate */
.settings-cog {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 50px;
    height: 50px;
    background: rgba(255, 107, 107, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1001;
    box-shadow: 0 0 15px rgba(255, 107, 107, 0.6);
    transition: transform 0.3s ease, background 0.3s ease;
}
.settings-cog:hover {
    transform: rotate(90deg) scale(1.1);
    background: #ff6b6b;
}
.settings-cog svg {
    width: 28px;
    height: 28px;
    fill: white;
}

/* Panel ustawień */
.settings-panel {
    position: fixed;
    bottom: 80px;
    left: 20px;
    width: 320px;
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    padding: 1.5rem;
    z-index: 1002;
    border: 1px solid rgba(255,255,255,0.2);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    transform: translateX(-120%);
    transition: transform 0.3s ease;
}
.settings-panel.active {
    transform: translateX(0);
}
.settings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 0.5rem;
}
.settings-header h3 {
    font-family: 'Orbitron', monospace;
    margin: 0;
    color: #ff6b6b;
}
.close-settings {
    background: none;
    border: none;
    color: white;
    font-size: 1.8rem;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s;
}
.close-settings:hover {
    color: #ff6b6b;
}
.settings-content {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}
.setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1rem;
}

/* Przyciski motywu */
.theme-buttons {
    display: flex;
    gap: 10px;
}
.theme-btn {
    padding: 6px 15px;
    border: 1px solid rgba(255,255,255,0.3);
    background: rgba(255,255,255,0.1);
    color: white;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.9rem;
}
.theme-btn.active {
    background: #ff6b6b;
    border-color: #ff6b6b;
    box-shadow: 0 0 10px rgba(255,107,107,0.5);
}

/* Przełącznik (toggle) */
.switch {
    position: relative;
    display: inline-block;
    width: 52px;
    height: 26px;
}
.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}
.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.3s;
    border-radius: 34px;
}
.slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}
input:checked + .slider {
    background-color: #ff6b6b;
}
input:checked + .slider:before {
    transform: translateX(26px);
}

/* Kontrolka rozmiaru tekstu */
.font-size-control {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255,255,255,0.1);
    padding: 8px 15px;
    border-radius: 40px;
}
.font-size-value {
    min-width: 45px;
    font-weight: bold;
    color: #ff6b6b;
    font-family: 'Orbitron', monospace;
}
#fontSizeSlider {
    width: 140px;
    height: 4px;
    -webkit-appearance: none;
    background: linear-gradient(90deg, #ff6b6b, #ffd93d);
    border-radius: 5px;
    outline: none;
    cursor: pointer;
}
#fontSizeSlider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    background: #ff6b6b;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 5px #ff6b6b;
}
#fontSizeSlider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.test-notif-btn {
    background: #4ecdc4;
    color: white;
    border: none;
    padding: 0.8rem;
    border-radius: 30px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 0.5rem;
}
.test-notif-btn:hover {
    background: #ff6b6b;
    transform: scale(1.02);
}

/* Toasty powiadomień */
.toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1003;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}
.toast {
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(10px);
    color: white;
    padding: 12px 20px;
    border-radius: 12px;
    border-left: 4px solid #ff6b6b;
    min-width: 250px;
    font-size: 0.9rem;
    pointer-events: auto;
    animation: slideIn 0.3s ease-out;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}
.toast.success {
    border-left-color: #4ecdc4;
}
.toast.error {
    border-left-color: #ef4444;
}
.toast.info {
    border-left-color: #ffd93d;
}

/* Motyw jasny */
body.light-theme {
    --dark: #f8f9fa;
    --darker: #e9ecef;
    --light: #1a1a2e;
    background: var(--dark);
    color: var(--light);
}
body.light-theme .navbar,
body.light-theme .server-card,
body.light-theme .feature-card,
body.light-theme .rule-item,
body.light-theme .changelog-item,
body.light-theme .discord-card,
body.light-theme .settings-panel {
    background: rgba(0,0,0,0.05);
    backdrop-filter: blur(10px);
    border-color: rgba(0,0,0,0.1);
}
body.light-theme .settings-panel {
    background: rgba(255,255,255,0.95);
}
body.light-theme .settings-header h3,
body.light-theme .close-settings {
    color: #ff6b6b;
}
body.light-theme .close-settings:hover {
    color: #ff6b6b;
}
body.light-theme .setting-item span {
    color: #1a1a2e;
}
body.light-theme .theme-btn {
    background: rgba(0,0,0,0.1);
    color: #1a1a2e;
    border-color: rgba(0,0,0,0.2);
}
body.light-theme .theme-btn.active {
    background: #ff6b6b;
    color: white;
}
body.light-theme .font-size-control {
    background: rgba(0,0,0,0.05);
}
body.light-theme .changelog-version {
    background: rgba(255, 107, 107, 0.1);
}
body.light-theme .changelog-item {
    background: rgba(0,0,0,0.05);
}

/* Responsive */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--dark);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .server-grid, .features-grid {
        grid-template-columns: 1fr;
    }
    
    .rule-item {
        flex-direction: column;
        text-align: center;
    }
    
    .changelog-header {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    .settings-panel {
        width: 280px;
        left: 10px;
        bottom: 70px;
    }
}


/* Wyśrodkowanie formularza */
.admin-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 400px;
    margin: 0 auto;
    width: 100%;
}

.form-group {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.form-group label {
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #4ecdc4;
}

.form-group input {
    padding: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.1);
    color: #f8f9fa;
    font-size: 1rem;
    transition: all 0.3s;
    text-align: center; /* wyśrodkowanie tekstu w inputach */
}

.login-button-container {
    position: relative;
    display: flex;
    justify-content: center;
    margin-top: 1rem;
}

.hint {
    text-align: center;
    margin-top: 1rem;
    color: #ffd93d;
    font-size: 0.9rem;
}
