:root {
    --primary-green: #004d40;
    /* Ciemna zieleń - wysoki kontrast */
    --accent-orange: #e65100;
    /* Pomarańczowy lampionowy */
    --text-dark: #212121;
    --white: #ffffff;
    --bg-light: #f5f5f5;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
}

/* WCAG: Skip to content link dla klawiatury */
.skip-link {
    position: absolute;
    left: -10000px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.skip-link:focus {
    position: static;
    width: auto;
    height: auto;
    background: var(--accent-orange);
    color: white;
    padding: 10px;
}

header {
    background-color: var(--primary-green);
    color: var(--white);
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    text-decoration: none;
    color: var(--white);
}

nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
}

nav a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
}

nav a:hover,
nav a:focus {
    text-decoration: underline;
    outline: 2px solid var(--accent-orange);
}

.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('https://images.unsplash.com/photo-1441974231531-c6227db76b6e?auto=format&fit=crop&w=1600&q=80');
    background-size: cover;
    background-position: center;
    color: var(--white);
    padding: 100px 5%;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.search-container {
    background: var(--white);
    padding: 20px;
    border-radius: 8px;
    display: inline-block;
    width: 100%;
    max-width: 600px;
}

.search-container label {
    color: var(--text-dark);
    display: block;
    margin-bottom: 10px;
    font-weight: bold;
}

.search-box {
    display: flex;
    gap: 10px;
}

input[type="text"] {
    flex: 1;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
}

.btn-search {
    background-color: var(--accent-orange);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1rem;
}

.btn-search:hover {
    background-color: #bf4300;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    padding: 50px 5%;
    background: var(--white);
}

.feature-card {
    text-align: center;
    padding: 20px;
}

.feature-card h2 {
    color: var(--primary-green);
}

footer {
    background: var(--primary-green);
    color: var(--white);
    text-align: center;
    padding: 20px;
    margin-top: 50px;
}

@media (max-width: 768px) {

    header,
    nav ul,
    .search-box {
        flex-direction: column;
        text-align: center;
    }

    nav ul {
        gap: 10px;
        padding: 10px 0;
    }
}

.arena-header {
    /* Ścieżka do Twojego zdjęcia - podmień nazwe pliku */
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../../../img/zpk/zpk-osowa-gora.png');
    background-size: cover;
    background-position: center;
    background-attachment: scroll;
    /* Zdjęcie przesuwa się razem ze stroną */

    color: white;
    padding: 80px 5%;
    /* Zwiększony padding, żeby zdjęcie było bardziej widoczne */
    border-bottom: 5px solid var(--accent-orange);
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 200px;
}

.arena-header h1 {
    margin: 0;
    font-size: 2.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    /* Dodatkowa czytelność */
}

.arena-header p {
    margin: 10px 0 0 0;
    font-size: 1.2rem;
    opacity: 0.9;
}

.arena-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    padding: 40px 5%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Statystyki areny - WCAG: Czytelna siatka */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.stat-item {
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-green);
}

.stat-label {
    font-size: 0.9rem;
    color: #666;
}

/* Panel pobierania */
.download-box {
    background: white;
    padding: 30px;
    border-radius: 8px;
    border: 2px solid var(--primary-green);
    position: sticky;
    top: 20px;
}

.btn-download {
    display: block;
    width: 100%;
    padding: 15px;
    margin-bottom: 15px;
    text-align: center;
    text-decoration: none;
    font-weight: bold;
    border-radius: 4px;
    transition: transform 0.2s;
}

.btn-pdf {
    background-color: var(--accent-orange);
    color: white;
}

.btn-gpx {
    background-color: var(--primary-green);
    color: white;
}

.btn-download:hover,
.btn-download:focus {
    transform: scale(1.02);
    outline: 3px solid black;
    /* WCAG: Wyraźny focus */
}

@media (max-width: 900px) {
    .arena-container {
        grid-template-columns: 1fr;
    }
}

.nearby-arenas {
    background-color: var(--bg-light);
    padding: 60px 5%;
    border-top: 1px solid #ddd;
}

.nearby-arenas h2 {
    text-align: center;
    color: var(--primary-green);
    margin-bottom: 40px;
}

.arena-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
}

.arena-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid #eee;
}

.arena-card:hover,
.arena-card:focus {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
    outline: 2px solid var(--accent-orange);
}

.arena-card-img {
    height: 160px;
    background-color: #ddd;
    background-size: cover;
    background-position: center;
}

.arena-card-content {
    padding: 20px;
}

.arena-card-content h3 {
    margin: 0 0 10px 0;
    font-size: 1.2rem;
    color: var(--primary-green);
}

.arena-tag {
    display: inline-block;
    background: #e0f2f1;
    color: var(--primary-green);
    font-size: 0.75rem;
    padding: 3px 8px;
    border-radius: 4px;
    margin-bottom: 10px;
}

.start-location {
    margin-top: 30px;
    background: #e0f2f1;
    /* Jasny turkusowy/zielony - wyróżnienie sekcji */
    padding: 20px;
    border-radius: 8px;
}

.map-container {
    width: 100%;
    height: 250px;
    border: 0;
    border-radius: 4px;
    margin: 15px 0;
}

.btn-nav {
    display: inline-flex;
    align-items: center;
    background-color: #4285F4;
    /* Kolor Google Maps */
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    font-size: 0.9rem;
}

.btn-nav:hover {
    background-color: #357ae8;
}

.btn-nav i {
    margin-right: 8px;
}

.partners-section {
    background-color: var(--white);
    padding: 30px 5%;
    border-top: 1px solid #ddd;
    text-align: center;
}

.partners-section h2 {
    font-size: 1rem;
    color: #666;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.partners-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.partners-logos img {
    max-height: 60px;
    /* Standardowa wysokość dla logotypów ministerstw */
    width: auto;
    /* Opcjonalnie: logotypy w skali szarości, które kolorują się po najechaniu */
    /* transition: filter 0.3s; */
}

@media (max-width: 600px) {
    .partners-logos {
        gap: 20px;
    }

    .partners-logos img {
        max-height: 60px;
    }
}

.arena-card.is-new {
    border: 3px solid var(--accent-orange);
    /* Ramka w kolorze lampionu */
    position: relative;
    transform: scale(1.02);
    /* Subtelne powiększenie, by ją wyróżnić */
}

/* Plakietka "NOWA" w rogu zdjęcia */
.arena-card.is-new::before {
    content: "NOWA ARENA";
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: var(--accent-orange);
    color: white;
    padding: 5px 12px;
    font-size: 0.7rem;
    font-weight: bold;
    border-radius: 4px;
    z-index: 10;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.arena-accessible-badge {
    background-color: #0056b3;
    /* Głęboki niebieski */
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: bold;
    border: 2px solid #ffd600;
    /* Żółta obwódka dla kontrastu */
    margin-bottom: 20px;
}

/* Ikona Braille'a lub dłoni */
.arena-accessible-badge::before {
    content: "⠿";
    /* Symbol Braille'a w unicode */
    font-size: 1.4rem;
}