/* ============================================
   jubilee.css
   Jubileuszowy styl nadpisujący główne style
   ============================================ */

:root {
    --primary:          #c8920c!important;
    --primaryDark:      #a54e07!important;
    --primaryLight:     #fde992!important;
    --linkColor:        #c8920c!important;

    --primary-gradient: linear-gradient(
        135deg,
        #a54e07 0%,
        #c8860a 20%,
        #fef1a2 45%,
        #d4a017 65%,
        #a54e07 100%
    );
    --gold-shine: linear-gradient(
        90deg,
        #a54e07,
        #c8860a,
        #fef08a,
        #d4a017,
        #a54e07
    );
    --gold-glow: 0 0 12px rgba(212, 160, 23, 0.5),
                 0 4px 20px rgba(184, 134, 11, 0.35);

    --noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3CfeBlend in='SourceGraphic' mode='overlay'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23noise)' opacity='0.08'/%3E%3C/svg%3E");

    scrollbar-color: #c8920c var(--bgLight);
    -moz-scrollbar-color: #c8920c var(--bgLight);
}


/* ============================================
   SCROLLBAR
   ============================================ */

::-webkit-scrollbar-thumb {
    background: var(--primary-gradient)!important;
}

::-webkit-scrollbar-track {
    background: var(--bgLight);
}


/* ============================================
   PRZYCISKI – płaskie, złote, z szumem
   ============================================ */

.btn {
    overflow: hidden;
    position: relative;
    background-image:
        var(--noise),
        var(--primary-gradient);
    background-size: 200px 200px, 200% 200%;
    background-position: center, 0% 50%;
    color: #2c1500;
    text-shadow: 0 1px 0 rgba(255, 241, 180, 0.5);
    border: none;
    border-radius: 2px;
    box-shadow: none;
    transition:
        background-position 0.5s ease,
        box-shadow 0.3s ease,
        transform 0.15s ease;
    cursor: pointer;
    animation: goldPulse 4s ease-in-out infinite;
}

/* Szum nałożony przez pseudo-element */
.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--noise);
    background-size: 200px 200px;
    opacity: 0.07;
    pointer-events: none;
    border-radius: inherit;
    mix-blend-mode: overlay;
}

.btn:hover {
    background-position: center, 100% 50%;
    box-shadow: var(--gold-glow);
    transform: translateY(-2px);
    animation: none;
}

/* Shimmer sweep */
.btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 55%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent 0%,
        rgba(255, 255, 255, 0.35) 50%,
        transparent 100%
    );
    transform: skewX(-20deg);
    pointer-events: none;
}

.btn:hover::after {
    animation: btnShimmer 0.5s ease forwards;
}

.btn:active {
    transform: translateY(0) scale(0.98);
    box-shadow: none;
}

.navbar .btn {
    animation: none;
}

header h4 a {
    color: white;
    text-decoration: none;
}

/* ============================================
   NAVBAR – aktywne linki i podkreślenia
   ============================================ */

.navbar-nav a::before {
    background: var(--gold-shine);
    background-size: 200% 100%;
    animation: goldShimmer 3s linear infinite;
}

.navbar-nav .nav-active {
    color: #fde992;
    text-shadow: 0 0 8px rgba(253, 233, 146, 0.55);
}

.navbar-nav ul .active > a,
.navbar-nav ul a.active {
    color: var(--primary);
}

.navbar-nav ul a::before {
    color: var(--primary);
}

.navbar-nav ul a:hover {
    color: var(--primary);
}


/* ============================================
   MOBILE NAV – złote tło z szumem
   ============================================ */

.mobile-nav {
    background-image:
        var(--noise),
        linear-gradient(160deg, #6b3a00 0%, #a54e07 50%, #7a4800 100%);
    background-size: 200px 200px, cover;
}

.mobile-nav a:hover,
.mobile-nav a.active {
    color: #8b5000;
    background-color: #fff9e6;
}


/* ============================================
   STREFA ZAWODNIKA – hover na ikonach
   ============================================ */

#strefa-zawodnika .flex.col:hover strong {
    color: var(--primary);
}


/* ============================================
   LINKI AKTYWNE
   ============================================ */

.navbar-nav ul a.active,
main a:where(:not(.btn)):focus {
    color: var(--primary);
}

#strefa-zawodnika .container-lg > .flex {
	background-image: url(/assets/img/strefa-bg-lt.png),
	url(/assets/img/strefa-bg-rt.png),
	url(/assets/img/strefa-bg-lb.png),
	url(/assets/img/strefa-bg-rb.png);
}


footer {
	background-image: url(/assets/img/footer-bg-lt.png),
	url(/assets/img/footer-bg-rt.png),
	url(/assets/img/footer-bg-lb.png),
	url(/assets/img/footer-bg-rb.png);
}

/* ============================================
   KEYFRAMES
   ============================================ */

@keyframes goldPulse {
    0%, 100% {
        box-shadow: none;
    }
    50% {
        box-shadow: 0 0 16px rgba(212, 160, 23, 0.4),
                    0 2px 10px rgba(184, 134, 11, 0.3);
    }
}

@keyframes goldShimmer {
    0%   { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

@keyframes btnShimmer {
    0%   { left: -100%; }
    100% { left: 160%; }
}