/* style.css */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700;800&display=swap');

:root {
    --primary: #0056b3;
    --secondary: #e63946;
    --dark: #1a1a1a;
    --light: #f4f7f6;
    --accent: #ffbe0b;
}

/* --- WCAG: DOSTĘPNOŚĆ --- */
body.high-contrast { background: #000 !important; color: #ffff00 !important; }
body.high-contrast nav, body.high-contrast .content-card, body.high-contrast footer, body.high-contrast .accessibility-bar { background: #000 !important; border: 2px solid #ffff00 !important; }
body.high-contrast a, body.high-contrast h1, body.high-contrast h2, body.high-contrast h3, body.high-contrast .logo-text, body.high-contrast .stat-number { color: #ffff00 !important; }
body.high-contrast .btn-red, body.high-contrast .btn-blue { background: #000 !important; border: 2px solid #ffff00 !important; color: #ffff00 !important; }

body { font-family: 'Montserrat', sans-serif; margin: 0; background: var(--light); color: var(--dark); line-height: 1.6; transition: 0.3s; }

/* PASEK DOSTĘPNOŚCI */
.accessibility-bar { background: #333; padding: 5px 5%; display: flex; justify-content: flex-end; gap: 10px; }
.accessibility-bar button { background: #444; color: #fff; border: 1px solid #666; padding: 5px 12px; cursor: pointer; border-radius: 4px; font-size: 0.8rem; }

/* NAWIGACJA Z MENU ROZWIJANYM */
nav { background: #fff; height: 80px; display: flex; justify-content: space-between; align-items: center; padding: 0 5%; position: sticky; top: 0; z-index: 1000; box-shadow: 0 2px 10px rgba(0,0,0,0.1); }
.logo-link { display: flex; align-items: center; text-decoration: none; gap: 10px; }
.logo-img { height: 50px; }
.logo-text { font-weight: 800; color: var(--primary); font-size: 1.1rem; text-transform: uppercase; }

.nav-links { display: flex; list-style: none; gap: 15px; margin: 0; }
.nav-links a { text-decoration: none; color: var(--dark); font-weight: 700; font-size: 0.75rem; text-transform: uppercase; transition: 0.3s; }
.nav-links a:hover { color: var(--secondary); }

/* DROPDOWN */
.dropdown { position: relative; }
.dropdown-content { display: none; position: absolute; background: #fff; min-width: 200px; box-shadow: 0 8px 16px rgba(0,0,0,0.1); border-radius: 5px; top: 100%; }
.dropdown:hover .dropdown-content { display: block; }
.dropdown-content a { padding: 12px 16px; display: block; text-transform: none; border-bottom: 1px solid #eee; }

/* KOLOROWE PRZYCISKI */
.btn-red { background: var(--secondary); color: white !important; padding: 12px 25px; border-radius: 50px; text-decoration: none; font-weight: bold; display: inline-block; transition: 0.3s; border: none; cursor: pointer; }
.btn-blue { background: var(--primary); color: white !important; padding: 12px 25px; border-radius: 50px; text-decoration: none; font-weight: bold; display: inline-block; transition: 0.3s; border: none; cursor: pointer; }
.btn-red:hover, .btn-blue:hover { transform: translateY(-3px); box-shadow: 0 5px 15px rgba(0,0,0,0.2); }

/* STATYSTYKI */
.stats-container { display: flex; justify-content: space-around; padding: 40px 5%; background: var(--primary); color: white; text-align: center; flex-wrap: wrap; }
.stat-item h2 { font-size: 3rem; margin: 0; color: var(--accent); }

/* KOMPAKTOWY DESIGN KALENDARZA */
.calendar-wrapper { 
    max-width: 400px; 
    margin: 0 auto; 
    background: #fff; 
    border-radius: 10px; 
    padding: 10px; 
    border: 1px solid #ddd;
}

.calendar-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.calendar-header h3 { font-size: 0.9rem; margin: 0; text-transform: uppercase; }

.calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; text-align: center; }
.day-name { font-weight: bold; color: #aaa; font-size: 0.7rem; padding-bottom: 5px; }

.calendar-day { 
    aspect-ratio: 1/1; 
    font-size: 0.8rem; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    border-radius: 4px; 
    cursor: pointer; 
    background: #fdfdfd; 
    border: 1px solid #f0f0f0;
}

.calendar-day:hover { background: var(--primary); color: white; }
.calendar-day.has-event { background: #e7f1ff; border: 1px solid var(--primary); font-weight: bold; position: relative; }
.calendar-day.has-event::after { 
    content: ''; width: 4px; height: 4px; background: var(--secondary); 
    border-radius: 50%; position: absolute; bottom: 2px; 
}

#event-details { 
    max-width: 400px; 
    margin: 10px auto; 
    border: 2px solid var(--primary); 
    border-radius: 10px; 
    padding: 12px; 
    display: none; 
    background: white; 
}
/* Szczegóły pod kalendarzem - teraz bardziej zbite */
#event-details { 
    max-width: 450px; 
    margin: 10px auto 0; 
    padding: 15px; 
    border-radius: 10px; 
    background: #fff; 
    border: 1px solid #0056b3; 
    display: none; 
}

#event-details h4 { margin-top: 0; font-size: 0.9rem; color: var(--primary); }

.training-entry {
    font-size: 0.85rem;
    padding: 8px;
    margin-bottom: 5px;
    border-radius: 5px;
    border-left: 3px solid var(--primary);
    background: #f9f9f9;
}
/* OPP STYLE */
.opp-card { background: #fff; padding: 40px; border-radius: 20px; box-shadow: 0 10px 30px rgba(0,0,0,0.05); border-top: 8px solid var(--secondary); text-align: center; }
.krs-box { background: var(--primary); color: var(--accent); font-size: 2.5rem; font-weight: 800; padding: 20px; border-radius: 15px; display: inline-block; margin: 20px 0; letter-spacing: 2px; }

/* HERO I KONTENERY */
.hero-header { background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.5)), url('grafika/banner_uks1.jpg'); background-size: cover; background-position: center; height: 250px; display: flex; align-items: center; justify-content: center; color: #fff; text-align: center; }
.main-container { max-width: 1100px; margin: 30px auto; padding: 0 20px; }
.content-card { background: #fff; padding: 30px; border-radius: 15px; box-shadow: 0 5px 20px rgba(0,0,0,0.05); margin-bottom: 30px; }

footer { text-align: center; padding: 40px; background: #fff; color: #777; font-size: 0.8rem; }

.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; border: none; background: none; }
.bar { width: 25px; height: 3px; background: var(--primary); border-radius: 5px; }

@media (max-width: 1024px) {
    .hamburger { display: flex; }
    .nav-links { position: fixed; right: -100%; top: 115px; flex-direction: column; background: #fff; width: 100%; height: 100vh; transition: 0.3s; text-align: center; }
    .nav-links.active { right: 0; }
    .dropdown-content { position: static; box-shadow: none; width: 100%; background: #f9f9f9; }
}
/* STYL DLA MOTTO */
.motto-section {
    background: #fff;
    padding: 40px 10% ;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.motto-text {
    font-size: 1.6rem;
    font-style: italic;
    color: var(--primary);
    font-weight: 700;
    margin: 0;
    position: relative;
    display: inline-block;
}

/* Dekoracyjne cudzysłowy */
.motto-text::before { content: '„'; font-size: 3rem; color: var(--accent); vertical-align: middle; margin-right: 10px; }
.motto-text::after { content: '”'; font-size: 3rem; color: var(--accent); vertical-align: middle; margin-left: 10px; }

@media (max-width: 768px) {
    .motto-text { font-size: 1.2rem; }
}
/* GALERIA - NOWOCZESNY GRID */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.gallery-item {
    overflow: hidden;
    border-radius: 10px;
    height: 200px; /* Stała wysokość kafelka */
    cursor: pointer;
    background: #eee;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* To sprawia, że zdjęcie nie jest rozciągnięte */
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* LIGHTBOX - MODAL (POWIĘKSZONE ZDJĘCIE) */
.lightbox-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.9);
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.lightbox-modal img {
    max-width: 90%;
    max-height: 80vh;
    border-radius: 5px;
    box-shadow: 0 0 20px rgba(255,255,255,0.2);
}

.close-lightbox {
    position: absolute;
    top: 20px; right: 30px;
    color: white;
    font-size: 40px;
    cursor: pointer;
    font-weight: bold;
}
/* WIDGET FANI MANI */
.fanimani-fixed {
    position: fixed;
    right: -10px; /* Lekko schowany */
    top: 60%;
    transform: translateY(-50%);
    z-index: 2001;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.fanimani-fixed:hover {
    right: 0; /* Wysuwa się po najechaniu */
}

.fanimani-link {
    background: #ff6a00; /* Pomarańczowy kolor FaniMani */
    color: white !important;
    text-decoration: none;
    display: flex;
    align-items: center;
    padding: 15px 10px;
    border-radius: 12px 0 0 12px;
    box-shadow: -2px 4px 15px rgba(0,0,0,0.2);
    writing-mode: vertical-rl; /* Pionowy tekst */
    text-orientation: mixed;
    font-weight: 800;
    font-size: 0.75rem;
    letter-spacing: 1px;
    border: 2px solid white;
    border-right: none;
}

.fanimani-link i {
    margin-bottom: 10px;
    font-size: 1.2rem;
}

/* Ukrywamy na bardzo małych telefonach, żeby nie przeszkadzało w czytaniu */
@media (max-width: 480px) {
    .fanimani-fixed { display: none; }
}

/* Obsługa wysokiego kontrastu */
body.high-contrast .fanimani-link {
    background: #000 !important;
    color: #ffff00 !important;
    border: 2px solid #ffff00 !important;
}
/* STYL DLA LISTY DOKUMENTÓW */
.document-list {
    list-style: none;
    padding: 0;
}

.doc-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: #fdfdfd;
    border: 1px solid #eee;
    border-radius: 8px;
    margin-bottom: 10px;
    transition: 0.3s;
}

.doc-item:hover {
    background: #f0f7ff;
    border-color: var(--primary);
}

.doc-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.doc-icon {
    font-size: 1.5rem;
    color: var(--secondary);
}

.doc-name {
    font-weight: 600;
    font-size: 0.95rem;
}

.btn-download {
    background: var(--primary);
    color: white !important;
    padding: 8px 15px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: bold;
}

/* STYL DLA NOWYCH SEKCJI STRONY GŁÓWNEJ */
.activity-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

.info-box {
    background: #fff;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border-top: 5px solid var(--primary);
}

.visitor-counter-box {
    background: var(--dark);
    color: var(--accent);
    padding: 20px;
    border-radius: 10px;
    display: inline-block;
    font-family: 'Courier New', Courier, monospace;
    font-size: 2.5rem;
    font-weight: bold;
    letter-spacing: 5px;
    margin: 20px 0;
    border: 2px solid var(--accent);
}

.funding-logos {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 15px;
}

.funding-link {
    color: var(--primary);
    font-weight: bold;
    text-decoration: none;
    padding: 5px 10px;
    border: 1px solid var(--primary);
    border-radius: 5px;
    transition: 0.3s;
}

.funding-link:hover {
    background: var(--primary);
    color: white;
}

@media (max-width: 768px) {
    .activity-section { grid-template-columns: 1fr; }
}