/* Plik: style.css - Wersja absolutnie finalna, "czysta instalacja" */

:root {
    --color-bg-dark: #1a1423;
    --color-primary-purple: #4a2569;
    --color-accent: #f2d33d;
    --color-text: #e0e0e0;
    --color-white: #ffffff;
    --font-family: 'Poppins', sans-serif;
    --header-height: 80px;
}

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

html { 
    scroll-behavior: smooth; 
    scroll-padding-top: var(--header-height); 
}

body {
    font-family: var(--font-family);
    background-color: var(--color-bg-dark);
    color: var(--color-text);
    background-image: radial-gradient(circle at 15% 50%, rgba(74, 37, 105, 0.3), transparent 40%), radial-gradient(circle at 85% 30%, rgba(74, 37, 105, 0.25), transparent 50%);
    background-attachment: fixed;
}

body.no-scroll { 
    overflow-y: hidden; 
}

.page-wrapper { 
    width: 100%; 
    overflow-x: hidden; 
    position: relative; 
}

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

section { 
    padding: 100px 0; 
}

h1, h2, h3 { 
    color: var(--color-white); 
    font-weight: 700; 
    text-transform: uppercase; 
}

h1 { font-size: 4rem; font-weight: 900; }
h2 { font-size: 2.5rem; text-align: center; margin-bottom: 60px; position: relative; }
h2::after { content: ''; position: absolute; bottom: -15px; left: 50%; transform: translateX(-50%); width: 80px; height: 4px; background-color: var(--color-accent); border-radius: 2px; box-shadow: 0 0 15px var(--color-accent); }
p { line-height: 1.7; font-weight: 300; }
a { color: var(--color-accent); text-decoration: none; transition: color 0.3s ease; }
a:hover { color: var(--color-white); }
.btn { display: inline-block; padding: 12px 30px; background: var(--color-accent); color: var(--color-bg-dark); font-weight: 700; text-transform: uppercase; border: 2px solid var(--color-accent); border-radius: 5px; transition: all 0.3s ease; cursor: pointer; box-shadow: 0 0 20px rgba(242, 211, 61, 0.3); }
.btn:hover { transform: translateY(-3px) scale(1.05); background: transparent; color: var(--color-accent); box-shadow: 0 0 25px rgba(242, 211, 61, 0.6); }

/* --- HEADER --- */
.header { position: fixed; top: 0; left: 0; width: 100%; height: var(--header-height); display: flex; align-items: center; z-index: 1000; background-color: rgba(26, 20, 35, 0.7); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(74, 37, 105, 0.3); }
.navbar { display: flex; justify-content: space-between; align-items: center; width: 100%; }
.logo { display: flex; align-items: center; gap: 15px; }
.logo img { height: 60px; }
.logo-text { font-size: 1.8rem; font-weight: 900; color: var(--color-white); text-transform: uppercase; }
.logo-text .accent-text { color: var(--color-accent); }
.nav-links { list-style: none; display: flex; }
.nav-links li { margin-left: 35px; }
.nav-links a { color: var(--color-text); font-weight: 600; text-transform: uppercase; font-size: 0.9rem; position: relative; padding: 5px 0; }
.nav-links a::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px; background-color: var(--color-accent); transition: width 0.3s ease; }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-toggle { display: none; }

/* === OSTATECZNA, NIEZAWODNA SEKCJA HERO === */
#home {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: var(--header-height);
    padding-bottom: 40px;
    box-sizing: border-box;
}
.hero-content {
    text-align: center;
    max-width: 800px;
}
.hero-logo {
    max-width: 280px;
    width: 100%;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 25px var(--color-accent));
    animation: float 4s ease-in-out infinite;
}
.hero-content h1 { text-shadow: 0 0 10px var(--color-accent), 0 0 20px var(--color-accent), 0 0 30px rgba(74, 37, 105, 0.7); animation: flicker 3s infinite alternate; }
.hero-content p { font-size: 1.2rem; margin: 20px 0 40px; }

@keyframes flicker { 0%, 18%, 22%, 25%, 53%, 57%, 100% { text-shadow: 0 0 4px var(--color-accent), 0 0 11px var(--color-accent), 0 0 19px var(--color-accent), 0 0 40px var(--color-primary-purple), 0 0 80px var(--color-primary-purple); } 20%, 24%, 55% { text-shadow: none; } }
@keyframes float { 0% { transform: translateY(0px); } 50% { transform: translateY(-15px); } 100% { transform: translateY(0px); } }

