/* ==========================================================================
   GŁÓWNE ZMIENNE I RESET STYLÓW
   ========================================================================== */
:root {
    --bg-darker: #0b111e;
    --bg-dark: #111827;
    --bg-card: #1f2937;
    --bg-card-hover: #374151;
    
    --text-main: #f3f4f6;
    --text-muted: #9ca3af;
    --text-white: #ffffff;
    
    --accent-blue: #2563eb;
    --accent-blue-hover: #3b82f6;
    --accent-cyan: #06b6d4;
    --accent-discord: #5865F2;
    --accent-discord-hover: #4752c4;
    --accent-green: #10b981;
    
    --border-color: #1f2937;
    --border-card: #374151;
    
    --font-sans: 'Inter', sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

button {
    background: none;
    border: none;
    font-family: inherit;
    cursor: pointer;
}

code {
    background: rgba(0, 0, 0, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: monospace;
}

/* Główne klasy pomocnicze i kontenery */
.nav-container, .hero-container, .mods-container, .minigames-container, .cta-container, .footer-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.text-center {
    text-align: center;
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 24px;
    position: relative;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 16px;
    margin-top: 8px;
}

/* ==========================================================================
   NAWIGACJA (NAVBAR)
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background-color: rgba(11, 17, 30, 0.85);
    backdrop-filter: blur(12px);
    z-index: 1000;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-container {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    transition: var(--transition);
}

.nav-logo:hover {
    opacity: 0.9;
}

.logo-text {
    color: var(--text-white);
    font-weight: 700;
    font-size: 22px;
    letter-spacing: 0.5px;
}

.logo-image {
    height: 40px;
    width: auto;
    border-radius: 8px;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-link {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 15px;
    padding: 8px 0;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover, .nav-link.active {
    color: var(--text-white);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--accent-blue);
    border-radius: 2px;
}

.menu-toggle {
    display: none;
    color: var(--text-main);
    font-size: 24px;
}

/* ==========================================================================
   SEKCJA HERO (NAGŁÓWEK)
   ========================================================================== */
.hero {
    padding-top: 160px;
    padding-bottom: 100px;
    background: radial-gradient(circle at top right, rgba(37, 99, 213, 0.08), transparent 45%);
}

.hero-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 64px;
}

.hero-content {
    flex: 1.2;
}

.badge {
    display: inline-block;
    padding: 6px 16px;
    background-color: rgba(37, 99, 213, 0.15);
    border: 1px solid rgba(37, 99, 213, 0.3);
    color: var(--accent-blue-hover);
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero-title {
    font-size: 52px;
    font-weight: 800;
    color: var(--text-white);
    line-height: 1.15;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.gradient-text {
    background: linear-gradient(135deg, var(--accent-blue-hover), var(--accent-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-description {
    font-size: 17px;
    color: var(--text-muted);
    margin-bottom: 36px;
    max-width: 580px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 12px;
}

/* Przyciski globalne - Wymuszone idealne środkowanie tekstu */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 10px;
    padding: 14px 28px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 10px;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--accent-blue);
    color: var(--text-white);
    box-shadow: 0 4px 14px rgba(37, 99, 213, 0.4);
}

.btn-primary:hover {
    background-color: var(--accent-blue-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 213, 0.5);
}

.btn-secondary {
    background-color: var(--bg-card);
    color: var(--text-white);
    border: 1px solid var(--border-card);
}

.btn-secondary:hover {
    background-color: var(--bg-card-hover);
    transform: translateY(-2px);
}

.btn-discord {
    background-color: var(--accent-discord);
    color: var(--text-white);
    padding: 16px 36px;
    font-size: 16px;
    box-shadow: 0 4px 14px rgba(88, 101, 242, 0.3);
}

.btn-discord:hover {
    background-color: var(--accent-discord-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(88, 101, 242, 0.4);
}

.ip-toast {
    font-size: 14px;
    color: var(--accent-green);
    font-weight: 500;
    opacity: 0;
    transform: translateY(5px);
    transition: var(--transition);
}

.ip-toast.show {
    opacity: 1;
    transform: translateY(0);
}

/* Karta statystyk */
.hero-stats-card {
    flex: 0.8;
    position: relative;
    width: 100%;
}

.stats-glow {
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-cyan));
    border-radius: 18px;
    filter: blur(10px);
    opacity: 0.25;
}

.stats-inner {
    position: relative;
    background-color: rgba(31, 41, 55, 0.6);
    border: 1px solid var(--border-card);
    border-radius: 16px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 20px;
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.05);
    overflow: hidden;
}

.stat-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.discord-color {
    background-color: rgba(88, 101, 242, 0.15);
    color: var(--accent-discord);
}

.minecraft-color {
    background-color: rgba(16, 185, 129, 0.15);
    color: var(--accent-green);
}

.stat-info h3 {
    color: var(--text-white);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 4px;
}

.stat-info p {
    color: var(--text-muted);
    font-size: 14px;
}

.status-online {
    color: var(--accent-green);
    font-weight: 700;
}

.divider {
    height: 1px;
    background-color: rgba(255, 255, 255, 0.08);
    width: 100%;
}

/* ==========================================================================
   SEKCJA MODÓW (ZACHOWANA W 100% ORYGINALNA STRUKTURA)
   ========================================================================== */
.mods { 
    padding: 4rem 2rem; 
    background: rgba(0, 0, 0, 0.05); 
}

.mods-container { 
    max-width: 800px; 
    margin: 0 auto; 
    text-align: center; /* Przywrócone oryginalne centrowanie sekcji */
}

.mods-content { 
    margin-top: 2rem; 
}

.download-info { 
    margin-top: 15px; 
    font-size: 0.9em; 
    opacity: 0.8; 
}

/* ==========================================================================
   SEKCJA TRYBY GRY (MINIGAMES)
   ========================================================================== */
.minigames {
    padding: 100px 0;
}

.section-header {
    margin-bottom: 30px;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    max-width: 540px;
    margin: 0 auto;
    gap: 32px;
}

.game-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    transition: var(--transition);
}

.game-card:hover {
    transform: translateY(-6px);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 15px 35px rgba(0,0,0,0.25);
}

.game-image {
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 56px;
    color: rgba(255, 255, 255, 0.2);
    transition: var(--transition);
}

.bg-gradient-survival {
    background: linear-gradient(135deg, #1e3a8a, #0f172a);
}

.game-card:hover .game-image {
    color: rgba(255, 255, 255, 0.4);
}

.game-info {
    padding: 32px;
    text-align: center;
}

.game-info h3 {
    color: var(--text-white);
    font-size: 22px;
    margin-bottom: 12px;
}

.game-info p {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.7;
}

/* ==========================================================================
   SEKCJA CALL TO ACTION (DISCORD)
   ========================================================================== */
.discord-cta {
    padding: 80px 0;
    background: linear-gradient(rgba(11, 17, 30, 0.9), rgba(11, 17, 30, 0.9)), radial-gradient(circle, rgba(88, 101, 242, 0.15) 0%, transparent 70%);
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    text-align: center;
}

.cta-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-white);
    line-height: 1.4;
    margin-bottom: 32px;
}

