/* ==========================================================================
   History of Football - Complete CSS (identyczny z React)
   ========================================================================== */

/* Fonty */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Inter:wght@300;400;500;600&display=swap');

/* ==========================================================================
   CSS Variables - Identyczne z React
   ========================================================================== */
:root {
    /* Dark cinematic palette */
    --background: hsl(220 20% 6%);
    --foreground: hsl(40 15% 92%);

    --card: hsl(220 18% 10%);
    --card-foreground: hsl(40 15% 92%);

    --popover: hsl(220 18% 10%);
    --popover-foreground: hsl(40 15% 92%);

    /* Gold accent - prestigious */
    --primary: hsl(42 85% 55%);
    --primary-foreground: hsl(220 20% 6%);

    /* Warm cream for secondary */
    --secondary: hsl(40 25% 88%);
    --secondary-foreground: hsl(220 20% 10%);

    /* Deep burgundy accent */
    --accent: hsl(350 60% 40%);
    --accent-foreground: hsl(40 15% 92%);

    --muted: hsl(220 15% 15%);
    --muted-foreground: hsl(220 10% 55%);

    --destructive: hsl(0 84.2% 60.2%);
    --destructive-foreground: hsl(210 40% 98%);

    --border: hsl(220 15% 18%);
    --input: hsl(220 15% 18%);
    --ring: hsl(42 85% 55%);

    --radius: 0.25rem;

    /* Custom museum tokens */
    --museum-black: hsl(220 20% 4%);
    --museum-charcoal: hsl(220 18% 10%);
    --museum-slate: hsl(220 15% 18%);
    --museum-gold: hsl(42 85% 55%);
    --museum-gold-dim: hsl(42 60% 40%);
    --museum-cream: hsl(40 25% 92%);
    --museum-cream-muted: hsl(40 15% 75%);
    --museum-burgundy: hsl(350 60% 35%);
    --museum-burgundy-deep: hsl(350 70% 20%);
    
    /* Typography */
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, sans-serif;

    /* Dramatic shadows */
    --shadow-glow: 0 0 60px hsla(42, 85%, 55%, 0.15);
    --shadow-deep: 0 25px 80px -20px hsla(220, 20%, 4%, 0.8);
    --shadow-card: 0 4px 40px -10px hsla(220, 20%, 4%, 0.5);
}

/* ==========================================================================
   Base Styles
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--background);
    color: var(--foreground);
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.6;
    min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 500;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.font-display { font-family: var(--font-display); }
.font-body { font-family: var(--font-body); }

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

::selection {
    background: hsla(42, 85%, 55%, 0.3);
    color: var(--foreground);
}

/* ==========================================================================
   Cinematic Effects - Identyczne z React
   ========================================================================== */

/* Grain overlay */
.grain-overlay {
    position: fixed;
    inset: 0;
    pointer-events: none !important;
    z-index: 50;
    opacity: 0.035;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* Atmospheric vignette */
.vignette {
    position: fixed;
    inset: 0;
    pointer-events: none !important;
    z-index: 49;
    background: radial-gradient(ellipse at center, transparent 0%, transparent 50%, var(--museum-black) 100%);
}

/* Hero gradient overlays */
.hero-gradient {
    background: linear-gradient(
        180deg,
        var(--museum-black) 0%,
        transparent 30%,
        transparent 70%,
        var(--museum-black) 100%
    );
}

/* Gold accent line */
.gold-line {
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        hsla(42, 85%, 55%, 0.6) 50%,
        transparent 100%
    );
}

/* ==========================================================================
   Museum Card - Identyczny z React
   ========================================================================== */
.museum-card {
    background: linear-gradient(
        145deg,
        hsla(220, 18%, 10%, 0.8) 0%,
        hsla(220, 15%, 18%, 0.4) 100%
    );
    backdrop-filter: blur(20px);
    border: 1px solid hsla(220, 15%, 18%, 0.5);
    border-radius: var(--radius);
}

.museum-card:hover {
    border-color: hsla(42, 85%, 55%, 0.5);
}

/* ==========================================================================
   Photo Frame Effect
   ========================================================================== */
.photo-frame {
    position: relative;
    overflow: hidden;
}

.photo-frame::before {
    content: '';
    position: absolute;
    inset: 0;
    border: 1px solid hsla(42, 85%, 55%, 0.2);
    pointer-events: none;
    z-index: 10;
}

.photo-frame::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        hsla(42, 85%, 55%, 0.1) 0%,
        transparent 50%
    );
    pointer-events: none;
    z-index: 11;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.photo-frame:hover::after {
    opacity: 1;
}

/* ==========================================================================
   Masonry Grid
   ========================================================================== */
.masonry-grid {
    column-count: 1;
    column-gap: 1.5rem;
}

@media (min-width: 640px) {
    .masonry-grid {
        column-count: 2;
    }
}

@media (min-width: 1024px) {
    .masonry-grid {
        column-count: 3;
    }
}

.masonry-item {
    break-inside: avoid;
    margin-bottom: 1.5rem;
}

/* ==========================================================================
   Animations - Identyczne z React
   ========================================================================== */
@keyframes reveal {
    from {
        opacity: 0;
        clip-path: inset(0 100% 0 0);
    }
    to {
        opacity: 1;
        clip-path: inset(0 0 0 0);
    }
}

