﻿

*, *::before, *::after {
    box-sizing: border-box;
}

::selection {
    background-color: var(--club-primary);
    color: #fff;
}

::-webkit-scrollbar        { width: 6px; }
::-webkit-scrollbar-track  { background: var(--club-darker); }
::-webkit-scrollbar-thumb  { background: var(--club-primary); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: color-mix(in srgb,var(--club-primary) 80%,#000); }

#page-loader {
    transition: opacity 0.6s ease, visibility 0.6s ease;
}
#page-loader.loaded {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

#main-nav.scrolled #nav-bg {
    opacity: 1;
}

.hero-slider {
    position: relative;
    width: 100%;
    height: 100dvh;   
    min-height: 600px;
    overflow: hidden;
    background: var(--club-darker);
}

.slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.slide.is-active {
    pointer-events: auto;
}

.slide-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center top;
    transform-origin: center center;
    will-change: transform, opacity;
}

.slide-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to right,  rgba(7,7,16,0.92) 0%,   rgba(7,7,16,0.50) 60%, transparent 100%),
        linear-gradient(to top,    rgba(7,7,16,0.80) 0%,   transparent 50%),
        linear-gradient(to bottom, rgba(7,7,16,0.40) 0%,   transparent 30%);
    z-index: 1;
    pointer-events: none;
}

.slide-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 clamp(1.5rem, 6vw, 6rem);
    max-width: 900px;
}

.slide-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--club-primary);
    will-change: transform, opacity;
}

.slide-label::before {
    content: '';
    display: block;
    width: 2rem;
    height: 2px;
    background: var(--club-primary);
    flex-shrink: 0;
}

.slide-title {
    font-family: 'Bebas Neue', Impact, sans-serif;
    font-size: clamp(3rem, 8vw, 7rem);
    line-height: 0.95;
    letter-spacing: 0.02em;
    color: #fff;
    text-shadow:
        0 0 80px color-mix(in srgb, var(--club-primary) 20%, transparent),
        0 4px 40px rgba(0,0,0,0.5);
    will-change: transform, opacity;
}

.slide-title .accent {
    color: var(--club-primary);
    display: inline-block;
}

.slide-subtitle {
    font-size: clamp(0.9rem, 1.5vw, 1.1rem);
    color: rgba(255,255,255,0.65);
    font-weight: 300;
    line-height: 1.7;
    max-width: 480px;
    will-change: transform, opacity;
}

.slide-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.85rem 2rem;
    background: var(--club-primary);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    text-decoration: none;
    border: 2px solid transparent;
    clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
    transition: background 0.3s, color 0.3s, transform 0.3s;
    will-change: transform, opacity;
}

.slide-cta:hover {
    background: transparent;
    color: var(--club-primary);
    border-color: var(--club-primary);
    transform: translateY(-2px);
}

.slide-cta svg {
    transition: transform 0.3s;
}

.slide-cta:hover svg {
    transform: translateX(4px);
}

.slider-dots {
    position: absolute;
    bottom: 2.5rem;
    left: clamp(1.5rem, 6vw, 6rem);
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.slider-dot {
    height: 3px;
    background: rgba(255,255,255,0.25);
    border-radius: 2px;
    cursor: pointer;
    transition: background 0.3s, width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    width: 24px;
}

.slider-dot.active {
    background: var(--club-primary);
    width: 48px;
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 52px;
    height: 52px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    backdrop-filter: blur(8px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: rgba(255,255,255,0.7);
    transition: background 0.3s, color 0.3s, border-color 0.3s, transform 0.3s;
}

.slider-arrow:hover {
    background: color-mix(in srgb, var(--club-primary) 20%, transparent);
    border-color: color-mix(in srgb, var(--club-primary) 50%, transparent);
    color: #fff;
    transform: translateY(-50%) scale(1.08);
}

.slider-arrow-prev { left: 1.5rem; }
.slider-arrow-next { right: 1.5rem; }

.slider-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 0;
    background: linear-gradient(to right, var(--club-primary), var(--club-accent2));
    z-index: 10;
    will-change: width;
}

.section-label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--club-primary);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.section-label::before,
.section-label::after {
    content: '';
    display: block;
    height: 1px;
    width: 2rem;
    background: var(--club-primary);
    flex-shrink: 0;
}

.section-label::after {
    width: 1rem;
    opacity: 0.5;
}

.section-title {
    font-family: 'Bebas Neue', Impact, sans-serif;
    font-size: clamp(2.2rem, 5vw, 4rem);
    line-height: 1;
    letter-spacing: 0.03em;
    color: #fff;
}