/* --- POZOSTAŁE SEKCJE --- */
.about-content { display: flex; align-items: center; gap: 50px; }
.about-text { flex: 1; }
.about-image { flex: 1; position: relative; }
.about-image img { width: 100%; border-radius: 10px; border: 3px solid var(--color-primary-purple); box-shadow: 0 10px 30px rgba(0,0,0,0.5); }
.about-image::before { content: ''; position: absolute; top: -20px; left: -20px; width: 100%; height: 100%; border: 5px solid var(--color-accent); border-radius: 10px; z-index: -1; transition: all 0.4s ease; }
.about-image:hover::before { transform: translate(10px, 10px); }

#news { background-color: rgba(0,0,0,0.2); }
.news-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px; }
.news-card { background: var(--color-bg-dark); border: 1px solid var(--color-primary-purple); border-radius: 8px; overflow: hidden; display: flex; flex-direction: column; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.news-card:hover { transform: translateY(-5px); box-shadow: 0 5px 20px rgba(0,0,0,0.4); }
.news-card-img { width: 100%; height: 200px; object-fit: cover; }
.news-content { padding: 20px; flex-grow: 1; display: flex; flex-direction: column; }
.news-content h3 { font-size: 1.2rem; margin-bottom: 10px; }
.news-meta { font-size: 0.8rem; color: #aaa; margin-bottom: 15px; }
.news-content p { flex-grow: 1; margin-bottom: 20px; }
.news-content a { align-self: flex-start; }

.rozgrywki-content { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.liga { background: linear-gradient(145deg, #2a213a, var(--color-bg-dark)); border-radius: 10px; padding: 30px; border: 1px solid var(--color-primary-purple); text-align: center; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.liga:hover { transform: translateY(-10px); box-shadow: 0 0 30px var(--color-primary-purple); }
.liga h3 { color: var(--color-accent); margin-bottom: 15px; font-size: 1.6rem; }
.liga p { margin-bottom: 25px; }

/* === NOWA, INTERAKTYWNA SEKCJA DRUŻYNY (WERSJA BARDZIEJ KOMPAKTOWA) === */
#team { 
    background-color: rgba(0,0,0,0.2); 
}

.team-grid { 
    display: grid; 
    /* Zmniejszamy minimalną szerokość, aby karty były węższe */
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); 
    gap: 30px; 
}

.player-card {
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--color-primary-purple);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    position: relative;
    height: 300px; /* Znacząco zmniejszona wysokość karty */
}

.player-card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 0 35px rgba(74, 37, 105, 0.8);
}

.player-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    filter: grayscale(80%) brightness(0.9);
    transition: transform 0.5s ease, filter 0.5s ease;
}

.player-card:hover .player-card-img {
    transform: scale(1.1);
    filter: grayscale(0%) brightness(1);
}

