/* Events page - relies on css/style.css for variables, reset, typography, header/footer/nav */

.btn-lg {
    padding: 16px 44px;
    font-size: 1.05rem;
}

/* ===== Shared section heading ===== */
.section-heading {
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 50px;
}

.timeline-eyebrow {
    display: block;
    width: fit-content;
    margin: 0 auto 16px;
}

.heading-flanked {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.heading-flanked .section-heading {
    margin-bottom: 0;
}

.flank-photo {
    width: 95px;
    height: 115px;
    object-fit: cover;
    border-radius: 8px;
    border: 5px solid var(--white);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
    flex-shrink: 0;
}

.flank-photo.rot-left {
    transform: rotate(-7deg);
}

.flank-photo.rot-right {
    transform: rotate(7deg);
}

/* ===== Timeline ===== */
.timeline-section {
    padding: 90px 0 100px;
    background-color: var(--white);
    position: relative;
}

.timeline-outer-photo {
    display: none;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding-left: 40px;
    border-left: 3px dashed var(--gray-light);
}

.timeline-item {
    position: relative;
    margin-bottom: 50px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: -52px;
    top: 0;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background-color: var(--accent, var(--red));
    color: var(--white);
    font-size: 0.7rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

.timeline-event-name {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--accent, var(--black));
    margin-bottom: 4px;
}

.timeline-event-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.timeline-event-header .timeline-event-name {
    margin-bottom: 0;
}

.timeline-award-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 14px 4px 4px;
    background-color: color-mix(in srgb, #F2C200 15%, white);
    border: 1px solid #F2C200;
    border-radius: 30px;
    flex-shrink: 0;
}

.timeline-award-badge-logo {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: contain;
    background-color: var(--white);
    padding: 3px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.timeline-award-badge-label {
    font-size: 0.68rem;
    font-weight: 700;
    line-height: 1.25;
    color: var(--black);
    text-transform: uppercase;
    letter-spacing: 0.2px;
}

.timeline-meta {
    color: var(--black);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.timeline-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.chip {
    display: inline-block;
    background-color: var(--gray-light);
    color: var(--black);
    font-size: 0.8rem;
    padding: 4px 12px;
    border-radius: 30px;
}

.chip-gold {
    background-color: color-mix(in srgb, var(--accent, var(--red)) 15%, white);
    color: var(--accent, var(--red));
    font-weight: 700;
}

.timeline-item.is-upcoming .timeline-event-name {
    font-size: 1.3rem;
}

.timeline-scatter-photo,
.timeline-backdrop-photo {
    display: none;
}

/* ===== Beyond the Flea highlights ===== */
.highlights-section {
    padding: 100px 0;
    background-color: var(--gray-light);
}

.highlights-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.highlight-card {
    background-color: var(--white);
    padding: 30px;
    border-radius: 10px;
    border-left: 5px solid var(--accent, var(--red));
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.highlight-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.12);
}

.highlight-n {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.6rem;
    color: var(--accent, var(--red));
    opacity: 0.45;
    margin-bottom: 10px;
}

.highlight-title {
    font-weight: 700;
    margin-bottom: 8px;
}

.highlight-desc {
    color: var(--gray);
    font-size: 0.95rem;
}

/* ===== Past sponsors ===== */
.sponsors-section {
    padding: 80px 0;
    background-color: var(--white);
    text-align: center;
}

.sponsors-label {
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--gray);
    font-size: 0.9rem;
    margin-bottom: 40px;
}

.sponsors-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 40px;
}

.sponsor-logo {
    height: 40px;
    width: auto;
    max-width: 140px;
    object-fit: contain;
    opacity: 0.85;
    transition: opacity 0.3s ease;
}

.sponsor-logo:hover {
    opacity: 1;
}

/* ===== Closing CTA ===== */
.events-cta-section {
    position: relative;
    padding: 110px 0;
    text-align: center;
    overflow: hidden;
    background-color: var(--black);
}

.events-cta-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}

.events-cta-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(196, 30, 58, 0.93), rgba(230, 81, 0, 0.88), rgba(26, 26, 26, 0.94));
}

.events-cta-inner {
    position: relative;
    z-index: 1;
}

