
/* =========================================================
   Visual effects — honeycomb cursor, seasonal motes, bees
   ========================================================= */

#gold-grid,
#hive-grid,
.grid-mist,
.grid-interactive {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.grid-mist {
    z-index: 1;
}

.reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.btn-primary {
    position: relative;
    overflow: hidden;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
    outline: 2px solid var(--accent-dim);
    outline-offset: 3px;
}

::selection {
    background: var(--accent);
    color: #fff;
}

.news-card .news-photo img {
    transition: transform 0.5s ease;
}

.news-card:hover .news-photo img {
    transform: scale(1.03);
}

.page-loader {
    display: grid;
    place-items: center;
}

.page-loader::after {
    content: '';
    width: 28px;
    height: 28px;
    border: 2.5px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* =========================================================
   Seasonal motes — zima: opadający, chłodny pył
                     lato: wznoszący się, świetlisty pyłek
   ========================================================= */
.season-sky {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 3;
    overflow: hidden;
}

.mote {
    position: absolute;
    top: -8px;
    border-radius: 50%;
    opacity: 0;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

html[data-season="winter"] .mote {
    background: #9eb4cc;
    animation-name: moteFall;
}

html[data-season="summer"] .mote {
    background: #d9a13b;
    box-shadow: 0 0 7px 1px rgba(224, 168, 60, 0.55);
    animation-name: moteRise;
}

@keyframes moteFall {
    0% { transform: translate3d(0, -10vh, 0); opacity: 0; }
    12% { opacity: 0.45; }
    100% { transform: translate3d(18px, 110vh, 0); opacity: 0; }
}

@keyframes moteRise {
    0% { transform: translate3d(0, 110vh, 0); opacity: 0; }
    15% { opacity: 0.4; }
    100% { transform: translate3d(-14px, -12vh, 0); opacity: 0; }
}

/* =========================================================
   Summer — wandering bees (main page only, built by season.js)
   ========================================================= */
.bee-field {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 4;
    overflow: hidden;
}

.bee {
    position: absolute;
    left: 0;
    display: none;
    opacity: 0;
    animation-name: beeFlight;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
    will-change: transform;
}

html[data-season="summer"] .bee {
    display: block;
}

.bee-body {
    display: block;
    width: 100%;
    height: auto;
    animation-name: beeBob;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
}

.bee .wing {
    transform-box: fill-box;
    transform-origin: bottom center;
    animation: wingFlap 0.14s ease-in-out infinite alternate;
}

@keyframes beeFlight {
    0%   { transform: translate3d(-8vw, 6px, 0); opacity: 0; }
    4%   { opacity: 0.85; }
    50%  { transform: translate3d(50vw, -4vh, 0); opacity: 0.85; }
    96%  { opacity: 0.85; }
    100% { transform: translate3d(108vw, 4px, 0); opacity: 0; }
}

@keyframes beeBob {
    0%, 100% { transform: translateY(0) rotate(-2deg); }
    50%      { transform: translateY(-6px) rotate(3deg); }
}

@keyframes wingFlap {
    from { transform: scaleY(1) rotate(0deg); }
    to   { transform: scaleY(0.55) rotate(6deg); }
}

/* Efekty ambientowe tylko dla myszy i większych ekranów */
@media (pointer: coarse), (max-width: 768px) {
    .season-sky,
    .bee-field {
        display: none !important;
    }
}

body.is-lightbox .bee-field {
    visibility: hidden;
}

@media (prefers-reduced-motion: reduce) {
    .season-sky,
    .season-veil,
    .mote,
    .bee-field,
    .bee {
        display: none !important;
        animation: none !important;
    }
}