@keyframes revealUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeSlow {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes scaleSubtle {
    from {
        opacity: 0;
        transform: scale(0.96);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes glowPulse {
    0%, 100% {
        opacity: 0.6;
    }
    50% {
        opacity: 1;
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(-25%);
        animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
    }
    50% {
        transform: translateY(0);
        animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
    }
}

.animate-reveal {
    animation: reveal 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-reveal-up {
    animation: revealUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-fade-slow {
    animation: fadeSlow 1.2s ease-out forwards;
}

.animate-scale-subtle {
    animation: scaleSubtle 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-glow-pulse {
    animation: glowPulse 3s ease-in-out infinite;
}

.animate-bounce {
    animation: bounce 1s infinite;
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Animation delays */
.delay-100 { animation-delay: 100ms; }
.delay-200 { animation-delay: 200ms; }
.delay-300 { animation-delay: 300ms; }
.delay-400 { animation-delay: 400ms; }
.delay-500 { animation-delay: 500ms; }
.delay-600 { animation-delay: 600ms; }
.delay-700 { animation-delay: 700ms; }
.delay-800 { animation-delay: 800ms; }

/* Hover lift effect */
.hover-lift {
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}

.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-deep);
}

/* ==========================================================================
   Header - Fixed Navigation
   ========================================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    transition: all 0.5s ease;
}

.header.scrolled {
    background: hsla(220, 20%, 4%, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid hsla(220, 15%, 18%, 0.3);
}

.header-inner {
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 1.5rem;
}

@media (min-width: 1024px) {
    .header-inner {
        padding: 0 3rem;
    }
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 5rem;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.logo-img {
    width: 3rem;
    height: 3rem;
    object-fit: contain;
}

.logo-icon {
    width: 2.5rem;
    height: 2.5rem;
    border: 1px solid var(--museum-gold);
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-icon i,
.logo-icon svg {
    width: 1.25rem;
    height: 1.25rem;
    color: var(--museum-gold);
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-text h1 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    color: var(--foreground);
    margin: 0;
    line-height: 1;
}

@media (max-width: 480px) {
    .logo-text {
        display: none;
    }
}

/* Desktop Navigation */
.nav {
    display: none;
    align-items: center;
    gap: 2rem;
}

@media (min-width: 768px) {
    .nav {
        display: flex;
    }
}

.nav-link {
    font-family: var(--font-body);
    font-size: 0.875rem;
    color: var(--muted-foreground);
    text-decoration: none;
    transition: color 0.3s;
}

.nav-link:hover,
.nav-link.active {
    color: var(--museum-gold);
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.hidden-mobile {
    display: none;
}

@media (min-width: 768px) {
    .hidden-mobile {
        display: inline;
    }
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--foreground);
    cursor: pointer;
    transition: all 0.3s;
}

.mobile-menu-btn:hover {
    border-color: var(--museum-gold);
}

/* Language Selector */
.lang-selector {
    position: relative;
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--foreground);
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s;
}

.lang-btn:hover {
    border-color: var(--museum-gold);
}

.lang-name {
    display: none;
}

@media (min-width: 768px) {
    .lang-name {
        display: inline;
    }
}

.lang-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    min-width: 150px;
    background: var(--museum-charcoal);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0.5rem;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-0.5rem);
    transition: all 0.2s;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

.lang-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0.75rem;
    color: var(--foreground);
    text-decoration: none;
    border-radius: calc(var(--radius) - 4px);
    transition: background 0.2s;
}

.lang-option:hover {
    background: hsla(var(--primary-hsl), 0.1);
}

.lang-option.active {
    background: hsla(42, 85%, 55%, 0.1);
    color: var(--museum-gold);
    color: var(--museum-gold);
}

@media (min-width: 768px) {
    .mobile-menu-btn {
        display: none;
    }
}

/* Mobile Navigation */
.mobile-nav {
    display: none;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem 0;
    border-top: 1px solid var(--border);
}

.mobile-nav.show {
    display: flex;
}

@media (min-width: 768px) {
    .mobile-nav {
        display: none !important;
    }
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0;
    color: var(--muted-foreground);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.3s;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
    color: var(--museum-gold);
}

.mobile-nav-link i {
    width: 1.25rem;
    height: 1.25rem;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transform: scale(1.1);
    filter: grayscale(60%) contrast(1.1);
}

.hero-overlay {
    position: absolute;
    inset: 0;
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 0 1.5rem;
    max-width: 64rem;
    margin: 0 auto;
}

/* Ornamental line */
.ornamental-line {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.ornamental-line .line {
    width: 4rem;
    height: 1px;
}

.ornamental-line .diamond {
    width: 0.5rem;
    height: 0.5rem;
    border: 1px solid;
    transform: rotate(45deg);
}

/* Hero title */
.hero-title {
    font-family: var(--font-display);
    font-size: 3rem;
    line-height: 0.9;
    margin-bottom: 1.5rem;
}

@media (min-width: 640px) {
    .hero-title { font-size: 3.75rem; }
}

@media (min-width: 768px) {
    .hero-title { font-size: 4.5rem; }
}

@media (min-width: 1024px) {
    .hero-title { font-size: 6rem; }
}

/* Info badges */
.info-badges {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.info-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: hsla(220, 20%, 4%, 0.5);
    backdrop-filter: blur(8px);
    border: 1px solid hsla(220, 15%, 18%, 0.3);
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

.info-badge svg {
    width: 1rem;
    height: 1rem;
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--muted-foreground);
    cursor: pointer;
    transition: color 0.3s ease;
}

.scroll-indicator:hover {
    color: var(--foreground);
}

.scroll-indicator span {
    font-family: var(--font-body);
    font-size: 0.625rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
}

/* ==========================================================================
   Navigation
   ========================================================================== */
.nav-section {
    position: sticky;
    top: 5rem;
    z-index: 90;
    border-bottom: 1px solid hsla(220, 15%, 18%, 0.2);
    background: hsla(220, 20%, 4%, 0.95);
    backdrop-filter: blur(8px);
}

.nav-inner {
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

/* View mode toggle */
.view-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid hsla(220, 15%, 18%, 0.3);
    padding: 0.25rem;
}

.view-toggle-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    font-family: var(--font-body);
    font-size: 0.875rem;
    color: var(--muted-foreground);
    transition: all 0.3s ease;
}

.view-toggle-btn:hover {
    color: var(--foreground);
}

.view-toggle-btn.active {
    background: var(--museum-gold);
    color: var(--museum-black);
}

.view-toggle-btn svg {
    width: 1rem;
    height: 1rem;
}

/* Categories */
.categories-nav {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    flex-wrap: wrap;
}

.category-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.75rem;
    font-family: var(--font-body);
    font-size: 0.8125rem;
    white-space: nowrap;
    color: var(--muted-foreground);
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.category-btn:hover {
    color: var(--foreground);
}

.category-btn.active {
    color: var(--museum-gold);
    border-bottom-color: var(--museum-gold);
}

.category-btn svg {
    width: 1rem;
    height: 1rem;
}

/* Season filter */
.season-filter {
    position: relative;
    z-index: 80;
    border-bottom: 1px solid hsla(220, 15%, 18%, 0.2);
    padding: 1rem 0;
    background: hsla(220, 18%, 10%, 0.3);
}

.season-filter-inner {
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.season-filter-content {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    overflow-x: auto;
}

.season-filter-content::-webkit-scrollbar {
    display: none;
}

.season-label {
    font-size: 0.75rem;
    color: var(--muted-foreground);
    margin-right: 0.5rem;
}

.season-btn {
    padding: 0.375rem 0.75rem;
    font-family: var(--font-body);
    font-size: 0.75rem;
    white-space: nowrap;
    background: transparent;
    color: var(--muted-foreground);
    border: 1px solid hsla(220, 15%, 18%, 0.3);
    transition: all 0.3s ease;
}

.season-btn:hover {
    border-color: hsla(42, 85%, 55%, 0.5);
}

.season-btn.active {
    background: var(--museum-gold);
    color: var(--museum-black);
    border-color: var(--museum-gold);
}

/* ==========================================================================
   Timeline - Identyczny z React ClubTimeline.tsx
   ========================================================================== */
.timeline-container {
    position: relative;
    max-width: 56rem;
    margin: 0 auto;
}

/* Timeline header */
.timeline-header {
    text-align: center;
    margin-bottom: 3rem;
}

.timeline-header .subtitle {
    font-family: var(--font-body);
    font-size: 0.75rem;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: var(--museum-gold);
    margin-bottom: 1rem;
}

.timeline-header h2 {
    font-family: var(--font-display);
    font-size: 1.875rem;
    color: var(--foreground);
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .timeline-header h2 {
        font-size: 2.25rem;
    }
}

.timeline-header p {
    font-family: var(--font-body);
    color: var(--muted-foreground);
    max-width: 42rem;
    margin: 0 auto;
}

/* Central vertical line */
.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 1px;
    background: linear-gradient(to bottom, hsla(42, 85%, 55%, 0.5), hsla(220, 15%, 18%, 0.3), transparent);
    transform: translateX(-50%);
}

/* Year group */
.timeline-year-group {
    position: relative;
    margin-bottom: 4rem;
}

/* Year marker button */
.year-marker {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
}

.year-marker-btn {
    position: relative;
    z-index: 10;
    padding: 1rem 2rem;
    background: var(--museum-charcoal);
    border: 1px solid hsla(220, 15%, 18%, 0.5);
    transition: all 0.3s ease;
    cursor: pointer;
}

.year-marker-btn:hover {
    border-color: hsla(42, 85%, 55%, 0.5);
}

.year-marker-btn.expanded {
    border-color: var(--museum-gold);
    box-shadow: 0 0 30px hsla(42, 85%, 55%, 0.2);
}

.year-marker-btn .year {
    font-family: var(--font-display);
    font-size: 2.5rem;
    color: var(--foreground);
    transition: color 0.3s ease;
}

@media (min-width: 768px) {
    .year-marker-btn .year {
        font-size: 3rem;
    }
}

.year-marker-btn:hover .year,
.year-marker-btn.expanded .year {
    color: var(--museum-gold);
}

.year-marker-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.year-marker-info span {
    font-size: 0.75rem;
    color: var(--muted-foreground);
}

.year-marker-info .highlighted {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    color: var(--museum-gold);
}

.year-marker-info .highlighted svg {
    width: 0.75rem;
    height: 0.75rem;
}

/* Timeline events */
.timeline-events {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Timeline event row */
.timeline-event-row {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.timeline-event-row.left {
    flex-direction: row;
}

.timeline-event-row.right {
    flex-direction: row-reverse;
}

/* Event card container */
.timeline-event-card-container {
    flex: 1;
    max-width: 45%;
}

.timeline-event-row.left .timeline-event-card-container {
    text-align: right;
}

.timeline-event-row.right .timeline-event-card-container {
    text-align: left;
}

/* Event card */
.timeline-event-card {
    padding: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.timeline-event-card:hover {
    border-color: hsla(42, 85%, 55%, 0.5);
}

.timeline-event-card.highlighted {
    border-color: hsla(42, 85%, 55%, 0.3);
}

/* Event card header */
.event-card-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.timeline-event-row.left .event-card-header {
    justify-content: flex-end;
}

.timeline-event-row.right .event-card-header {
    justify-content: flex-start;
}

.event-highlight-star {
    width: 0.75rem;
    height: 0.75rem;
    color: var(--museum-gold);
    fill: var(--museum-gold);
}

/* Event type badge */
.event-type-badge {
    display: inline-flex;
    padding: 0.125rem 0.5rem;
    font-family: var(--font-body);
    font-size: 0.625rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border-radius: 2px;
    border: 1px solid;
}

/* Event type colors */
.event-type-badge.match {
    background: hsla(142, 71%, 45%, 0.1);
    border-color: hsla(142, 71%, 45%, 0.3);
    color: hsl(142, 71%, 45%);
}

.event-type-badge.trophy {
    background: hsla(42, 85%, 55%, 0.1);
    border-color: hsla(42, 85%, 55%, 0.3);
    color: var(--museum-gold);
}

.event-type-badge.squad {
    background: hsla(217, 91%, 60%, 0.1);
    border-color: hsla(217, 91%, 60%, 0.3);
    color: hsl(217, 91%, 60%);
}

.event-type-badge.photo {
    background: hsla(271, 91%, 65%, 0.1);
    border-color: hsla(271, 91%, 65%, 0.3);
    color: hsl(271, 91%, 65%);
}

.event-type-badge.clipping {
    background: hsla(24, 100%, 50%, 0.1);
    border-color: hsla(24, 100%, 50%, 0.3);
    color: hsl(24, 100%, 50%);
}

.event-type-badge.event {
    background: hsla(330, 81%, 60%, 0.1);
    border-color: hsla(330, 81%, 60%, 0.3);
    color: hsl(330, 81%, 60%);
}

.event-type-badge.staff {
    background: hsla(39, 95%, 55%, 0.1);
    border-color: hsla(39, 95%, 55%, 0.3);
    color: hsl(39, 95%, 55%);
}

/* Event image */
.event-card-image {
    position: relative;
    height: 6rem;
    margin-bottom: 0.75rem;
    overflow: hidden;
}

.event-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.timeline-event-card:hover .event-card-image img {
    transform: scale(1.1);
}

.event-card-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, hsla(220, 20%, 4%, 0.6), transparent);
}

/* Event title */
.event-card-title {
    font-family: var(--font-display);
    font-size: 1.125rem;
    color: var(--foreground);
    margin-bottom: 0.25rem;
    transition: color 0.3s ease;
}

.timeline-event-card:hover .event-card-title {
    color: var(--museum-gold);
}

/* Event score */
.event-card-score {
    font-family: var(--font-display);
    font-size: 0.875rem;
    color: var(--museum-gold);
    margin-bottom: 0.25rem;
}

/* Event description */
.event-card-description {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Event date */
.event-card-date {
    font-size: 0.75rem;
    color: var(--muted-foreground);
    margin-top: 0.5rem;
}

/* Timeline dot */
.timeline-dot {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid;
    transition: all 0.3s ease;
}

.timeline-dot svg {
    width: 1rem;
    height: 1rem;
}

.timeline-dot.highlighted {
    background: var(--museum-gold);
    border-color: var(--museum-gold);
    box-shadow: 0 0 20px hsla(42, 85%, 55%, 0.4);
}

.timeline-dot.highlighted svg {
    color: var(--museum-black);
}

/* Dot colors by type */
.timeline-dot.match { 
    background: hsla(142, 71%, 45%, 0.1); 
    border-color: hsla(142, 71%, 45%, 0.3);
}
.timeline-dot.match svg { color: hsl(142, 71%, 45%); }

.timeline-dot.trophy { 
    background: hsla(42, 85%, 55%, 0.1); 
    border-color: hsla(42, 85%, 55%, 0.3);
}
.timeline-dot.trophy svg { color: var(--museum-gold); }

.timeline-dot.squad { 
    background: hsla(217, 91%, 60%, 0.1); 
    border-color: hsla(217, 91%, 60%, 0.3);
}
.timeline-dot.squad svg { color: hsl(217, 91%, 60%); }

.timeline-dot.photo { 
    background: hsla(271, 91%, 65%, 0.1); 
    border-color: hsla(271, 91%, 65%, 0.3);
}
.timeline-dot.photo svg { color: hsl(271, 91%, 65%); }

.timeline-dot.clipping { 
    background: hsla(24, 100%, 50%, 0.1); 
    border-color: hsla(24, 100%, 50%, 0.3);
}
.timeline-dot.clipping svg { color: hsl(24, 100%, 50%); }

.timeline-dot.event { 
    background: hsla(330, 81%, 60%, 0.1); 
    border-color: hsla(330, 81%, 60%, 0.3);
}
.timeline-dot.event svg { color: hsl(330, 81%, 60%); }

/* Empty space for opposite side */
.timeline-event-spacer {
    flex: 1;
    max-width: 45%;
}

/* Show more / View season buttons */
.timeline-year-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.show-more-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--muted-foreground);
    transition: color 0.3s ease;
}

.show-more-btn:hover {
    color: var(--museum-gold);
}

.show-more-btn svg {
    width: 1rem;
    height: 1rem;
}

.view-season-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: hsla(42, 85%, 55%, 0.1);
    border: 1px solid hsla(42, 85%, 55%, 0.3);
    color: var(--museum-gold);
    font-size: 0.875rem;
    transition: background 0.3s ease;
}

.view-season-btn:hover {
    background: hsla(42, 85%, 55%, 0.2);
}

.view-season-btn svg {
    width: 1rem;
    height: 1rem;
}

/* Empty timeline */
.timeline-empty {
    text-align: center;
    padding: 5rem 0;
}

.timeline-empty svg {
    width: 4rem;
    height: 4rem;
    color: hsla(220, 15%, 18%, 0.3);
    margin: 0 auto 1.5rem;
}

.timeline-empty h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--foreground);
    margin-bottom: 0.5rem;
}