.events-cta-section h2 {
    color: var(--white);
    margin-bottom: 24px;
}

.events-cta-section .btn-primary {
    background-color: var(--white);
    color: var(--red);
    margin-right: 16px;
}

.events-cta-section .btn-primary:hover {
    background-color: #FFD45E;
    color: var(--black);
}

.events-cta-section .social-link {
    color: var(--white);
    opacity: 0.85;
    font-weight: 600;
}

.events-cta-section .social-link:hover {
    opacity: 1;
}

/* ===== Desktop: alternating zigzag timeline ===== */
@media (min-width: 769px) {
    .timeline {
        max-width: 1000px;
        border-left: none;
        padding-left: 0;
        position: relative;
    }

    .timeline::before {
        content: '';
        position: absolute;
        left: 50%;
        top: 6px;
        bottom: 6px;
        border-left: 3px dashed var(--gray-light);
        transform: translateX(-50%);
    }

    .timeline-item {
        width: calc(50% - 30px);
        margin-bottom: 70px;
    }

    .timeline-item:nth-of-type(odd) {
        margin-right: auto;
        text-align: right;
    }

    .timeline-item:nth-of-type(even) {
        margin-left: auto;
        text-align: left;
    }

    .timeline-item:nth-of-type(odd) .timeline-chips {
        justify-content: flex-end;
    }

    .timeline-dot {
        left: auto;
    }

    .timeline-item:nth-of-type(odd) .timeline-dot {
        right: -47px;
    }

    .timeline-item:nth-of-type(even) .timeline-dot {
        left: -47px;
    }

    /* Decorative photos scattered along the line - deliberately not aligned
       to any single entry, and none placed near the 2026 row since that
       event hasn't happened yet. */
    .timeline-scatter-photo {
        display: block;
        position: absolute;
        object-fit: cover;
        border-radius: 10px;
        border: 4px solid var(--white);
        box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
    }

    /* One photo per zone — no two photos in the same band on the same side */
    .scatter-1 {  /* item1 RIGHT */
        top: 4%;
        right: 50px;
        width: 150px;
        height: 110px;
        transform: rotate(-8deg);
    }

    .scatter-6 {  /* gap1 LEFT */
        top: 11%;
        left: 50px;
        width: 135px;
        height: 100px;
        transform: rotate(-5deg);
    }

    .scatter-2 {  /* item2 LEFT */
        top: 20%;
        left: 60px;
        width: 130px;
        height: 110px;
        transform: rotate(6deg);
    }

    .scatter-3 {  /* gap2 RIGHT */
        top: 27%;
        right: 70px;
        width: 165px;
        height: 115px;
        transform: rotate(5deg);
    }

    .scatter-9 {  /* item3 RIGHT (art1) */
        top: 37%;
        right: 180px;
        width: 140px;
        height: 95px;
        transform: rotate(-7deg);
    }

    .scatter-4 {  /* gap3 LEFT */
        top: 42%;
        left: 40px;
        width: 140px;
        height: 120px;
        transform: rotate(-6deg);
    }

    .scatter-10 { /* item4 LEFT (art2) */
        top: 52%;
        left: 170px;
        width: 100px;
        height: 88px;
        transform: rotate(5deg);
    }

    .scatter-5 {  /* item5 RIGHT — moved from top of page */
        top: 57%;
        right: 45px;
        width: 120px;
        height: 95px;
        transform: rotate(7deg);
    }

    .scatter-7 {  /* item5 RIGHT */
        top: 66%;
        right: 200px;
        width: 125px;
        height: 140px;
        transform: rotate(-4deg);
    }

    .scatter-8 {  /* item6 LEFT */
        top: 81%;
        left: 180px;
        width: 145px;
        height: 100px;
        transform: rotate(7deg);
    }
}