.player-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 15px 20px; /* Lekko zmniejszony padding */
    text-align: left;
    background: rgba(26, 20, 35, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-top: 1px solid rgba(242, 211, 61, 0.5);
    /* Zmieniony transform: zostawia 65px na mniejszy nick */
    transform: translateY(calc(100% - 65px)); 
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.player-card:hover .player-info {
    transform: translateY(0);
}

.player-info h3 { /* Nickname */
    font-size: 1.6rem; /* Zmniejszona czcionka dla lepszej proporcji */
    color: var(--color-accent);
    margin: 0;
    text-shadow: 0 0 10px var(--color-accent);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Ukrywamy resztę informacji na starcie */
.player-info p1, .player-info p, .player-info h4, .player-info .social-links {
    opacity: 0;
    transition: opacity 0.3s ease-in-out 0.2s;
}

/* Pokazujemy wszystko po najechaniu */
.player-card:hover .player-info p1,
.player-card:hover .player-info p,
.player-card:hover .player-info h4,
.player-card:hover .player-info .social-links {
    opacity: 1;
}

.player-info p1 { /* Rola */
    font-size: 0.9rem; /* Zmniejszona czcionka */
    color: var(--color-text);
    font-weight: 600;
    display: block;
    margin: 5px 0 10px 0; /* Zmniejszone marginesy */
}

.player-info p { /* Imię i nazwisko */
    font-size: 0.8rem;
    color: #ccc;
    margin: 0;
}

.player-info h4 { /* Pozycja */
    font-size: 0.9rem;
    text-transform: uppercase;
    color: var(--color-white);
    margin-top: 5px;
}

.player-info .social-links {
    margin-top: 15px; /* Zmniejszony margines */
}
/* === KONIEC NOWEJ SEKCJI DRUŻYNY === */


#join { background-color: rgba(0,0,0,0.25); text-align: center; }
#join h2 { font-size: 2.2rem; }
#join p { max-width: 800px; margin: 30px auto 40px; font-size: 1.1rem; color: #d1cce8; }
#join .btn { padding: 15px 40px; font-size: 1.2rem; }

#partners { background-color: rgba(0,0,0,0.2); }
.partners-grid { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 50px; }
.partner-logo { height: 60px; filter: grayscale(100%) opacity(0.7); transition: all 0.3s ease; }
.partner-logo:hover { filter: grayscale(0%) opacity(1); transform: scale(1.1); }

.footer { padding: 40px 0; background-color: #110d1a; text-align: center; border-top: 1px solid var(--color-primary-purple); }
.footer p { font-size: 0.9rem; }
.footer .social-links { margin-bottom: 20px; }
.footer .social-links a { margin: 0 15px; }

.reveal { opacity: 0; transform: translateY(50px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 992px) {
    h1 { font-size: 3.2rem; }
    h2 { font-size: 2.2rem; }
    .rozgrywki-content { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    :root { --header-height: 70px; }
    section { padding: 80px 0; }
    h1 { font-size: 2.8rem; }
    h2 { font-size: 2rem; }
    .logo img { height: 45px; }
    .logo-text { font-size: 1.5rem; }
    .nav-links { display: none; }
    .nav-links.active { display: flex; position: fixed; top: 0; left: 0; width: 100%; height: 100vh; background-color: rgba(26, 20, 35, 0.98); backdrop-filter: blur(5px); flex-direction: column; align-items: center; justify-content: center; z-index: 1000; }
    .nav-links.active li { margin: 25px 0; }
    .nav-links.active a { font-size: 1.5rem; }
    .nav-toggle { display: flex; flex-direction: column; cursor: pointer; z-index: 1001; }
    .nav-toggle .bar { width: 25px; height: 3px; background-color: var(--color-white); margin: 4px 0; transition: all 0.3s ease; }
    .nav-toggle.active .bar:nth-child(1) { transform: rotate(45deg) translate(5px, 6px); }
    .nav-toggle.active .bar:nth-child(2) { opacity: 0; }
    .nav-toggle.active .bar:nth-child(3) { transform: rotate(-45deg) translate(5px, -6px); }
    .hero-logo { max-width: 200px; }
    .about-content { flex-direction: column; gap: 40px; }
    .about-text { text-align: center; }
    .about-image::before { display: none; }
    .partners-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
    .partner-logo { height: auto; max-width: 120px; margin: 0 auto; }
}

.modal-container { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 2000; display: flex; justify-content: center; align-items: center; pointer-events: none; opacity: 0; transition: opacity 0.3s ease-in-out; }
.modal-container.active { pointer-events: auto; opacity: 1; }
.modal-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(26, 20, 35, 0.8); backdrop-filter: blur(8px); }
.modal-content { position: relative; background: linear-gradient(145deg, #2a213a, var(--color-bg-dark)); border: 1px solid var(--color-primary-purple); border-radius: 10px; padding: 40px; max-width: 800px; width: 90%; max-height: 90vh; overflow-y: auto; z-index: 2001; transform: scale(0.95); transition: transform 0.3s ease-in-out; }
.modal-container.active .modal-content { transform: scale(1); }
.modal-content h3 { font-size: 1.8rem; margin-bottom: 5px; color: var(--color-accent); }
.modal-content .news-meta { margin-bottom: 25px; }
.modal-content .modal-img { width: 100%; height: auto; max-height: 300px; object-fit: cover; border-radius: 8px; margin-bottom: 25px; }
.modal-content p { margin-bottom: 15px; }
.modal-close { position: absolute; top: 15px; right: 20px; background: none; border: none; font-size: 2.5rem; font-weight: 300; color: var(--color-text); cursor: pointer; transition: color 0.3s, transform 0.3s; }
.modal-close:hover { color: var(--color-accent); transform: rotate(90deg); }