/* 1. Base Setup (Fonts, Variables, Reset) */

@font-face { font-display: swap; font-family: 'Poppins'; font-style: normal; font-weight: 300; src: url('../fonts/poppins-v23-latin_latin-ext-300.woff2') format('woff2'); }
@font-face { font-display: swap; font-family: 'Poppins'; font-style: normal; font-weight: 400; src: url('../fonts/poppins-v23-latin_latin-ext-regular.woff2') format('woff2'); }
@font-face { font-display: swap; font-family: 'Poppins'; font-style: normal; font-weight: 500; src: url('../fonts/poppins-v23-latin_latin-ext-500.woff2') format('woff2'); }
@font-face { font-display: swap; font-family: 'Poppins'; font-style: normal; font-weight: 600; src: url('../fonts/poppins-v23-latin_latin-ext-600.woff2') format('woff2'); }
@font-face { font-display: swap; font-family: 'Poppins'; font-style: normal; font-weight: 700; src: url('../fonts/poppins-v23-latin_latin-ext-700.woff2') format('woff2'); }

:root {
    --primary-color: #0A1C32;
    --accent-color: #E60026;
    --success-color: #28a745; /* DODANA ZMIENNA */
    --text-on-dark: #FFFFFF;
    --text-on-light: #222222;
    --text-secondary: #555555;
    --text-secondary-dark-bg: #a0b3ce;
    --bg-color: #FFFFFF;
    --card-bg-light: #F0F2F5;
    --border-color: #DDE1E6;
    --font-family: 'Poppins', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { 
    font-family: var(--font-family);
    background-color: var(--bg-color);
    color: var(--text-on-light);
    position: relative;
    overflow-x: hidden;
}
body.no-scroll { overflow: hidden; }

/* 2. Main Layout & Elements */

.background-container { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; z-index: -1; background-color: var(--primary-color); }
.hero-video-bg { position: absolute; top: 50%; left: 50%; min-width: 100%; min-height: 100%; width: auto; height: auto; transform: translate(-50%, -50%); z-index: 1; }
.video-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(10, 28, 50, 0.7); z-index: 2; }

.right-nav { position: fixed; top: 50%; right: 30px; transform: translateY(-50%); z-index: 1000; }
.right-nav ul { list-style: none; padding: 0; margin: 0; }
.right-nav li { margin: 20px 0; }
.nav-dot { display: block; width: 12px; height: 12px; background-color: rgba(0, 0, 0, 0.2); border: 2px solid white; border-radius: 50%; position: relative; box-shadow: 0 0 5px rgba(0,0,0,0.2); transition: all 0.3s ease; }
body.on-dark-section .nav-dot { background-color: rgba(255, 255, 255, 0.2); border-color: rgba(255, 255, 255, 0.5); }
.nav-dot.active, .nav-dot:hover { background-color: var(--accent-color); border-color: var(--accent-color); transform: scale(1.4); }
body.on-dark-section .nav-dot.active, body.on-dark-section .nav-dot:hover { border-color: white; }
.nav-dot[data-tooltip]::after { content: attr(data-tooltip); position: absolute; top: 50%; right: 180%; transform: translateY(-50%); background-color: var(--primary-color); color: var(--text-on-dark); padding: 6px 12px; border-radius: 4px; font-size: 13px; font-weight: 600; white-space: nowrap; opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0.3s ease, right 0.3s ease; }
.nav-dot[data-tooltip]:hover::after { opacity: 1; visibility: visible; right: 150%; }

.main-content { width: 100%; position: relative; z-index: 5; }
section { display: flex; flex-direction: column; justify-content: center; padding: 80px 40px; position: relative; }
.content-panel { max-width: 1400px; width: 100%; margin: 0 auto; padding: 0; }
.section-title { font-size: 42px; font-weight: 700; color: var(--primary-color); margin-bottom: 20px; text-align: center; }
.section-subtitle { font-size: 18px; color: var(--text-secondary); max-width: 800px; margin: 0 auto 50px auto; line-height: 1.6; text-align: center; }

/* 3. Section Specific Styles */

