/* === OGÓLNE === */
body { background-color: #f9f9f9; }
h1, h2, h3 { color: #2c3e50; }

/* === NAWIGACJA === */
.navbar-brand { font-size: 1.4em; }

/* === HERO === */
.hero-section {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    min-height: 350px;
    display: flex;
    align-items: center;
}
.hero-overlay { width: 100%; }

.hero-section h1,
.hero-section .display-3,
.hero-section h1.display-3 {
    color: #ffffff !important;
    text-shadow: 0 0 30px rgba(240, 192, 64, 0.8), 0 0 60px rgba(240, 192, 64, 0.4), 3px 3px 10px rgba(0,0,0,0.8) !important;
}

.hero-section .lead {
    color: #f0c040 !important;
    text-shadow: 1px 1px 6px rgba(0,0,0,0.6) !important;
    font-weight: 600;
}

/* === HERO PRZYCISKI === */
.hero-btn {
    min-width: 220px;
    font-size: 1.2em;
    letter-spacing: 1px;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.hero-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(255,255,255,0.2);
}

.hero-separator {
    font-size: 2em;
    color: rgba(255,255,255,0.3) !important;
    user-select: none;
}

/* === STATYSTYKI === */
.stat-card {
    background: #fff;
    border-radius: 12px;
    padding: 25px 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.2s;
}
.stat-card:hover { transform: translateY(-3px); }
.stat-number { font-size: 2.5em; font-weight: 800; color: #e74c3c; }
.stat-label { font-size: 0.95em; color: #666; font-weight: 600; }
.stat-player {
    font-size: 0.85em;
    color: #f0c040;
    font-weight: 700;
    margin-top: 5px;
    font-style: italic;
}

/* === SEKCJE === */
.section-title {
    text-align: center;
    margin-bottom: 30px;
    font-weight: bold;
    color: #2c3e50;
}

/* === WYDARZENIA === */
.event-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border-left: 4px solid #3498db;
    transition: transform 0.2s;
}
.event-card:hover { transform: translateY(-3px); }
.event-date {
    font-size: 0.85em;
    font-weight: 700;
    color: #3498db;
    text-transform: uppercase;
    margin-bottom: 8px;
}

/* === WYNIKI === */
.result-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* === TABELE (liga, turnieje) === */
.summary { text-align: center; font-weight: bold; margin-bottom: 10px; color: #34495e; }
table th, table td { text-align: center; cursor: pointer; }
.table-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 50px;
}
.table-container table {
    min-width: 600px;
}
tr.first-place > td { background-color: #ffd700 !important; color: #000 !important; }
tr.second-place > td { background-color: #c0c0c0 !important; color: #000 !important; }
tr.third-place > td { background-color: #cd7f32 !important; color: #fff !important; }
tr.first-place:hover > td { background-color: #ffea70 !important; }
tr.second-place:hover > td { background-color: #e0e0e0 !important; }
tr.third-place:hover > td { background-color: #d89454 !important; }
table.table-hover tbody tr:hover:not(.first-place):not(.second-place):not(.third-place) td { background-color: #f0f0f0 !important; }
th.sortable::after { content: '⇅'; font-size: 0.8em; margin-left: 5px; color: #999; }
th.sorted-asc::after { content: '⬆️'; color: #007bff; }
th.sorted-desc::after { content: '⬇️'; color: #007bff; }

/* === TURNIEJ KARTY === */
.tournament-card {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border-top: 4px solid #e74c3c;
    transition: transform 0.2s;
}
.tournament-card:hover { transform: translateY(-3px); }
.tournament-card h5 { color: #2c3e50; font-weight: 700; }
.tournament-date { color: #e74c3c; font-weight: 700; font-size: 0.85em; text-transform: uppercase; }
.tournament-badge { font-size: 0.8em; }

/* === TURNIEJ LINK === */
.tournament-link {
    color: #2c3e50;
    text-decoration: none;
    border-bottom: 2px dashed #e74c3c;
    transition: all 0.3s ease;
}
.tournament-link:hover {
    color: #e74c3c;
    border-bottom-style: solid;
}

/* === FOOTER === */
footer { margin-top: 50px; }
footer p.mb-1 { color: #ffffff !important; }
footer .text-muted { color: #adb5bd !important; }
footer .small { color: #9e9e9e !important; }

/* === PASEK PARTNERÓW — KARUZELA === */
.partners-bar {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-bottom: 3px solid #f0c040;
    padding: 10px 0;
    overflow: hidden;
}

.partners-label {
    color: #f0c040;
    font-weight: 800;
    font-size: 1.2em;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-shadow: 0 0 10px rgba(240, 192, 64, 0.4);
    margin-bottom: 8px;
}

.partners-scroll {
    overflow: hidden;
    position: relative;
    mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}

.partners-track {
    display: flex;
    gap: 20px;
    width: max-content;
    animation: scrollPartners 30s linear infinite;
}

.partners-track:hover {
    animation-play-state: paused;
}

@keyframes scrollPartners {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.partner-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ffffff;
    text-decoration: none;
    font-size: 0.95em;
    font-weight: 700;
    padding: 8px 16px;
    border-radius: 25px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(240, 192, 64, 0.3);
    white-space: nowrap;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.partner-link:hover {
    background: rgba(240, 192, 64, 0.25);
    color: #f0c040;
    border-color: #f0c040;
    box-shadow: 0 0 15px rgba(240, 192, 64, 0.3);
}

.partner-logo {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #f0c040;
    box-shadow: 0 0 8px rgba(240, 192, 64, 0.4);
}

/* === CTA PARTNERZY === */
.partners-cta {
    color: #adb5bd;
    font-size: 0.8em;
    padding-top: 6px;
    border-top: 1px solid rgba(240, 192, 64, 0.15);
}

.partners-cta a {
    color: #f0c040;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.partners-cta a:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* === O NAS === */
.about-card {
    background: #fff;
    border-radius: 12px;
    padding: 35px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    line-height: 1.8;
    font-size: 1.05em;
    color: #444;
}

.about-heading {
    color: #2c3e50;
    font-weight: 800;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid #f0c040;
}

/* TIMELINE */
.timeline {
    position: relative;
    padding-left: 40px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, #f0c040, #e74c3c);
    border-radius: 3px;
}

.timeline-item {
    position: relative;
    margin-bottom: 30px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -33px;
    top: 5px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #f0c040;
    border: 3px solid #fff;
    box-shadow: 0 0 0 3px #f0c040;
}

.timeline-date {
    font-size: 0.85em;
    font-weight: 700;
    color: #e74c3c;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.timeline-content {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border-left: 3px solid #f0c040;
}

.timeline-content h5 {
    color: #2c3e50;
    font-weight: 700;
    margin-bottom: 8px;
}

.timeline-content p {
    color: #666;
    margin-bottom: 0;
}

/* WARTOŚCI */
.about-value-card {
    background: #fff;
    border-radius: 12px;
    padding: 30px 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.2s;
}

.about-value-card:hover {
    transform: translateY(-5px);
}

.about-icon {
    font-size: 3em;
    margin-bottom: 15px;
}

.about-value-card h5 {
    color: #2c3e50;
    font-weight: 700;
    margin-bottom: 10px;
}

.about-value-card p {
    color: #666;
    font-size: 0.95em;
    margin-bottom: 0;
}

/* === STREAM === */
.stream-container {
    max-width: 900px;
    margin: 0 auto;
}

.stream-status-bar {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: 20px;
    font-weight: 800;
    font-size: 0.9em;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.stream-status-bar.live {
    background: #e74c3c;
    color: #fff;
    animation: pulse-live 2s ease-in-out infinite;
}

.stream-status-bar.offline {
    background: #6c757d;
    color: #fff;
}

.stream-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #fff;
    animation: blink 1s ease-in-out infinite;
}

.stream-dot-off {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #adb5bd;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

@keyframes pulse-live {
    0%, 100% { box-shadow: 0 0 0 0 rgba(231, 76, 60, 0.4); }
    50% { box-shadow: 0 0 0 10px rgba(231, 76, 60, 0); }
}

.stream-info h4 {
    color: #2c3e50;
    font-weight: 700;
}

.stream-offline-box {
    max-width: 700px;
    margin: 0 auto;
}

.stream-offline-content {
    background: #fff;
    border-radius: 12px;
    padding: 50px 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    margin-top: 15px;
}

.stream-offline-icon {
    font-size: 4em;
    margin-bottom: 20px;
    opacity: 0.5;
}

.stream-offline-content h3 {
    color: #2c3e50;
    font-weight: 700;
}

/* ARCHIWUM STREAMÓW */
.stream-archive-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.2s;
}

.stream-archive-card:hover {
    transform: translateY(-3px);
}

.stream-archive-info {
    padding: 15px 20px;
}

.stream-archive-info h5 {
    color: #2c3e50;
    font-weight: 700;
    margin-bottom: 5px;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .hero-section { min-height: 250px; }
    .hero-section h1 { font-size: 2em; }
    .stat-number { font-size: 1.8em; }

    .hero-btn {
        min-width: 180px;
        font-size: 1em;
        padding: 10px 20px !important;
    }
    .hero-separator { display: none !important; }

    .stat-card { padding: 15px 10px; }
    .stat-player { font-size: 0.75em; }
    .event-card { padding: 15px; }

    /* PARTNERZY KARUZELA — mobile */
    .partners-label {
        font-size: 1em;
        margin-bottom: 6px;
    }
    .partners-track {
        animation-duration: 20s;
        gap: 15px;
    }
    .partner-link {
        font-size: 0.85em;
        padding: 6px 12px;
    }
    .partner-logo {
        width: 30px;
        height: 30px;
    }
}

@media (max-width: 480px) {
    .hero-section h1 { font-size: 1.6em; }
    .hero-section .lead { font-size: 1em; }
    .stat-number { font-size: 1.5em; }
    .section-title { font-size: 1.2em; }

    .partners-label { font-size: 0.9em; }
    .partner-link { font-size: 0.8em; padding: 5px 10px; }
    .partner-logo { width: 26px; height: 26px; }
    .partners-track { animation-duration: 15s; gap: 10px; }
}

/* === LATAJĄCY SZERSZEŃ 🐝 === */
.bee {
    position: fixed;
    font-size: 2em;
    z-index: 9999;
    pointer-events: none;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
    transition: transform 0.1s;
}

/* USUŃ LUB ZAKOMENTUJ: */
/*
@keyframes beeFly {
    0%   { top: 20%; left: -5%; transform: rotate(10deg) scaleX(1); }
    10%  { top: 15%; left: 10%; transform: rotate(-5deg) scaleX(1); }
    20%  { top: 30%; left: 25%; transform: rotate(8deg) scaleX(1); }
    30%  { top: 10%; left: 45%; transform: rotate(-10deg) scaleX(1); }
    40%  { top: 35%; left: 60%; transform: rotate(5deg) scaleX(1); }
    50%  { top: 20%; left: 80%; transform: rotate(-8deg) scaleX(1); }
    55%  { top: 25%; left: 90%; transform: rotate(0deg) scaleX(1); }
    60%  { top: 25%; left: 90%; transform: rotate(0deg) scaleX(-1); }
    65%  { top: 40%; left: 75%; transform: rotate(10deg) scaleX(-1); }
    70%  { top: 15%; left: 55%; transform: rotate(-5deg) scaleX(-1); }
    75%  { top: 45%; left: 35%; transform: rotate(8deg) scaleX(-1); }
    80%  { top: 10%; left: 20%; transform: rotate(-10deg) scaleX(-1); }
    90%  { top: 30%; left: 5%; transform: rotate(5deg) scaleX(-1); }
    95%  { top: 20%; left: -3%; transform: rotate(0deg) scaleX(-1); }
    100% { top: 20%; left: -3%; transform: rotate(0deg) scaleX(1); }
}

.bee {
    animation: beeFly 20s ease-in-out infinite;
}
*/

.bee-wing {
    display: inline-block;
    animation: beeWing 0.15s ease-in-out infinite alternate;
}

@keyframes beeWing {
    0%   { transform: translateY(0px); }
    100% { transform: translateY(-2px); }
}

/* Na mobile mniejszy */
@media (max-width: 768px) {
    .bee { font-size: 1.4em; }
}

/* === POPUP PSZCZÓŁKI === */
.bee-popup {
    position: fixed;
    z-index: 10000;
    background: linear-gradient(135deg, #f0c040, #ffeb3b);
    color: #1a1a2e;
    padding: 10px 18px;
    border-radius: 20px;
    font-weight: 800;
    font-size: 0.9em;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    pointer-events: none;
    transform: translate(-50%, -120%);
    animation: beePopup 2.5s ease-out forwards;
    white-space: nowrap;
    max-width: 90vw;
}

@keyframes beePopup {
    0% { opacity: 1; transform: translate(-50%, -120%) scale(0.5); }
    15% { opacity: 1; transform: translate(-50%, -120%) scale(1.1); }
    25% { transform: translate(-50%, -120%) scale(1); }
    80% { opacity: 1; transform: translate(-50%, -160%) scale(1); }
    100% { opacity: 0; transform: translate(-50%, -200%) scale(0.8); }
}

/* === LOGO W NAWIGACJI === */
/* USUNIĘTE — logo przeniesione do hero */

/* === LOGO W HERO === */
.hero-logo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #f0c040;
    box-shadow: 0 0 30px rgba(240, 192, 64, 0.6), 0 0 60px rgba(240, 192, 64, 0.2);
    margin-bottom: 20px;
    animation: logoGlow 3s ease-in-out infinite alternate;
}

@keyframes logoGlow {
    0% { box-shadow: 0 0 30px rgba(240, 192, 64, 0.6), 0 0 60px rgba(240, 192, 64, 0.2); }
    100% { box-shadow: 0 0 40px rgba(240, 192, 64, 0.8), 0 0 80px rgba(240, 192, 64, 0.4); }
}

@media (max-width: 768px) {
    .hero-logo {
        width: 100px;
        height: 100px;
    }
}

@media (max-width: 480px) {
    .hero-logo {
        width: 80px;
        height: 80px;
    }
}

/* === PRZYCISK ARCHIWUM === */
#toggleArchiveBtn {
    border: none;
    font-weight: 700;
    padding: 14px 35px;
    font-size: 1.1rem;
    background: linear-gradient(135deg, #f0c040, #e6a800);
    color: #1a1a2e;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(240, 192, 64, 0.4);
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
}

#toggleArchiveBtn:hover {
    background: linear-gradient(135deg, #ffd666, #f0c040);
    transform: scale(1.08);
    box-shadow: 0 6px 25px rgba(240, 192, 64, 0.6);
}

#toggleArchiveBtn:active {
    transform: scale(0.98);
}