/* Wczytanie czcionki z pliku */
@font-face {
    font-family: 'Outfit';
    src: url('Outfit-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

/* Reset marginesów i wymuszenie czcionki */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif !important; 
}

body {
    color: #ffffff;
    background-image: url('background.jpg');
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    background-color: #111111; 
}

/* Górne menu */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 50px; 
    background-color: rgba(18, 18, 18, 0.95);
    display: flex;
    align-items: center;
    justify-content: center; 
    z-index: 1000;
}

.logo {
    position: absolute;
    left: 0; 
    height: 100%; 
    display: flex;
    align-items: center;
}

.logo img {
    height: 100%; 
    width: auto;
    display: block;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 30px; 
}

nav a {
    color: #b3b3b3;
    text-decoration: none;
    font-size: 14px;
    letter-spacing: 0.5px;
    transition: color 0.2s ease-in-out;
}

nav a:hover, nav a.active {
    color: #ffffff;
}

/* Środkowy główny panel */
main {
    width: 50vw; 
    min-width: 700px;
    min-height: 100vh; 
    margin: 0 auto; 
    padding-top: 70px; 
    background-color: #2b2b2b; 
}

.content-section {
    display: none; 
    padding: 0 40px 40px 40px;
}

.content-section.active {
    display: block; 
}

h2 {
    margin-bottom: 20px;
    font-weight: normal;
    border-bottom: 1px solid #444;
    padding-bottom: 10px;
}

/* --- STYLE DLA SEKCJI DRUŻYNY --- */
.teams-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.team-card {
    background-color: #1e1e1e; 
    border: 1px solid #3a3a3a;
    border-radius: 8px;
    padding: 25px 15px;
    text-align: center;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.team-card:hover {
    transform: translateY(-5px); 
    border-color: #666;
}

.team-logo {
    width: 90px;
    height: 90px;
    object-fit: contain; 
    margin-bottom: 15px;
    border-radius: 50%; 
    background-color: #111; 
}

.team-card h3 {
    margin-bottom: 15px;
    font-size: 1.3rem;
    font-weight: normal;
    color: #ffffff;
    border-bottom: 1px solid #3a3a3a;
    padding-bottom: 10px;
}

/* Stylowanie list graczy */
.player-list {
    list-style: none; 
    padding: 0;
    margin: 0;
    color: #cccccc;
    font-size: 0.95rem;
    line-height: 1.8; 
}

.player-list .captain {
    color: #ffffff;
    font-weight: bold;
}

.reserve-title {
    margin-top: 15px;
    font-size: 0.8rem;
    color: #888888;
    text-transform: uppercase;
    border-bottom: 1px dashed #3a3a3a;
    padding-bottom: 3px;
    margin-bottom: 5px;
}

.player-list .reserve {
    color: #999999;
}

/* --- PODRĘCZNIK GRACZA --- */
.rulebook h3 {
    color: #ffffff;
    margin-top: 35px;
    margin-bottom: 15px;
    font-size: 1.25rem;
    font-weight: normal;
    border-bottom: 1px solid #3a3a3a;
    padding-bottom: 8px;
}

.rulebook p {
    color: #cccccc;
    line-height: 1.7;
    margin-bottom: 15px;
    font-size: 1.05rem;
}

.rulebook ul {
    color: #cccccc;
    line-height: 1.7;
    margin-bottom: 25px;
    padding-left: 25px;
    font-size: 1.05rem;
}

.rulebook li {
    margin-bottom: 10px;
}

.rulebook strong {
    color: #ffffff;
    font-weight: bold;
}

.commands-list code {
    background-color: #1a1a1a;
    border: 1px solid #444;
    padding: 3px 8px;
    border-radius: 5px;
    color: #ffb703; 
    font-family: monospace !important; 
    font-size: 1rem;
    letter-spacing: 1px;
}

/* --- STATYCZNE EFEKTY GLOW (MIEJSCA 1, 2 ORAZ PÓŁFINAŁ) --- */
.gold-glow {
    position: relative;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.6); 
    border-color: #ffd700;
}

.silver-glow {
    position: relative;
    box-shadow: 0 0 15px rgba(192, 192, 192, 0.6); 
    border-color: #c0c0c0;
}

.bronze-glow {
    position: relative;
    box-shadow: 0 0 15px rgba(205, 127, 50, 0.6); 
    border-color: #cd7f32;
}

/* Plakietki nad kartami */
.gold-glow::before, .silver-glow::before, .bronze-glow::before {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: #111;
    padding: 3px 12px;
    font-size: 0.85rem;
    border-radius: 12px;
    font-weight: bold;
    white-space: nowrap;
}

.gold-glow::before {
    content: "🏆 1. MIEJSCE";
    color: #ffd700;
    border: 1px solid #ffd700;
}

.silver-glow::before {
    content: "🥈 2. MIEJSCE";
    color: #c0c0c0;
    border: 1px solid #c0c0c0;
}

.bronze-glow::before {
    content: "🥉 PÓŁFINALISTA";
    color: #cd7f32;
    border: 1px solid #cd7f32;
}
/* --- LORE: PIETRUCHA GLOW --- */
.pietrucha-glow {
    position: relative;
    box-shadow: 0 0 15px rgba(176, 38, 255, 0.6); /* Intensywny fiolet */
    border-color: #b026ff;
}