.news-card {
    position: relative;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 12px;
    overflow: hidden;
    transition: border-color 0.4s, transform 0.4s;
    will-change: transform;
}

.news-card:hover {
    border-color: color-mix(in srgb, var(--club-primary) 35%, transparent);
    transform: translateY(-6px);
}

.news-card-img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.news-card:hover .news-card-img {
    transform: scale(1.06);
}

.news-card-img-wrap {
    overflow: hidden;
    position: relative;
}

.news-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.875rem;
    min-height: 1.75rem;
}

.news-card-cat {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    background: var(--club-primary);
    color: #fff;
    border-radius: 4px;
    flex-shrink: 0;
    max-width: 55%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.news-card-date {
    font-size: 0.65rem;
    color: var(--club-muted);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin: 0;
    margin-left: auto;
    white-space: nowrap;
    flex-shrink: 0;
}

.news-card-body {
    padding: 1.25rem 1.5rem 1.5rem;
}

.news-card-title {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.4;
    margin-bottom: 0.75rem;
    margin-top: 0;
    transition: color 0.3s;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card:hover .news-card-title {
    color: var(--club-primary);
}

.news-card-excerpt {
    font-size: 0.85rem;
    color: rgba(136,146,164,0.8);
    line-height: 1.65;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.standings-table {
    width: 100%;
    border-collapse: collapse;
}

.standings-table th {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(136,146,164,0.7);
    padding: 0.75rem 1rem;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.standings-table th:first-child { text-align: left; }

.standings-table td {
    padding: 0.9rem 1rem;
    font-size: 0.875rem;
    color: rgba(255,255,255,0.85);
    border-bottom: 1px solid rgba(255,255,255,0.04);
    text-align: center;
    vertical-align: middle;
}

.standings-table td:first-child { text-align: left; }

.standings-table tr {
    transition: background 0.2s;
}

.standings-table tbody tr:hover {
    background: rgba(255,255,255,0.03);
}

.standings-table tr.our-team {
    background: color-mix(in srgb, var(--club-primary) 8%, transparent);
    border-left: 3px solid var(--club-primary);
}

.standings-table tr.our-team td {
    color: #fff;
    font-weight: 600;
}

.form-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.4rem;
    height: 1.4rem;
    border-radius: 3px;
    font-size: 0.65rem;
    font-weight: 700;
}

.form-badge.w { background: rgba(16,185,129,0.2); color: #10b981; }
.form-badge.d { background: rgba(245,166,35, 0.2); color: var(--club-accent2); }
.form-badge.l { background: rgba(239,68,68,  0.2); color: #ef4444; }

.glow-dot {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    opacity: 0.15;
}

.reveal {
    opacity: 0;
    transform: translateY(40px);
    will-change: transform, opacity;
}

.reveal-left {
    opacity: 0;
    transform: translateX(-50px);
    will-change: transform, opacity;
}

.reveal-right {
    opacity: 0;
    transform: translateX(50px);
    will-change: transform, opacity;
}

.skeleton {
    background: linear-gradient(
        90deg,
        rgba(255,255,255,0.04) 25%,
        rgba(255,255,255,0.08) 50%,
        rgba(255,255,255,0.04) 75%
    );
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 6px;
}

@keyframes shimmer {
    0%   { background-position: 200% center; }
    100% { background-position: -200% center; }
}

@media (max-width: 768px) {
    .slide-title     { font-size: clamp(2.5rem, 12vw, 4rem); }
    .slider-arrow    { display: none; }
    .slider-dots     { left: 1.5rem; bottom: 2rem; }
}

@media (hover: none) {
    .news-card:hover { transform: none; }
}

.page-hero {
    position: relative;
    padding-top: 5rem;
    padding-bottom: 3.5rem;
    overflow: hidden;
    background: var(--club-darker);
    text-align: center;
}

.page-hero__pattern {
    position: absolute;
    inset: 0;
    opacity: 0.05;
    background-image: repeating-linear-gradient(
        -45deg,
        var(--club-primary) 0,
        var(--club-primary) 1px,
        transparent 0,
        transparent 50%
    );
    background-size: 30px 30px;
}

.page-hero__fade {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent, var(--club-darker));
}

.page-hero__inner {
    position: relative;
    max-width: 80rem;
    margin: 0 auto;
    padding: 2rem 1rem 0;
}

#history-section {
    background: var(--club-darker);
}

.history-entry {
    position: relative;
}

.history-entry__text {
    position: relative;
    padding-left: 1.5rem;
    border-left: 3px solid var(--club-primary);
}

.history-year {
    display: inline-block;
    font-family: 'Bebas Neue', Impact, sans-serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1;
    letter-spacing: 0.04em;
    color: var(--club-primary);
    margin-bottom: 0.75rem;
}

.history-divider {
    width: 3rem;
    height: 2px;
    background: var(--club-primary);
    margin-bottom: 1.25rem;
}

.history-photo-wrap {
    position: relative;
    border-radius: 1.25rem;
    overflow: hidden;
    border: 1px solid color-mix(in srgb, var(--club-primary) 25%, transparent);
    box-shadow: 0 24px 60px color-mix(in srgb, var(--club-primary) 12%, transparent);
    transition: border-color 0.35s, box-shadow 0.35s, transform 0.35s;
}

.history-entry:hover .history-photo-wrap {
    border-color: color-mix(in srgb, var(--club-primary) 45%, transparent);
    box-shadow: 0 28px 70px color-mix(in srgb, var(--club-primary) 18%, transparent);
    transform: translateY(-4px);
}

.history-photo {
    width: 100%;
    min-height: 280px;
    max-height: 520px;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.history-entry:hover .history-photo {
    transform: scale(1.04);
}

.history-photo-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        color-mix(in srgb, var(--club-darker) 85%, transparent) 0%,
        transparent 55%
    );
    pointer-events: none;
}

.history-photo-placeholder {
    min-height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--club-navy), var(--club-darker));
}