/* ===== Wide desktop: let a few photos bleed into the page margins ===== */
@media (min-width: 1400px) {
    .timeline-outer-photo {
        display: block;
        position: absolute;
        object-fit: cover;
        border-radius: 10px;
        border: 4px solid var(--white);
        box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
    }

    .outer-1 {
        top: 4%;
        left: 50px;
        width: 150px;
        height: 180px;
        transform: rotate(-7deg);
    }

    .outer-2 {
        top: 16%;
        right: 55px;
        width: 165px;
        height: 125px;
        transform: rotate(6deg);
    }

    .outer-3 {
        top: 28%;
        left: 60px;
        width: 140px;
        height: 170px;
        transform: rotate(5deg);
    }

    .outer-5 {
        top: 46%;
        right: 65px;
        width: 145px;
        height: 160px;
        transform: rotate(6deg);
    }

    .outer-6 {
        top: 64%;
        right: 50px;
        width: 160px;
        height: 130px;
        transform: rotate(-5deg);
    }

    .outer-7 {
        top: 36%;
        right: 60px;
        width: 145px;
        height: 155px;
        transform: rotate(7deg);
    }

    .outer-8 {
        top: 50%;
        left: 65px;
        width: 150px;
        height: 120px;
        transform: rotate(-6deg);
    }

    .outer-9 {
        top: 73%;
        right: 55px;
        width: 140px;
        height: 160px;
        transform: rotate(5deg);
    }

    .outer-10 {
        top: 80%;
        left: 50px;
        width: 155px;
        height: 125px;
        transform: rotate(-7deg);
    }

    .outer-11 {
        top: 88%;
        right: 65px;
        width: 140px;
        height: 140px;
        transform: rotate(6deg);
    }
}

/* ===== Responsive ===== */
@media (max-width: 600px) {
    .flank-photo {
        display: none;
    }
}

@media (max-width: 768px) {
    .timeline-section {
        padding-top: 150px;
    }

    .highlights-grid {
        grid-template-columns: 1fr;
    }

    .timeline {
        padding-left: 30px;
    }

    .timeline-dot {
        left: -42px;
        width: 28px;
        height: 28px;
        font-size: 0.6rem;
    }

    .timeline {
        position: relative;
    }

    .timeline-item {
        position: relative;
        z-index: 1;
    }

    .timeline-backdrop-photo {
        display: block;
        position: absolute;
        width: 90px;
        height: 90px;
        object-fit: cover;
        border-radius: 8px;
        border: 3px solid var(--white);
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
        opacity: 0.22;
        z-index: 0;
    }

    .backdrop-1  { top: 1%;  left: 4%;   transform: rotate(-8deg); }
    .backdrop-2  { top: 7%;  left: 52%;  transform: rotate(6deg); }
    .backdrop-3  { top: 15%; left: 18%;  transform: rotate(4deg); }
    .backdrop-4  { top: 23%; left: 60%;  transform: rotate(-5deg); }
    .backdrop-5  { top: 31%; left: 2%;   transform: rotate(7deg); }
    .backdrop-6  { top: 38%; left: 48%;  transform: rotate(-6deg); }
    .backdrop-7  { top: 46%; left: 22%;  transform: rotate(5deg); }
    .backdrop-8  { top: 54%; left: 58%;  transform: rotate(-4deg); }
    .backdrop-9  { top: 61%; left: 6%;   transform: rotate(8deg); }
    .backdrop-10 { top: 68%; left: 50%;  transform: rotate(-7deg); }
    .backdrop-11 { top: 76%; left: 20%;  transform: rotate(6deg); }
    .backdrop-12 { top: 84%; left: 56%;  transform: rotate(-5deg); }
    .backdrop-13 { top: 91%; left: 10%;  transform: rotate(4deg); }
    .backdrop-14 { top: 4%;  right: 52%; transform: rotate(-5deg); }
    .backdrop-15 { top: 11%; left: 55%;  transform: rotate(7deg); }
    .backdrop-16 { top: 20%; right: 6%;  transform: rotate(-6deg); }
    .backdrop-17 { top: 40%; left: 8%;   transform: rotate(5deg); }
    .backdrop-18 { top: 50%; right: 50%; transform: rotate(-4deg); }
    .backdrop-19 { top: 72%; left: 53%;  transform: rotate(6deg); }
    .backdrop-20 { top: 95%; right: 8%;  transform: rotate(-7deg); }

    .events-cta-section .btn-primary {
        display: inline-block;
        margin: 0 0 16px;
    }

    .events-cta-section .social-link {
        display: block;
    }
}