.timeline-empty p {
    font-family: var(--font-body);
    color: var(--muted-foreground);
}

/* ==========================================================================
   Content Grids
   ========================================================================== */
.content-grid {
    display: grid;
    gap: 1rem;
}

.content-grid.cols-2 {
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .content-grid.cols-2 {
        grid-template-columns: repeat(2, 1fr);
    }
}

.content-grid.cols-3 {
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .content-grid.cols-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .content-grid.cols-3 {
        grid-template-columns: repeat(3, 1fr);
    }
}

.content-grid.cols-4 {
    grid-template-columns: repeat(2, 1fr);
}

.content-grid.cols-5 {
    grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 768px) {
    .content-grid.cols-4 {
        grid-template-columns: repeat(4, 1fr);
    }
    .content-grid.cols-5 {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media (max-width: 767px) {
    .content-grid.cols-5 {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ==========================================================================
   Match Card
   ========================================================================== */
.match-card {
    padding: 1.25rem;
    cursor: pointer;
}

.match-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.match-competition {
    padding: 0.25rem 0.75rem;
    background: hsla(220, 15%, 18%, 0.5);
    border-radius: 2px;
    font-size: 0.75rem;
    font-family: var(--font-body);
    letter-spacing: 0.05em;
    color: var(--muted-foreground);
}

.match-date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: var(--muted-foreground);
}

.match-date svg {
    width: 0.75rem;
    height: 0.75rem;
}

.match-teams {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.match-team {
    flex: 1;
    font-family: var(--font-display);
    font-size: 1.125rem;
    color: var(--foreground);
}

.match-team.home {
    text-align: left;
}

.match-team.away {
    text-align: right;
}

.match-team.highlighted {
    color: var(--museum-gold);
}

.match-score {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 2px;
    border: 1px solid;
}

.match-score.win {
    background: hsla(142, 71%, 45%, 0.1);
    border-color: hsla(142, 71%, 45%, 0.3);
}

.match-score.draw {
    background: hsla(42, 85%, 55%, 0.1);
    border-color: hsla(42, 85%, 55%, 0.3);
}

.match-score.loss {
    background: hsla(0, 84%, 60%, 0.1);
    border-color: hsla(0, 84%, 60%, 0.3);
}

.match-score span {
    font-family: var(--font-display);
    font-size: 1.5rem;
}

.match-score.win span { color: hsl(142, 71%, 45%); }
.match-score.draw span { color: var(--museum-gold); }
.match-score.loss span { color: hsl(0, 84%, 60%); }

.match-score .separator {
    font-size: 1.5rem;
    color: var(--muted-foreground);
}

.match-venue {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-top: 1rem;
    font-size: 0.75rem;
    color: var(--muted-foreground);
}

.match-venue svg {
    width: 0.75rem;
    height: 0.75rem;
}

/* ==========================================================================
   Trophy Card
   ========================================================================== */
.trophy-card {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.trophy-card-image {
    position: relative;
    height: 14rem;
    overflow: hidden;
}

.trophy-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.trophy-card:hover .trophy-card-image img {
    transform: scale(1.1);
}

.trophy-card-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom right, hsla(42, 85%, 55%, 0.2), var(--museum-charcoal));
    display: flex;
    align-items: center;
    justify-content: center;
}

.trophy-card-placeholder svg {
    width: 4rem;
    height: 4rem;
    color: hsla(42, 85%, 55%, 0.3);
}

.trophy-card-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, var(--museum-black), transparent);
}

/* Trophy shimmer effect */
.trophy-card-shimmer {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, transparent, hsla(255, 255, 255, 0.05), transparent);
    transform: translateX(-100%);
    transition: transform 1s ease;
}

