/* ===== CUSTOM FONTS ===== */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800;900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    overflow-x: hidden;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

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

/* ===== FLAG SLIDER ===== */
.flags-slider {
    animation: scroll-left 30s linear infinite;
    width: max-content;
}

@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.flag-item {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.flag-item:hover {
    background-color: rgba(0, 0, 0, 0.03);
    transform: scale(1.1);
}

.flag-label {
    font-size: 0.75rem;
    color: #6B7280;
    opacity: 0;
    transition: opacity 0.3s ease;
    white-space: nowrap;
}

.flag-item:hover .flag-label {
    opacity: 1;
}

/* ===== CLUB SLIDER ===== */
.club-slider {
    animation: scroll-left 40s linear infinite;
    width: max-content;
}

.club-item {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    min-width: 180px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.club-item:hover {
    border-color: rgba(34, 197, 94, 0.5);
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.05);
}

.club-item span {
    font-size: 0.875rem;
    color: white;
    text-align: center;
    white-space: nowrap;
}

/* ===== JERSEY CARDS ===== */
.jersey-card {
    position: relative;
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.jersey-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.jersey-card-image {
    position: relative;
    aspect-ratio: 1;
    background: linear-gradient(to bottom right, #F9FAFB, #E5E7EB);
    overflow: hidden;
}

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

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

.jersey-card-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.jersey-card-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 10;
    padding: 0.25rem 0.75rem;
    background: #EF4444;
    color: white;
    font-size: 0.75rem;
    border-radius: 9999px;
    font-weight: 600;
}

.rating-stars {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.star {
    width: 1rem;
    height: 1rem;
}

.star.filled {
    color: #FBBF24;
}

.star.empty {
    color: #D1D5DB;
}

/* ===== CLUB JERSEY FLIP EFFECT ===== */
.club-jersey-card {
    position: relative;
}

.club-jersey-image {
    position: relative;
    aspect-ratio: 3/4;
    background: linear-gradient(to bottom right, #374151, #1F2937);
    overflow: hidden;
}

.club-jersey-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.5s ease;
}

.club-jersey-card:hover .jersey-front {
    opacity: 0;
}

.club-jersey-card:hover .jersey-back {
    opacity: 1;
}

.jersey-back {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.5s ease;
}

/* ===== SLICK CAROUSEL CUSTOM STYLES ===== */
.slick-slider {
    position: relative;
    display: block;
    box-sizing: border-box;
    user-select: none;
    touch-action: pan-y;
}

.slick-list {
    position: relative;
    display: block;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

.slick-track {
    position: relative;
    top: 0;
    left: 0;
    display: flex;
}

.slick-slide {
    display: none;
    float: left;
    height: 100%;
    min-height: 1px;
}

.slick-slide.slick-active {
    display: block;
}

.slick-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.slick-arrow:hover {
    background: #22C55E;
    color: white;
}

.slick-prev {
    left: 1rem;
}

.slick-next {
    right: 1rem;
}

.slick-arrow:before {
    content: '';
}

/* ===== BUTTONS ===== */
.btn-primary {
    padding: 1rem 2rem;
    background: linear-gradient(to right, #22C55E, #16A34A);
    color: white;
    font-weight: bold;
    border-radius: 0.5rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary:hover {
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.5);
    transform: scale(1.05);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .slick-arrow {
        width: 40px;
        height: 40px;
    }
    
    .flag-item,
    .club-item {
        padding: 0.75rem;
    }
}

/* ===== SMOOTH SCROLLING ===== */
html {
    scroll-behavior: smooth;
}

/* ===== HOVER GLOW EFFECTS ===== */
.hover-glow {
    position: relative;
    transition: all 0.3s ease;
}

.hover-glow:hover {
    box-shadow: 0 0 30px rgba(34, 197, 94, 0.3);
}

/* ===== GRADIENT TEXT ===== */
.gradient-text {
    background: linear-gradient(to right, #22C55E, #3B82F6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== BACKDROP BLUR ===== */
.backdrop-blur {
    backdrop-filter: blur(10px);
}

/* ===== INTERSECTION OBSERVER ANIMATIONS ===== */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}