#wstep { min-height: 100vh; padding: 0; }
.hero-panel { text-align: center; }
.hero-main-slogan { font-size: 3.2em; font-weight: 900; letter-spacing: 1px; color: #fff; text-shadow: 0 4px 32px rgba(0,0,0,0.18); line-height: 1.1; margin-bottom: 24px; }
.motto-flipper-red { height: 60px; position: relative; margin: 0 auto; width: 100%; max-width: 700px; text-align: center; }
.motto-flipper-red .motto-item { position: absolute; width: 100%; left: 0; top: 50%; font-size: 2em; font-weight: 700; color: var(--accent-color); text-shadow: 0 2px 10px rgba(0,0,0,0.15); opacity: 0; transform: translateY(-50%) rotateX(90deg); transform-origin: center center -50px; transition: transform 0.6s ease, opacity 0.6s ease; letter-spacing: 0.05em; }
.motto-flipper-red .motto-item.active { opacity: 1; transform: translateY(-50%) rotateX(0deg); }
.hero-panel p { color: var(--text-on-dark); max-width: 600px; margin: 40px auto; text-shadow: 0 1px 3px rgba(0,0,0,0.7); font-size: 1.1em; line-height: 1.7; }

#plan { background-color: var(--primary-color); overflow: hidden; }
#plan .section-title, #plan .section-subtitle { color: var(--text-on-dark); }
#plan .section-subtitle { color: var(--text-secondary-dark-bg); }
.tactical-board-container { position: relative; max-width: 900px; height: 600px; margin: 80px auto 40px auto; }
.ice-surface { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background-color: #fdfdfd; border-radius: 15px; box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2); z-index: 1; }
.rink-background { position: absolute; top: 0; left: 0; right: 0; bottom: 0; opacity: 0.5; z-index: 2; }
.rink-line { position: absolute; top: 0; bottom: 0; width: 8px; }
.red-line { background-color: #E60026; left: 50%; transform: translateX(-50%); }
.blue-line-1 { background-color: #3a7ca5; left: 25%; }
.blue-line-2 { background-color: #3a7ca5; left: 75%; }
.rink-center-circle { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 180px; height: 180px; background-color: var(--accent-color); border-radius: 50%; }
.tactical-card { position: absolute; z-index: 5; background: rgba(10, 28, 50, 0.8); border: 1px solid rgba(255, 255, 255, 0.2); backdrop-filter: blur(5px); border-radius: 8px; padding: 20px; width: 220px; text-align: center; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.tactical-card:hover { transform: translateY(-10px); box-shadow: 0 10px 30px rgba(0,0,0,0.3); }
.tactical-card .card-icon { font-size: 32px; color: var(--accent-color); margin-bottom: 10px; }
.tactical-card h3 { color: var(--text-on-dark); font-size: 18px; margin-bottom: 10px; }
.tactical-card p { color: var(--text-secondary-dark-bg); font-size: 14px; line-height: 1.5; margin: 0; }
.card-pos-1 { top: 40px; left: 40px; }
.card-pos-2 { top: 40px; right: 40px; }
.card-pos-3 { bottom: 5px; left: 50%; transform: translateX(-50%); }
.card-pos-3:hover { transform: translateX(-50%) translateY(-10px); }
.play-connectors { position: absolute; top: 50%; left: 50%; z-index: 3; }
.play-line { position: absolute; height: 3px; background: var(--accent-color); transform-origin: left center; width: 0; animation: draw-line 0.8s cubic-bezier(0.25, 1, 0.5, 1) forwards; }
@keyframes draw-line { to { width: 100%; } }
.line-1 { width: 280px; transform: rotate(-125deg); animation-delay: 0.2s; }
.line-2 { width: 280px; transform: rotate(-55deg); animation-delay: 0.4s; }
.line-3 { width: 185px; transform: rotate(90deg); animation-delay: 0.6s; }

#filary { background-color: var(--bg-color); }
.pillars-component { display: flex; gap: 40px; background-color: #fff; padding: 30px; border-radius: 12px; border: 1px solid var(--border-color); box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05); margin-top: 40px; }
.pillar-nav { list-style: none; padding: 0; flex: 0 0 280px; }
.pillar-nav li { margin-bottom: 10px; }
.pillar-button { display: flex; align-items: center; width: 100%; padding: 15px 20px; font-size: 16px; font-weight: 600; font-family: var(--font-family); text-align: left; background-color: transparent; border: 1px solid var(--border-color); border-radius: 8px; cursor: pointer; transition: all 0.3s ease; color: var(--text-secondary); }
.pillar-button:hover { background-color: var(--card-bg-light); border-color: #cdd3da; }
.pillar-button.active { background-color: var(--accent-color); color: var(--text-on-dark); border-color: var(--accent-color); transform: scale(1.02); }
.pillar-button i { font-size: 24px; margin-right: 15px; }
.pillar-content-container { flex-grow: 1; padding: 20px; }
.pillar-content { display: none; animation: fadeIn 0.5s ease; }
.pillar-content.active { display: block; }
.pillar-content h3 { display: flex; align-items: center; font-size: 28px; margin-bottom: 30px; color: var(--primary-color); }
.pillar-content h3 i { font-size: 32px; margin-right: 15px; color: var(--accent-color); }
.pillar-content ul { list-style: none; padding-left: 5px; }
.pillar-content li { color: var(--text-secondary); line-height: 1.8; margin-bottom: 20px; padding-left: 35px; position: relative; font-size: 16px; }
.pillar-content li::before { content: '✔'; position: absolute; left: 0; top: 0; color: var(--accent-color); font-weight: bold; font-size: 20px; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(15px); } to { opacity: 1; transform: translateY(0); } }

/* Timeline Section Styles */
#mapa-drogowa { background-color: var(--primary-color); }
#mapa-drogowa .section-title, #mapa-drogowa .section-subtitle { color: var(--text-on-dark); }
.new-timeline-container { max-width: 900px; margin: 60px auto 0; position: relative; }
.new-timeline-container::before { content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 3px; height: 100%; background-color: rgba(255, 255, 255, 0.2); }
.timeline-period { position: relative; margin-bottom: 50px; }
.period-title { position: sticky; top: 100px; z-index: 10; width: fit-content; margin: 0 auto 40px auto; padding: 8px 20px; background-color: var(--accent-color); color: white; font-size: 18px; font-weight: 700; border-radius: 30px; box-shadow: 0 4px 15px rgba(0,0,0,0.2); }
.period-tasks { display: grid; grid-template-columns: 1fr 40px 1fr; gap: 20px 0; }
.task-card { background-color: #fff; padding: 25px; border-radius: 8px; box-shadow: 0 5px 25px rgba(0,0,0,0.1); position: relative; border-top: 4px solid var(--accent-color); opacity: 0; transform: scale(0.9) translateY(30px); transition: opacity 0.6s ease-out, transform 0.6s ease-out; }
.task-card.is-visible { opacity: 1; transform: scale(1) translateY(0); }
.period-tasks > .task-card:nth-child(odd) { grid-column: 1; }
.period-tasks > .task-card:nth-child(even) { grid-column: 3; transition-delay: 0.1s; }
.task-card::after { content: ''; position: absolute; top: 20px; width: 20px; height: 20px; background-color: white; transform: rotate(45deg); border: 1px solid var(--border-color); }
.period-tasks > .task-card:nth-child(odd)::after { right: -10px; border-left: none; border-top: none; }
.period-tasks > .task-card:nth-child(even)::after { left: -10px; border-right: none; border-bottom: none; }
.task-card-header { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.task-card-header i { font-size: 28px; color: var(--accent-color); }
.task-card-header h4 { font-size: 18px; font-weight: 600; color: var(--primary-color); margin: 0; }
.task-card-description { font-size: 15px; color: var(--text-secondary); line-height: 1.6; margin-bottom: 15px; }
.task-card-details { list-style: none; padding-left: 0; margin: 0; }
.task-card-details li { position: relative; padding-left: 20px; font-size: 14px; color: var(--text-secondary); margin-bottom: 8px; }
.task-card-details li:last-child { margin-bottom: 0; }
.task-card-details li::before { content: '▪'; position: absolute; left: 0; top: 2px; color: var(--accent-color); font-size: 12px; }

/* DODANE NOWE STYLE */
.task-card--completed {
    border-top-color: var(--success-color);
    background-color: #f6fff8;
}
.task-card--completed .task-card-header i {
    color: var(--success-color);
}
.task-card--completed .task-card-details li::before {
    content: '✔';
    color: var(--success-color);
    font-size: 14px;
    top: 1px;
}
/* KONIEC DODANYCH STYLI */

#kim-jestesmy { background: linear-gradient(135deg, var(--accent-color) 0%, #a1001b 100%); }
#kim-jestesmy .section-title, #kim-jestesmy .section-subtitle { color: var(--text-on-dark); }
.primary-profile-container { display: flex; justify-content: center; margin-top: 60px; }
.profile-card { background-color: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 8px; padding: 30px; text-align: center; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.profile-card:hover { transform: translateY(-10px); box-shadow: 0 15px 30px rgba(0,0,0,0.2); }
.profile-photo { border-radius: 50%; object-fit: cover; margin: 0 auto 25px auto; display: block; border: 6px solid #fff; box-shadow: 0 0 20px rgba(0,0,0,0.2); }
.profile-name { font-weight: 700; color: var(--text-on-dark); margin-bottom: 5px; }
.profile-role { font-weight: 500; color: rgba(255, 255, 255, 0.85); }
.profile-card--primary { max-width: 450px; }
.profile-card--primary .profile-photo { width: 150px; height: 150px; }
.profile-card--primary .profile-name { font-size: 24px; }
.profile-card--primary .profile-role { font-size: 16px; margin-bottom: 20px; }
.profile-bio { font-size: 15px; color: var(--text-on-dark); line-height: 1.7; }
.board-tier, .team-tier { margin-top: 60px; padding-top: 60px; border-top: 1px solid rgba(255, 255, 255, 0.2); }
.team-tier-title { font-size: 24px; font-weight: 600; color: var(--text-on-dark); margin-bottom: 40px; text-align: center; }
.board-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}
.profile-card--member { padding: 25px; width: 220px; }
.profile-card--member .profile-photo { width: 100px; height: 100px; border-width: 4px; margin-bottom: 15px; }
.profile-card--member .profile-name { font-size: 18px; }
.profile-card--member .profile-role { font-size: 14px; }

/* Ambassador Card & Video Player Styles */
.ambassador-video-stack { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 40px; }
.ambassador-card { background-color: rgba(0, 0, 0, 0.2); border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 12px; overflow: hidden; box-shadow: 0 10px 40px rgba(0,0,0,0.3); display: flex; flex-direction: column; }

.ambassador-card--vertical {
    flex-direction: row; 
    align-items: stretch;
}
.ambassador-card--vertical .ambassador-video-wrapper {
    flex: 0 0 300px;
    aspect-ratio: 464 / 832;
}
.ambassador-card--vertical .ambassador-info {
    flex-grow: 1;
    justify-content: center;
}
.ambassador-video-wrapper { width: 100%; aspect-ratio: 16 / 9; background-color: #000; position: relative; }
.ambassador-video { width: 100%; height: 100%; object-fit: cover; display: block; cursor: pointer; }
.ambassador-info { display: flex; align-items: center; gap: 20px; padding: 20px 25px; background-color: var(--primary-color); }
.ambassador-info .profile-photo { width: 90px; height: 90px; margin: 0; border-width: 4px; flex-shrink: 0; }
.ambassador-info .info-text { text-align: left; }
.ambassador-info .profile-name { font-size: 24px; margin-bottom: 0; }
.play-button { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 80px; height: 80px; background-color: rgba(10, 28, 50, 0.7); border: 2px solid rgba(255, 255, 255, 0.8); border-radius: 50%; color: white; font-size: 48px; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.2s ease; backdrop-filter: blur(4px); z-index: 10; }
.play-button:hover { background-color: rgba(230, 0, 38, 0.8); border-color: white; transform: translate(-50%, -50%) scale(1.1); }
.play-button i { transform: translateX(3px); }
.ambassador-card.is-playing .play-button { opacity: 0; visibility: hidden; pointer-events: none; }

#zobowiazanie { background-color: var(--primary-color); }
#zobowiazanie .content-panel { text-align: center; }
#zobowiazanie .section-title { color: var(--text-on-dark); margin-bottom: 40px; }
.commitment-text {
    font-size: 1.2em;
    line-height: 1.8;
    color: var(--text-secondary-dark-bg);
    max-width: 800px;
    margin: 0 auto;
}
.main-footer { margin-top: 60px; text-align: center; color: var(--text-on-dark); opacity: 0.7; font-size: 14px; }


/* 4. Responsive Design */

@media (min-width: 1024px) {
    .section-subtitle { font-size: 20px; line-height: 1.7; }
    .hero-panel p { font-size: 18px; line-height: 1.7; }
    .pillar-content li { font-size: 17px; }
    .profile-bio { font-size: 16px; max-width: 35ch; margin-left: auto; margin-right: auto; }
}

@media (max-width: 1024px) {
    .hero-main-slogan { font-size: 2.5em; }
    .right-nav { display: none; }
}

@media (max-width: 992px) {
    .tactical-board-container { height: auto; margin-top: 40px; display: flex; flex-direction: column; align-items: center; gap: 25px; position: relative; background-color: #fdfdfd; border-radius: 15px; padding: 40px 20px; box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2); }
    .tactical-board-container::before { content: ''; position: absolute; top: 40px; bottom: 40px; left: 50%; transform: translateX(-50%); width: 3px; background-color: #eef2f7; border-radius: 3px; z-index: 0; }
    .rink-background, .play-connectors, .ice-surface { display: none; }
    .tactical-card { position: static; transform: none !important; z-index: 1; width: 100%; max-width: 350px; background: white; border: 1px solid #e0e5ec; }
    .tactical-card h3 { color: var(--primary-color); }
    .tactical-card p { color: var(--text-secondary); }

    .pillars-component { flex-direction: column; gap: 20px; padding: 20px; }
    .pillar-nav { flex-basis: auto; display: flex; flex-wrap: wrap; gap: 10px; }
    .pillar-nav li { flex-grow: 1; margin-bottom: 0; }
    .pillar-button { justify-content: center; }
    .pillar-content-container { padding: 10px 0 0 0; }
    .pillar-content h3 { font-size: 24px; }
}

@media (max-width: 768px) {
    section { padding: 60px 20px; }
    .content-panel { padding: 0; }
    .section-title { font-size: 32px; }
    .section-subtitle { font-size: 16px; }
    .hero-main-slogan { font-size: 2em; }
    .motto-flipper-red .motto-item { font-size: 1.2em; }
    
    .new-timeline-container::before { left: 20px; transform: translateX(0); }
    .period-title { margin: 0 0 30px 0; left: 0; position: relative; top: auto; }
    .period-tasks { grid-template-columns: 1fr; padding-left: 40px; gap: 20px; }
    .period-tasks > .task-card:nth-child(odd),
    .period-tasks > .task-card:nth-child(even) { grid-column: 1; margin-bottom: 10px; transition-delay: 0s !important; }
    .task-card::after { display: none; }

    .profile-card--primary .profile-photo { width: 140px; height: 140px; }
    .profile-card--primary .profile-name { font-size: 24px; }
    
    .board-grid { gap: 20px; }
    .profile-card--member { width: 160px; }
    
    .ambassador-info { padding: 15px; gap: 15px; }
    .ambassador-info .profile-photo { width: 70px; height: 70px; }
    .ambassador-info .profile-name { font-size: 20px; }
    .play-button { width: 60px; height: 60px; font-size: 32px; }
    
    .ambassador-card--vertical {
        flex-direction: column;
    }
    .ambassador-card--vertical .ambassador-video-wrapper {
        flex-basis: auto;
        width: 100%;
    }
    .commitment-text { font-size: 1.1em; }
}