.trophy-card:hover .trophy-card-shimmer {
    transform: translateX(100%);
}

/* Trophy badge */
.trophy-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.5rem;
    background: hsla(220, 20%, 4%, 0.8);
    backdrop-filter: blur(8px);
    border: 1px solid hsla(220, 15%, 18%, 0.2);
}

.trophy-badge svg {
    width: 1rem;
    height: 1rem;
}

.trophy-badge.historic svg { color: var(--museum-gold); }
.trophy-badge.major svg { color: var(--museum-burgundy); }
.trophy-badge.minor svg { color: var(--muted-foreground); }

/* Trophy year */
.trophy-year {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    font-family: var(--font-display);
    font-size: 2.25rem;
    color: var(--museum-gold);
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

/* Trophy content */
.trophy-card-content {
    padding: 1.5rem;
}

.trophy-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.trophy-label svg {
    width: 1rem;
    height: 1rem;
    color: var(--museum-gold);
}

.trophy-label span {
    font-family: var(--font-body);
    font-size: 0.625rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--museum-gold);
}

.trophy-card-content h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    color: var(--foreground);
    margin-bottom: 0.5rem;
}

.trophy-card-content p {
    font-family: var(--font-body);
    font-size: 0.875rem;
    color: var(--muted-foreground);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Trophy significance line */
.trophy-significance-line {
    height: 2px;
    width: 100%;
    transition: all 0.5s ease;
}

.trophy-significance-line.historic {
    background: linear-gradient(to right, var(--museum-gold), hsla(42, 85%, 55%, 0.5), transparent);
}

.trophy-significance-line.major {
    background: linear-gradient(to right, var(--museum-burgundy), hsla(350, 60%, 35%, 0.5), transparent);
}

.trophy-significance-line.minor {
    background: linear-gradient(to right, var(--museum-slate), hsla(220, 15%, 18%, 0.5), transparent);
}

/* ==========================================================================
   Squad Card
   ========================================================================== */
.squad-card {
    overflow: hidden;
    cursor: pointer;
}

.squad-card-image {
    height: 12rem;
    overflow: hidden;
}

.squad-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.squad-card-content {
    padding: 1.25rem;
}

.squad-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.squad-label svg {
    width: 1rem;
    height: 1rem;
    color: var(--museum-gold);
}

.squad-label span {
    font-family: var(--font-body);
    font-size: 0.625rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--museum-gold);
}