.history-photo-placeholder span {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(3rem, 10vw, 5rem);
    color: color-mix(in srgb, var(--club-primary) 15%, transparent);
    letter-spacing: 0.05em;
}

@media (min-width: 1024px) {
    .history-photo {
        min-height: 420px;
    }
}

.filter-bar {
    background: color-mix(in srgb, var(--club-darker) 80%, transparent);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(16px);
}

.filter-btn {
    padding: 0.45rem 1rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.07);
    color: var(--club-muted);
    transition: all 0.25s;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
}

.filter-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.filter-btn.active {
    background: color-mix(in srgb, var(--club-primary) 15%, transparent);
    border-color: color-mix(in srgb, var(--club-primary) 40%, transparent);
    color: var(--club-primary);
}

.kadro-filter-btn.active {
    background: color-mix(in srgb, var(--club-primary) 15%, transparent) !important;
    border-color: color-mix(in srgb, var(--club-primary) 45%, transparent) !important;
    color: var(--club-primary) !important;
}

.pagination-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.75rem;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    text-decoration: none;
    transition: all 0.2s;
}

.pagination-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.pagination-num {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s;
    text-decoration: none;
}

.pagination-num.is-active {
    background: var(--club-primary);
    color: #fff;
}

.pagination-num:not(.is-active) {
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.5);
}

.pagination-num:not(.is-active):hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.article-hero {
    position: relative;
    width: 100%;
    max-height: 60vh;
    overflow: hidden;
}

.article-hero img {
    width: 100%;
    max-height: 60vh;
    object-fit: cover;
    object-position: center top;
}

.article-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, var(--club-darker), color-mix(in srgb, var(--club-darker) 30%, transparent), transparent);
}

.article-excerpt {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.7;
    border-left: 4px solid var(--club-primary);
    padding-left: 1.25rem;
    margin-bottom: 2rem;
    font-weight: 300;
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--club-muted);
    text-decoration: none;
    transition: all 0.25s;
}

.btn-back:hover {
    background: color-mix(in srgb, var(--club-primary) 15%, transparent);
    border-color: color-mix(in srgb, var(--club-primary) 40%, transparent);
    color: #fff;
}

.btn-back svg {
    transition: transform 0.25s;
}

.btn-back:hover svg {
    transform: translateX(-4px);
}

.prose-content h1,
.prose-content h2,
.prose-content h3 {
    color: #fff;
    font-weight: 700;
    margin: 1.5rem 0 0.75rem;
}

.prose-content h2 { font-size: 1.5rem; }
.prose-content h3 { font-size: 1.2rem; }

.prose-content p {
    margin-bottom: 1.25rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.75);
}

.prose-content a {
    color: var(--club-primary);
    text-decoration: underline;
}

.prose-content a:hover { color: #fff; }

.prose-content ul,
.prose-content ol {
    margin: 1rem 0 1.25rem 1.5rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.75);
}

.prose-content ul { list-style: disc; }
.prose-content ol { list-style: decimal; }

.prose-content blockquote {
    border-left: 4px solid var(--club-primary);
    padding-left: 1.25rem;
    margin: 1.5rem 0;
    color: rgba(255, 255, 255, 0.6);
    font-style: italic;
}

.prose-content img {
    width: 100%;
    border-radius: 12px;
    margin: 1.5rem 0;
}

.prose-content strong {
    color: #fff;
    font-weight: 700;
}

