/* ===================================
   BARCELONA THEME
   =================================== */

:root {
    --blaugrana-blue: #004d98;
    --blaugrana-red: #a50044;
    --accent-gold: #edbb00;
    --white-color: #FFFFFF;
    --text-color: #FFFFFF;
    --font-display: 'Teko', sans-serif;
    --font-body: 'Roboto', sans-serif;
}

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

body {
    font-family: var(--font-body);
    background-color: var(--blaugrana-blue);
    color: var(--text-color);
    overflow-x: hidden;
}

/* Music Control */
.music-control {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.btn-music-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--blaugrana-red);
    border: 3px solid var(--accent-gold);
    color: var(--white-color);
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(165, 0, 68, 0.6);
}

.btn-music-circle:hover {
    transform: scale(1.1);
    background: var(--accent-gold);
    color: var(--blaugrana-blue);
}

/* Typography */
.big-font {
    font-family: var(--font-display);
    font-size: clamp(3.5rem, 10vw, 6rem);
    font-weight: 700;
    text-transform: uppercase;
    color: var(--accent-gold);
    text-shadow: 2px 2px 0px var(--blaugrana-red), 4px 4px 0px var(--blaugrana-blue);
    margin: 1rem 0;
    line-height: 0.9;
}

.medium-font {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: var(--accent-gold);
    text-transform: uppercase;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.text-uppercase-spaced {
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 1rem;
    font-weight: 700;
    color: var(--white-color);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 6rem 1rem 4rem;
    /* Blaugrana stripes gradient */
    background: repeating-linear-gradient(90deg,
            var(--blaugrana-blue),
            var(--blaugrana-blue) 40px,
            var(--blaugrana-red) 40px,
            var(--blaugrana-red) 80px);
    position: relative;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    /* Overlay to make text readable */
}

.hero-section>* {
    position: relative;
    z-index: 1;
}

.soccer-ball-icon {
    width: 140px;
    margin: 0 auto 1rem;
    background-color: transparent;
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.5));
}

.hero-image-container {
    width: 250px;
    height: 250px;
    max-width: 80vw;
    max-height: 80vw;
    margin: 2rem auto;
    position: relative;
    border-radius: 50%;
    overflow: hidden;
    border: 5px solid var(--accent-gold);
    box-shadow: 0 0 30px rgba(237, 187, 0, 0.5);
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bg-blaugrana-blue {
    background-color: var(--blaugrana-blue);
}

.bg-blaugrana-red {
    background-color: var(--blaugrana-red);
}

.futbol-card {
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 2rem 1.5rem;
    transition: transform 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.2);
}

.futbol-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-gold);
    box-shadow: 0 0 20px rgba(237, 187, 0, 0.3);
}

/* Buttons */
.btn-futbol {
    display: inline-block;
    padding: 0.8rem 2rem;
    background: var(--accent-gold);
    color: var(--blaugrana-blue);
    text-transform: uppercase;
    font-family: var(--font-display);
    font-size: 1.3rem;
    border-radius: 5px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    white-space: nowrap;
    font-weight: 700;
}

.btn-futbol:hover {
    background: transparent;
    border-color: var(--accent-gold);
    color: var(--accent-gold);
    text-decoration: none;
}

.btn-block {
    display: block;
    width: 100%;
    text-align: center;
}

/* Scoreboard */
.scoreboard-container {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.scoreboard-item {
    background: #000;
    border: 2px solid var(--accent-gold);
    border-radius: 10px;
    padding: 1rem;
    min-width: 80px;
    box-shadow: 0 0 15px rgba(237, 187, 0, 0.3);
}

.scoreboard-number {
    font-family: 'Digital-7 Mono', monospace;
    font-size: 2.5rem;
    color: #ff0000;
    /* Digital red */
    line-height: 1;
}

.scoreboard-label {
    font-family: var(--font-display);
    font-size: 1rem;
    color: var(--white-color);
    margin-top: 0.5rem;
    text-transform: uppercase;
}

/* Timeline */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 6px;
    background-color: var(--accent-gold);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -3px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 25px;
    right: -17px;
    background-color: var(--blaugrana-red);
    border: 4px solid var(--accent-gold);
    top: 15px;
    border-radius: 50%;
    z-index: 1;
}

.left {
    left: 0;
}

.right {
    left: 50%;
}

.left::before {
    content: " ";
    height: 0;
    position: absolute;
    top: 22px;
    width: 0;
    z-index: 1;
    right: 30px;
    border: medium solid var(--white-color);
    border-width: 10px 0 10px 10px;
    border-color: transparent transparent transparent var(--white-color);
}

.right::before {
    content: " ";
    height: 0;
    position: absolute;
    top: 22px;
    width: 0;
    z-index: 1;
    left: 30px;
    border: medium solid var(--white-color);
    border-width: 10px 10px 10px 0;
    border-color: transparent var(--white-color) transparent transparent;
}

.right::after {
    left: -16px;
}

.content {
    padding: 20px 30px;
    background-color: var(--white-color);
    position: relative;
    border-radius: 6px;
    color: #333;
}

/* Gallery */
.futbol-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    padding: 1rem;
}

.gallery-item-futbol {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    aspect-ratio: 1;
    border: 3px solid var(--accent-gold);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.gallery-item-futbol img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    filter: grayscale(0%);
}

.gallery-item-futbol:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(237, 187, 0, 0.4);
}

.gallery-item-futbol:hover img {
    transform: scale(1.1);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section {
        padding-top: 5rem;
    }

    .section-padding {
        padding: 3rem 1rem;
    }

    .hero-image-container {
        width: 200px;
        height: 200px;
    }

    .scoreboard-container {
        gap: 0.5rem;
        padding: 1rem;
    }

    .scoreboard-item {
        min-width: 60px;
        padding: 0.5rem;
    }

    .scoreboard-number {
        font-size: 2rem;
    }

    .futbol-card {
        margin-bottom: 1rem;
    }

    /* Timeline Responsive */
    .timeline::after {
        left: 31px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }

    .timeline-item::before {
        left: 60px;
        border: medium solid white;
        border-width: 10px 10px 10px 0;
        border-color: transparent white transparent transparent;
    }

    .left::after,
    .right::after {
        left: 15px;
    }

    .right {
        left: 0%;
    }
}

@media (max-width: 480px) {
    .text-uppercase-spaced {
        letter-spacing: 2px;
        font-size: 0.9rem;
    }

    .scoreboard-number {
        font-size: 1.8rem;
    }
}