.squad-card-content h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    color: var(--foreground);
    margin-bottom: 0.5rem;
}

.squad-coach {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    margin-bottom: 0.75rem;
}

.squad-achievements {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.squad-achievement {
    padding: 0.25rem 0.5rem;
    background: hsla(42, 85%, 55%, 0.1);
    border: 1px solid hsla(42, 85%, 55%, 0.3);
    font-size: 0.75rem;
    color: var(--museum-gold);
}

/* ==========================================================================
   Gallery / Photo Card
   ========================================================================== */
.photo-card {
    position: relative;
    overflow: hidden;
    background: var(--museum-charcoal);
    cursor: pointer;
}

.photo-card img {
    width: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

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

.photo-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, var(--museum-black), transparent, transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.photo-card:hover .photo-card-overlay {
    opacity: 1;
}

.photo-card-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.photo-card:hover .photo-card-info {
    transform: translateY(0);
}

.photo-card-info h4 {
    font-family: var(--font-display);
    font-size: 1.125rem;
    color: var(--foreground);
}

.photo-card-info p {
    font-size: 0.75rem;
    color: var(--museum-gold);
    margin-top: 0.25rem;
}

.photo-card-year {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    padding: 0.25rem 0.5rem;
    background: hsla(220, 20%, 4%, 0.8);
    backdrop-filter: blur(8px);
    border: 1px solid hsla(42, 85%, 55%, 0.3);
}

.photo-card-year span {
    font-family: var(--font-display);
    font-size: 0.875rem;
    color: var(--museum-gold);
}

/* ==========================================================================
   Clipping Card
   ========================================================================== */
.clipping-card {
    overflow: hidden;
    cursor: pointer;
}

.clipping-card-image {
    position: relative;
    height: 16rem;
    overflow: hidden;
}

.clipping-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: sepia(1);
    transition: all 0.5s ease;
}

.clipping-card:hover .clipping-card-image img {
    filter: sepia(0);
    transform: scale(1.05);
}

.clipping-card-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, var(--museum-black), transparent);
}

.clipping-card-content {
    padding: 1.25rem;
}

.clipping-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.clipping-label svg {
    width: 1rem;
    height: 1rem;
    color: var(--museum-gold);
}

.clipping-label span {
    font-family: var(--font-body);
    font-size: 0.625rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--museum-gold);
}

.clipping-card-content h3 {
    font-family: var(--font-display);
    font-size: 1.125rem;
    color: var(--foreground);
    margin-bottom: 0.5rem;
}

.clipping-card-content p {
    font-size: 0.75rem;
    color: var(--muted-foreground);
}

/* ==========================================================================
   Event Card
   ========================================================================== */
.event-card {
    padding: 1.25rem;
    cursor: pointer;
}

.event-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.event-label svg {
    width: 1rem;
    height: 1rem;
    color: var(--museum-gold);
}

.event-label span {
    font-family: var(--font-body);
    font-size: 0.625rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--museum-gold);
}

.event-card h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    color: var(--foreground);
    margin-bottom: 0.5rem;
}