.pietrucha-glow::before {
    content: "🌿 PIETRUCHA";
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: #111;
    color: #b026ff;
    padding: 3px 12px;
    font-size: 0.85rem;
    border-radius: 12px;
    border: 1px solid #b026ff;
    font-weight: bold;
    white-space: nowrap;
    z-index: 2; /* Upewnia się, że napis jest zawsze na wierzchu */
}
/* ========================================= */
/* --- RESPONSYWNOŚĆ (TELEFONY I TABLETY)--- */
/* ========================================= */
/* --- STRONA GŁÓWNA --- */
.home-text p {
    color: #cccccc;
    line-height: 1.7;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.home-text ul {
    color: #cccccc;
    line-height: 1.7;
    margin-bottom: 25px;
    padding-left: 25px;
    font-size: 1.05rem;
}

.home-text li {
    margin-bottom: 12px;
}

/* --- SOCIALS --- */
.social-links {
    display: flex;
    gap: 20px;
    margin-top: 30px;
}

.social-btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    color: white;
    font-size: 1rem;
    transition: transform 0.2s ease, filter 0.2s ease;
    text-align: center;
}

.social-btn:hover {
    transform: translateY(-3px);
    filter: brightness(1.2);
}

.social-btn.discord {
    background-color: #5865F2; /* Oficjalny kolor Discorda */
}

.social-btn.youtube {
    background-color: #FF0000; /* Oficjalny kolor YouTube */
}

/* --- ARCHIWUM ORAZ KARTY MECZÓW --- */
.stage-title {
    color: #ffffff;
    font-size: 1.3rem;
    font-weight: normal;
    border-bottom: 1px solid #444;
    padding-bottom: 10px;
    margin-bottom: 25px;
    text-transform: uppercase;
}

.matches-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.match-card {
    background-color: #1e1e1e;
    border: 1px solid #3a3a3a;
    border-radius: 8px;
    padding: 20px;
    transition: transform 0.2s ease, border-color 0.2s ease;
    display: flex;
    flex-direction: column;
}

.match-card:hover {
    transform: translateY(-3px);
    border-color: #666;
}

.match-header {
    font-size: 0.85rem;
    color: #888888;
    margin-bottom: 12px;
    text-transform: uppercase;
    border-bottom: 1px dashed #3a3a3a;
    padding-bottom: 8px;
}

.match-teams {
    font-size: 1.15rem;
    font-weight: bold;
    color: #ffffff;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Okienko z wynikiem np. "2 : 0" */
.match-teams span {
    color: #ffb703; 
    background: #111111;
    padding: 4px 10px;
    border-radius: 4px;
    border: 1px solid #444;
    font-size: 1rem;
    white-space: nowrap;
    margin: 0 10px;
}

/* --- WYNIKI MAP (STYL HLTV) --- */
.match-details {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 15px;
    flex-grow: 1;
}

.map-result {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.3);
    padding: 6px 12px;
    border-radius: 4px;
    border: 1px solid #333;
}

.map-name {
    color: #888;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    flex-grow: 1;
    text-align: center;
}

.score-left, .score-right {
    font-size: 1.05rem;
    font-weight: bold;
    width: 30px;
    text-align: center;
    color: #555; /* Szary kolor dla przegranego */
}

/* Złoty kolor dla punktów zwycięzcy danej mapy */
.score-left.winner, .score-right.winner {
    color: #ffb703; 
}
/* Przycisk Dema */
.demo-btn {
    display: inline-block;
    width: 100%;
    text-align: center;
    background-color: #2b2b2b;
    color: #b3b3b3;
    text-decoration: none;
    padding: 10px 0;
    border-radius: 4px;
    border: 1px solid #444;
    font-size: 0.9rem;
    transition: background-color 0.2s, color 0.2s, border-color 0.2s;
    margin-top: auto;
}

.demo-btn:hover {
    background-color: #ffb703;
    color: #111111;
    border-color: #ffb703;
    font-weight: bold;
}

@media (max-width: 900px) {
    /* Uelastycznienie szerokości głównego kontenera */
    .social-links {
        flex-direction: column;
    }
	main {
        width: 95vw;
        min-width: 0; /* Wyłącza sztywne 700px z desktopu! */
        padding-top: 130px; /* Więcej miejsca, by menu nie nachodziło na nagłówki */
    }

    /* Przebudowa paska nawigacji */
    header {
        height: auto;
        flex-direction: column;
        padding: 10px 0;
    }

    /* Ułożenie logo w menu mobilnym */
    .logo {
        position: relative;
        left: 0;
        height: 40px;
        margin-bottom: 12px;
    }

    /* Zawijanie linków, jeśli się nie mieszczą */
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px 20px;
        padding: 0 10px;
    }

    /* Zmniejszenie marginesów wewnętrznych na telefonie */
    .content-section {
        padding: 0 15px 30px 15px;
    }

    /* Karty drużyn automatycznie ułożą się w pojedynczą kolumnę */
    .teams-grid {
        gap: 25px; /* Odrobinę większy odstęp między kartami na małym ekranie */
    }
}