.cta-title span {
    color: var(--accent-discord);
}

/* ==========================================================================
   STOPKA (FOOTER)
   ========================================================================== */
.footer {
    background-color: var(--bg-darker);
    padding: 48px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}

.footer-info .copyright {
    font-size: 15px;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.footer-info .brand-name {
    color: var(--text-white);
    font-weight: 600;
}

.footer-socials {
    display: flex;
    gap: 20px;
}

.footer-socials a {
    font-size: 22px;
    color: var(--text-muted);
    transition: var(--transition);
}

.footer-socials a:hover {
    color: var(--text-white);
    transform: scale(1.1);
}

.footer-socials a[aria-label="Discord"]:hover {
    color: var(--accent-discord);
}

/* ==========================================================================
   MEDIA QUERIES (RESPONSYWNOŚĆ)
   ========================================================================== */
@media (max-width: 992px) {
    .hero-container {
        flex-direction: column;
        text-align: center;
        gap: 48px;
    }
    
    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .hero-stats-card {
        max-width: 480px;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 38px;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .nav-links {
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: var(--bg-darker);
        flex-direction: column;
        gap: 0;
        padding: 16px 0;
        border-bottom: 1px solid var(--border-color);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: var(--transition);
    }
    
    .nav-links.open {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    
    .nav-link {
        padding: 14px 24px;
        display: block;
    }
    
    .nav-link.active::after {
        display: none;
    }
    
    .footer-container {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-actions {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .cta-title {
        font-size: 24px;
    }
}

/* ==========================================================================
   SEKCJA LISTY MODÓW (mody.html)
   ========================================================================== */
.mods-page-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    min-height: calc(100vh - 70px - 150px);
}

.mods-page-header {
    padding: 140px 0 60px;
    text-align: center;
}

.mods-page-header code {
    background: rgba(255,255,255,0.1); 
    padding: 4px 8px; 
    border-radius: 6px; 
    font-family: monospace;
    color: var(--accent-cyan);
}

.btn-all-mods {
    margin-top: 20px;
}

.mods-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    margin-bottom: 100px;
}

.mod-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: 16px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

.mod-card:hover {
    transform: translateY(-6px);
    border-color: var(--accent-blue);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

.mod-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.mod-icon {
    font-size: 28px;
    color: var(--accent-blue);
    background: rgba(37, 99, 213, 0.1);
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}

.mod-info {
    flex: 1;
    overflow: hidden;
}

.mod-info h3 {
    font-size: 16px;
    color: var(--text-white);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mod-meta {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.mod-actions {
    margin-top: auto;
}

.mod-actions .btn {
    width: 100%;
}

.loading-text {
    grid-column: 1 / -1;
    font-size: 18px;
    color: var(--text-muted);
    padding: 40px 0;
}