.event-card .description {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    margin-bottom: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.event-card .date {
    font-size: 0.75rem;
    color: var(--muted-foreground);
}

/* ==========================================================================
   Stats Section
   ========================================================================== */
.stat-card {
    padding: 1.5rem;
    text-align: center;
}

.stat-card svg {
    width: 2rem;
    height: 2rem;
    color: var(--museum-gold);
    margin: 0 auto 0.75rem;
}

.stat-card .value {
    font-family: var(--font-display);
    font-size: 2.25rem;
    color: var(--foreground);
    margin-bottom: 0.25rem;
}

.stat-card .label {
    font-family: var(--font-body);
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

/* ==========================================================================
   Empty State
   ========================================================================== */
.empty-state {
    text-align: center;
    padding: 5rem 0;
    background: hsla(220, 18%, 10%, 0.3);
    border: 1px dashed hsla(220, 15%, 18%, 0.3);
}

.empty-state-icon {
    width: 4rem;
    height: 4rem;
    border: 1px solid hsla(42, 85%, 55%, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.empty-state-icon svg {
    width: 2rem;
    height: 2rem;
    color: hsla(42, 85%, 55%, 0.5);
}

.empty-state h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    color: var(--foreground);
    margin-bottom: 0.5rem;
}

.empty-state p {
    font-family: var(--font-body);
    color: var(--muted-foreground);
    margin-bottom: 1.5rem;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    font-family: var(--font-body);
    font-size: 0.875rem;
    border-radius: var(--radius);
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background: var(--museum-gold);
    color: var(--museum-black);
}

.btn-primary:hover {
    background: hsla(42, 85%, 45%, 1);
}

.btn-outline {
    background: transparent;
    border: 1px solid hsla(42, 85%, 55%, 0.3);
    color: var(--museum-gold);
}

.btn-outline:hover {
    background: hsla(42, 85%, 55%, 0.1);
}

.btn-ghost {
    background: transparent;
    color: var(--muted-foreground);
}

.btn-ghost:hover {
    color: var(--museum-gold);
}

.btn svg {
    width: 1rem;
    height: 1rem;
}

/* ==========================================================================
   Modal / Dialog
   ========================================================================== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: auto;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.modal {
    background: var(--museum-charcoal);
    border: 1px solid hsla(220, 15%, 18%, 0.5);
    max-width: 64rem;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    position: relative;
    transform: scale(0.95);
    transition: transform 0.3s ease;
    pointer-events: auto;
}

.modal-overlay.active .modal {
    transform: scale(1);
}

/* Old modal-close styles removed - see consolidated styles below */

.modal-scroll {
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    position: relative;
    padding: 2rem;
    background: linear-gradient(to bottom right, hsla(350, 60%, 35%, 0.3), var(--museum-charcoal));
}

.modal-tabs {
    display: flex;
    border-bottom: 1px solid hsla(220, 15%, 18%, 0.3);
    overflow-x: auto;
}

.modal-tab {
    flex: 1;
    padding: 0.75rem 1rem;
    font-family: var(--font-body);
    font-size: 0.875rem;
    color: var(--muted-foreground);
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.modal-tab:hover {
    color: var(--foreground);
}

.modal-tab.active {
    color: var(--museum-gold);
    border-bottom-color: var(--museum-gold);
}

.modal-tab svg {
    width: 1rem;
    height: 1rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    border-top: 1px solid hsla(220, 15%, 18%, 0.2);
    padding: 4rem 0;
    background: var(--museum-black);
    text-align: center;
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.footer-logo img {
    width: 2rem;
    height: 2rem;
    object-fit: contain;
    opacity: 0.5;
}

.footer-logo svg {
    width: 1.5rem;
    height: 1.5rem;
    opacity: 0.5;
}

.footer-name {
    font-family: var(--font-display);
    font-size: 1.125rem;
    color: var(--foreground);
    letter-spacing: 0.1em;
    margin-bottom: 0.25rem;
}

.footer-copyright {
    font-family: var(--font-body);
    font-size: 0.75rem;
    color: var(--muted-foreground);
}

/* ==========================================================================
   Club Cards (Index page)
   ========================================================================== */
.club-card {
    position: relative;
    overflow: hidden;
    height: 20rem;
    cursor: pointer;
}

.club-card-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.7s ease;
}

.club-card:hover .club-card-bg {
    transform: scale(1.1);
}

.club-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, var(--museum-black), hsla(220, 20%, 4%, 0.5), transparent);
}

.club-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    z-index: 10;
}

.club-card-logo {
    width: 3rem;
    height: 3rem;
    object-fit: contain;
    margin-bottom: 1rem;
}

.club-card h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--foreground);
    margin-bottom: 0.5rem;
}

.club-card-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

.club-card-meta span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.club-card-meta svg {
    width: 0.875rem;
    height: 0.875rem;
}

.club-card-verified {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.25rem 0.5rem;
    background: hsla(42, 85%, 55%, 0.2);
    border: 1px solid hsla(42, 85%, 55%, 0.4);
    font-size: 0.625rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--museum-gold);
}

/* Compact Club Cards for Homepage */
.club-card-compact {
    height: auto;
    min-height: 140px;
}

.club-card-compact .club-card-content {
    padding: 0.75rem;
}

.club-card-compact .club-card-logo {
    width: 2.5rem;
    height: 2.5rem;
    margin-bottom: 0.5rem;
}

.club-card-compact h3 {
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
    line-height: 1.2;
}

.club-card-compact .club-card-meta {
    font-size: 0.625rem;
    gap: 0.5rem;
}

.club-card-compact .club-card-meta svg {
    width: 0.625rem;
    height: 0.625rem;
}

.club-card-compact .club-card-verified {
    top: 0.5rem;
    right: 0.5rem;
    padding: 0.125rem 0.375rem;
    font-size: 0.5rem;
}

/* ==========================================================================
   Loading State
   ========================================================================== */
.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

.loading-inner {
    text-align: center;
}

.loading-icon {
    width: 3rem;
    height: 3rem;
    border: 1px solid hsla(42, 85%, 55%, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.loading-icon svg {
    width: 1.5rem;
    height: 1.5rem;
    color: var(--museum-gold);
}

.loading p {
    font-family: var(--font-body);
    font-size: 0.875rem;
    letter-spacing: 0.05em;
    color: var(--muted-foreground);
}

/* ==========================================================================
   Utilities
   ========================================================================== */
.text-gold { color: var(--museum-gold); }
.text-muted { color: var(--muted-foreground); }
.text-foreground { color: var(--foreground); }
.text-green { color: hsl(142, 71%, 45%); }
.text-red { color: hsl(0, 84%, 60%); }
.text-blue { color: hsl(217, 91%, 60%); }
.text-purple { color: hsl(271, 91%, 65%); }
.text-orange { color: hsl(24, 100%, 50%); }
.text-pink { color: hsl(330, 81%, 60%); }

.bg-gold { background: var(--museum-gold); }
.bg-charcoal { background: var(--museum-charcoal); }
.bg-black { background: var(--museum-black); }

.border-gold { border-color: hsla(42, 85%, 55%, 0.3); }
.border-slate { border-color: hsla(220, 15%, 18%, 0.3); }

.opacity-0 { opacity: 0; }
.opacity-50 { opacity: 0.5; }

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tracking-wide { letter-spacing: 0.05em; }
.tracking-wider { letter-spacing: 0.1em; }
.tracking-widest { letter-spacing: 0.2em; }

.uppercase { text-transform: uppercase; }

.truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Scrollbar hide */
.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

/* ==========================================================================
   Responsive Utilities
   ========================================================================== */
.hidden { display: none; }

@media (min-width: 640px) {
    .sm\:inline { display: inline; }
    .sm\:flex { display: flex; }
    .sm\:block { display: block; }
}

@media (min-width: 768px) {
    .md\:hidden { display: none; }
    .md\:block { display: block; }
    .md\:flex { display: flex; }
}

@media (min-width: 1024px) {
    .lg\:hidden { display: none; }
    .lg\:block { display: block; }
}

/* ==========================================================================
   Form Styles (for auth pages)
   ========================================================================== */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-family: var(--font-body);
    font-size: 0.875rem;
    color: var(--foreground);
    margin-bottom: 0.5rem;
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--museum-charcoal);
    border: 1px solid hsla(220, 15%, 18%, 0.5);
    color: var(--foreground);
    font-family: var(--font-body);
    font-size: 0.875rem;
    border-radius: var(--radius);
    transition: border-color 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--museum-gold);
}

.form-input::placeholder {
    color: var(--muted-foreground);
}

.form-select {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--museum-charcoal);
    border: 1px solid hsla(220, 15%, 18%, 0.5);
    color: var(--foreground);
    font-family: var(--font-body);
    font-size: 0.875rem;
    border-radius: var(--radius);
    cursor: pointer;
}

.form-select:focus {
    outline: none;
    border-color: var(--museum-gold);
}

