/* sezon: niepodleglosc */
/* Group 312 Chicago - Święto Niepodległości 11 listopada (sezonowy nagłówek)
   Wczytywany automatycznie przez /css/sezon.php według kalendarza. */

header {
    background: linear-gradient(135deg, #8b0a1a 0%, #c8102e 55%, #dc143c 100%) !important;
    border-bottom: 3px solid #ffffff !important;
    box-shadow: 0 2px 18px rgba(220, 20, 60, 0.35) !important;
}
header { box-shadow: inset 0 4px 0 #ffffff, 0 2px 18px rgba(220, 20, 60, 0.35) !important; }

/* animowane dekoracje: tylko ozdoba, nie łapią kliknięć */
header::before,
header::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background-repeat: repeat-x;
}
header::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='640' height='80' viewBox='0 0 640 80'%3E%3Cg transform='translate(60 4) scale(0.55)'%3E%3Cline x1='0' y1='0' x2='0' y2='30' stroke='%23f5f5f5' stroke-width='1.6'/%3E%3Cg%3E%3CanimateTransform attributeName='transform' type='skewY' values='0;-6;0;6;0' dur='2.6s' repeatCount='indefinite'/%3E%3Crect x='1' y='1' width='26' height='8' fill='%23ffffff'/%3E%3Crect x='1' y='9' width='26' height='8' fill='%23dc143c' stroke='%23ffffff' stroke-width='0.6'/%3E%3C/g%3E%3C/g%3E%3Cg transform='translate(330 58) scale(0.5)'%3E%3Cline x1='0' y1='0' x2='0' y2='30' stroke='%23f5f5f5' stroke-width='1.6'/%3E%3Cg%3E%3CanimateTransform attributeName='transform' type='skewY' values='0;-6;0;6;0' dur='3.1s' repeatCount='indefinite'/%3E%3Crect x='1' y='1' width='26' height='8' fill='%23ffffff'/%3E%3Crect x='1' y='9' width='26' height='8' fill='%23dc143c' stroke='%23ffffff' stroke-width='0.6'/%3E%3C/g%3E%3C/g%3E%3Cg transform='translate(520 6) scale(0.5)'%3E%3Cline x1='0' y1='0' x2='0' y2='30' stroke='%23f5f5f5' stroke-width='1.6'/%3E%3Cg%3E%3CanimateTransform attributeName='transform' type='skewY' values='0;-6;0;6;0' dur='2.8s' repeatCount='indefinite'/%3E%3Crect x='1' y='1' width='26' height='8' fill='%23ffffff'/%3E%3Crect x='1' y='9' width='26' height='8' fill='%23dc143c' stroke='%23ffffff' stroke-width='0.6'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    background-size: auto 80px;
    opacity: 0.55;
}
header::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='80' viewBox='0 0 300 80'%3E%3Ccircle cx='20' cy='60' r='1.6' fill='%23ffffff'%3E%3Canimate attributeName='opacity' values='0.2;1;0.2' dur='3.2s' repeatCount='indefinite'/%3E%3C/circle%3E%3Ccircle cx='110' cy='22' r='1.2' fill='%23ffffff'%3E%3Canimate attributeName='opacity' values='0.2;1;0.2' dur='2.6s' repeatCount='indefinite'/%3E%3C/circle%3E%3Ccircle cx='180' cy='66' r='1.8' fill='%23ffffff'%3E%3Canimate attributeName='opacity' values='0.2;1;0.2' dur='3.8s' repeatCount='indefinite'/%3E%3C/circle%3E%3Ccircle cx='260' cy='34' r='1.3' fill='%23ffffff'%3E%3Canimate attributeName='opacity' values='0.2;1;0.2' dur='2.9s' repeatCount='indefinite'/%3E%3C/circle%3E%3C/svg%3E");
    background-size: auto 80px;
    opacity: 0.8;
}

/* menu i logo nad dekoracjami */
header > nav { position: relative; z-index: 1; }

.logo a::before {
    content: "🇵🇱";
    display: inline-block;
    margin-right: 0.4rem;
    animation: g312-wave 3s ease-in-out infinite; transform-origin: 20% 80%;
}
@keyframes g312-wave {
    0%, 100% { transform: rotate(-6deg); }
    50%      { transform: rotate(6deg); }
}

/* akcenty w menu */
.nav-links a:hover,
.nav-links a[aria-current="page"] { color: #ffe4e6 !important; }
.nav-links a::after { background: #ffffff !important; }

.lang-switcher a { border-color: #ffffff !important; }
.lang-switcher a:hover { background: rgba(255, 255, 255, 0.18) !important; }

/* menu mobilne */
@media (max-width: 1279px) {
    .nav-links { background: #8b0a1a !important; }
    .hamburger span { background: #ffffff !important; }
}

/* osoby z ograniczonym ruchem w systemie: bez animacji */
@media (prefers-reduced-motion: reduce) {
    header::before, header::after { display: none; }
    .logo a::before { animation: none; }
}

/* stopka w kolorach motywu */
footer {
    background: linear-gradient(315deg, #8b0a1a 0%, #c8102e 55%, #dc143c 100%) !important;
    border-top: 3px solid #ffffff !important;
    color: #fff !important;
}
footer a { color: #ffe4e6 !important; }
footer a:hover { color: #fff !important; }