/* Flash messages */
.flash-message {
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: var(--radius);
}

.flash-message.success {
    background: hsla(142, 71%, 45%, 0.1);
    border: 1px solid hsla(142, 71%, 45%, 0.3);
    color: hsl(142, 71%, 45%);
}

.flash-message.error {
    background: hsla(0, 84%, 60%, 0.1);
    border: 1px solid hsla(0, 84%, 60%, 0.3);
    color: hsl(0, 84%, 60%);
}

/* Container */
.container {
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 1.5rem;
}

@media (min-width: 1024px) {
    .container {
        padding: 0 3rem;
    }
}

/* Main content area */
.main-content {
    position: relative;
    z-index: 60;
    padding: 4rem 0;
}

/* Dynamic category loading */
.category-content-wrapper {
    transition: opacity 0.3s ease;
    min-height: 200px;
}

.category-content-wrapper.loading {
    opacity: 0.5;
    pointer-events: none;
}

/* Smooth button transitions */
.category-btn,
.season-btn {
    cursor: pointer;
    transition: all 0.2s ease;
}

/* ==========================================================================
   Modal Container Styles
   ========================================================================== */

.modal-container {
    background: var(--museum-charcoal);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    max-width: 650px;
    width: 100%;
    max-height: 90vh;
    overflow: visible;
    position: relative;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s ease;
    pointer-events: auto;
}

.modal-container .modal-content {
    max-height: calc(90vh - 4rem);
    overflow-y: auto;
    padding: 3.5rem 2rem 2rem;
    position: relative;
    z-index: 1;
    /* Nie blokuj przycisku zamknij */
    pointer-events: auto;
}

.modal-overlay.active .modal-container {
    transform: scale(1) translateY(0);
}

.modal-close,
.modal-container > button:first-child {
    position: absolute !important;
    top: 1rem !important;
    right: 1rem !important;
    width: 2.5rem !important;
    height: 2.5rem !important;
    min-width: 2.5rem !important;
    min-height: 2.5rem !important;
    background: #444 !important;
    border: 2px solid #666 !important;
    border-radius: 50% !important;
    color: #fff !important;
    font-size: 1.5rem !important;
    font-weight: bold !important;
    line-height: 1 !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 9999999 !important;
    transition: all 0.2s ease !important;
    padding: 0 !important;
    margin: 0 !important;
    pointer-events: auto !important;
    visibility: visible !important;
    opacity: 1 !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.5) !important;
}

.modal-close:hover,
.modal-container > button:first-child:hover {
    background: var(--museum-gold) !important;
    color: #000 !important;
    transform: scale(1.15) !important;
    border-color: var(--museum-gold) !important;
}

.modal-close:focus,
.modal-container > button:first-child:focus {
    outline: 2px solid var(--museum-gold) !important;
    outline-offset: 2px !important;
}

.modal-close:active,
.modal-container > button:first-child:active {
    transform: scale(0.95) !important;
}

/* Modal Event Styles */
.modal-event-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.modal-date {
    color: var(--muted-foreground);
    font-size: 0.875rem;
}

.modal-title {
    font-family: var(--font-display);
    font-size: 1.75rem;
    color: var(--foreground);
    margin-bottom: 1rem;
}

.modal-image {
    margin: 1.5rem 0;
    border: 1px solid var(--border);
    overflow: hidden;
}

.modal-image img {
    width: 100%;
    height: auto;
    display: block;
}

.modal-image.large {
    max-height: 400px;
}

.modal-image.large img {
    object-fit: contain;
    max-height: 400px;
}

.modal-score {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin: 1.5rem 0;
    font-family: var(--font-display);
    font-size: 3rem;
}

.modal-score .score-home {
    color: var(--museum-gold);
}

.modal-score .score-away {
    color: var(--foreground);
}

.modal-score .score-separator {
    color: var(--muted-foreground);
}

.modal-competition,
.modal-venue,
.modal-source,
.modal-coach {
    color: var(--muted-foreground);
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.modal-description {
    color: var(--foreground);
    line-height: 1.6;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.modal-squad-list {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.modal-squad-list h4 {
    font-family: var(--font-display);
    color: var(--museum-gold);
    margin-bottom: 1rem;
}

.modal-squad-list ul {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
}

.modal-squad-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    background: var(--museum-slate);
    border: 1px solid var(--border);
}

.modal-squad-list .jersey {
    color: var(--museum-gold);
    font-weight: 600;
    min-width: 2rem;
}

.modal-squad-list .name {
    flex: 1;
    color: var(--foreground);
}

.modal-squad-list .position {
    color: var(--muted-foreground);
    font-size: 0.75rem;
}

/* View season button styling */
.view-season-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: transparent;
    border: 1px solid var(--border);
    color: var(--muted-foreground);
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.view-season-btn:hover {
    background: var(--museum-gold);
    border-color: var(--museum-gold);
    color: var(--museum-black);
}

@media (max-width: 640px) {
    .modal-squad-list ul {
        grid-template-columns: 1fr;
    }
    
    .modal-score {
        font-size: 2rem;
    }
}

/* ==========================================================================
   Photo Lightbox
   ========================================================================== */
.lightbox-container {
    position: relative;
    display: flex;
    flex-direction: column;
    max-width: 95vw;
    max-height: 95vh;
    background: var(--museum-black);
    border: 1px solid var(--museum-slate);
}

.lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: hsla(220, 20%, 4%, 0.6);
    border: 1px solid var(--museum-slate);
    color: var(--foreground);
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s;
}

.lightbox-close:hover {
    background: var(--museum-black);
    border-color: var(--museum-gold);
    color: var(--museum-gold);
}

.lightbox-image-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    background: var(--museum-black);
    overflow: hidden;
}

.lightbox-image {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    transition: transform 0.3s ease;
    cursor: zoom-in;
}

.lightbox-image.zoomed {
    transform: scale(1.5);
    cursor: zoom-out;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: hsla(220, 20%, 4%, 0.6);
    border: 1px solid var(--museum-slate);
    color: var(--foreground);
    cursor: pointer;
    transition: all 0.3s;
}

.lightbox-nav:hover {
    background: var(--museum-black);
    border-color: var(--museum-gold);
    color: var(--museum-gold);
}

.lightbox-prev {
    left: 1rem;
}

.lightbox-next {
    right: 1rem;
}

.lightbox-zoom-indicator {
    position: absolute;
    bottom: 5rem;
    right: 1rem;
    padding: 0.5rem;
    background: hsla(220, 20%, 4%, 0.6);
    border: 1px solid var(--museum-slate);
    color: var(--muted-foreground);
}

.lightbox-info {
    padding: 1rem 1.5rem;
    background: var(--museum-charcoal);
    border-top: 1px solid var(--museum-slate);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.lightbox-info-content {
    flex: 1;
    min-width: 0;
}

.lightbox-title {
    font-family: var(--font-display);
    font-size: 1.125rem;
    color: var(--foreground);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lightbox-desc {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    margin-top: 0.25rem;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
}

.lightbox-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}

.lightbox-date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--museum-gold);
}

.lightbox-counter {
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

/* ==========================================================================
   Highlight Toggle Button
   ========================================================================== */
.highlight-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 50%;
    background: hsla(220, 15%, 18%, 0.2);
    border: none;
    color: var(--muted-foreground);
    cursor: pointer;
    transition: all 0.3s;
}

.highlight-toggle:hover {
    background: hsla(42, 85%, 55%, 0.2);
    color: var(--museum-gold);
}

.highlight-toggle.highlighted {
    background: var(--museum-gold);
    color: var(--museum-black);
    box-shadow: 0 0 15px hsla(42, 85%, 55%, 0.4);
}

.highlight-toggle.highlighted svg {
    fill: currentColor;
}

/* ==========================================================================
   Player Tag Form
   ========================================================================== */
.player-tag-trigger {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--muted-foreground);
    cursor: pointer;
    padding: 0.5rem 0;
    transition: color 0.3s;
}

.player-tag-trigger:hover {
    color: var(--museum-gold);
}

.player-tag-trigger svg {
    transition: transform 0.3s;
}

.player-tag-trigger:hover svg {
    transform: scale(1.1);
}

.player-tag-form {
    display: none;
    margin-top: 1rem;
    padding: 1rem;
    background: hsla(220, 15%, 18%, 0.2);
    border: 1px solid var(--museum-slate);
    border-radius: var(--radius);
}

.player-tag-form.visible {
    display: block;
}

.player-tag-form h4 {
    font-family: var(--font-display);
    font-size: 0.875rem;
    color: var(--foreground);
    margin-bottom: 1rem;
}

.player-tag-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.player-tag-form .form-group {
    margin-bottom: 0;
}

.player-tag-form .form-label {
    font-size: 0.75rem;
    color: var(--muted-foreground);
    margin-bottom: 0.25rem;
}

.player-tag-form .position-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.player-tag-form .position-btn {
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
    background: hsla(220, 20%, 15%, 0.3);
    border: 1px solid var(--border);
    color: var(--muted-foreground);
    cursor: pointer;
    transition: all 0.3s;
}

.player-tag-form .position-btn:hover,
.player-tag-form .position-btn.active {
    background: hsla(42, 85%, 55%, 0.2);
    border-color: hsla(42, 85%, 55%, 0.5);
    color: var(--museum-gold);
}

.player-tag-form .submit-btn {
    width: 100%;
    padding: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: hsla(42, 85%, 55%, 0.2);
    border: 1px solid hsla(42, 85%, 55%, 0.5);
    color: var(--museum-gold);
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s;
}

.player-tag-form .submit-btn:hover {
    background: hsla(42, 85%, 55%, 0.3);
}

/* Responsive Lightbox */
@media (max-width: 768px) {
    .lightbox-nav {
        width: 2.5rem;
        height: 2.5rem;
    }
    
    .lightbox-prev {
        left: 0.5rem;
    }
    
    .lightbox-next {
        right: 0.5rem;
    }
    
    .lightbox-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .lightbox-meta {
        width: 100%;
        justify-content: space-between;
    }
}

/* ==========================================================================
   Comments Section
   ========================================================================== */
.comments-section {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.comments-title {
    font-family: var(--font-display);
    font-size: 1rem;
    color: var(--foreground);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.comment-form {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.comment-input {
    flex: 1;
    padding: 0.75rem;
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--foreground);
    font-size: 0.875rem;
    resize: none;
}

.comment-input:focus {
    outline: none;
    border-color: var(--museum-gold);
}

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.no-comments {
    color: var(--muted-foreground);
    font-size: 0.875rem;
    text-align: center;
    padding: 1rem;
}

.comment-item {
    display: flex;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.comment-avatar {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    overflow: hidden;
    background: var(--muted);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.comment-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.comment-avatar svg {
    color: var(--muted-foreground);
}

.comment-content {
    flex: 1;
    min-width: 0;
}

.comment-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.25rem;
}

.comment-author {
    font-weight: 500;
    color: var(--foreground);
    font-size: 0.875rem;
}

.comment-date {
    font-size: 0.75rem;
    color: var(--muted-foreground);
}

.comment-text {
    color: var(--muted-foreground);
    font-size: 0.875rem;
    line-height: 1.5;
}

/* ==========================================================================
   Report Modal
   ========================================================================== */
.report-modal {
    padding: 1rem;
}

.report-modal h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    color: var(--foreground);
    margin-bottom: 1.5rem;
}

.report-modal .form-group {
    margin-bottom: 1rem;
}

.report-modal label {
    display: block;
    font-size: 0.875rem;
    color: var(--foreground);
    margin-bottom: 0.5rem;
}

.report-modal .form-input {
    width: 100%;
    padding: 0.75rem;
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--foreground);
    font-size: 0.875rem;
}

.report-modal .form-input:focus {
    outline: none;
    border-color: var(--museum-gold);
}

.report-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

/* ==========================================================================
   Help Tooltips
   ========================================================================== */
.help-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.25rem;
    height: 1.25rem;
    margin-left: 0.5rem;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 50%;
    color: var(--muted-foreground);
    font-size: 0.75rem;
    cursor: help;
    transition: all 0.2s;
}

.help-trigger:hover {
    border-color: var(--museum-gold);
    color: var(--museum-gold);
}

.help-dropdown {
    position: relative;
    display: inline-block;
}

.help-content {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    margin-top: 0.5rem;
    width: 280px;
    padding: 1rem;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 100;
}

.help-dropdown:hover .help-content {
    display: block;
}

.help-content h4 {
    font-family: var(--font-display);
    font-size: 0.875rem;
    color: var(--museum-gold);
    margin-bottom: 0.5rem;
}

.help-content p {
    font-size: 0.8125rem;
    color: var(--muted-foreground);
    line-height: 1.5;
}

/* Info box for help sections */
.info-box {
    padding: 1rem;
    background: hsla(217, 91%, 60%, 0.1);
    border: 1px solid hsla(217, 91%, 60%, 0.3);
    border-radius: var(--radius);
    margin-bottom: 1rem;
}

.info-box.warning {
    background: hsla(42, 85%, 55%, 0.1);
    border-color: hsla(42, 85%, 55%, 0.3);
}

.info-box h4 {
    font-family: var(--font-display);
    font-size: 0.875rem;
    color: var(--foreground);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.info-box p {
    font-size: 0.8125rem;
    color: var(--muted-foreground);
    line-height: 1.5;
}
