/* ============================================================
   ILD ARCHIVE EVENTS — Le nostre Esperienze
   Percorso: /wp-content/themes/ILoveDisco/assets/css/ild-archive-events.css
   ============================================================ */

/* ══════════════════════════════════════════════════════════
   HERO
══════════════════════════════════════════════════════════ */
.ild-aev-hero {
    position:         relative;
    min-height:       72vh;
    display:          flex;
    align-items:      center;
    background-color: var(--ild-black, #080808);
    overflow:         hidden;
    padding:          120px 60px 80px;
}

/* Sfondo radiale magenta */
.ild-aev-hero::before {
    content:  '';
    position: absolute;
    inset:    0;
    background:
            radial-gradient(ellipse 65% 55% at 20% 60%, rgba(255,0,255,0.07) 0%, transparent 65%),
            radial-gradient(ellipse 40% 40% at 80% 30%, rgba(201,168,76,0.05) 0%, transparent 60%);
    pointer-events: none;
}

.ild-aev-hero__overlay {
    position:   absolute;
    inset:      0;
    background: linear-gradient(
            to right,
            rgba(0,0,0,0.85) 0%,
            rgba(0,0,0,0.40) 70%,
            transparent      100%
    );
    z-index: 1;
}

.ild-aev-hero__inner {
    position:  relative;
    z-index:   2;
    max-width: 680px;
}

/* Eyebrow */
.ild-aev-hero__eyebrow {
    display:        block;
    font-family:    var(--ild-font-sans, 'DM Sans', sans-serif);
    font-size:      10px;
    font-weight:    700;
    letter-spacing: 8px;
    text-transform: uppercase;
    color:          var(--ild-magenta, #ff00ff);
    margin-bottom:  16px;
    opacity:        0.85;
}

/* Titolo */
.ild-aev-hero__title {
    font-family:    var(--ild-font-display, 'Bebas Neue', sans-serif);
    font-size:      clamp(60px, 9vw, 120px);
    line-height:    0.92;
    letter-spacing: 3px;
    color:          var(--ild-white, #f5f0e8);
    margin:         0 0 24px;
}

.ild-aev-hero__title em {
    color:       var(--ild-gold, #c9a84c);
    font-style:  normal;
    text-shadow: 0 0 50px rgba(201,168,76,0.30);
}

/* Descrizione */
.ild-aev-hero__desc {
    font-family: var(--ild-font-sans, 'DM Sans', sans-serif);
    font-size:   15px;
    font-weight: 300;
    color:       rgba(245,240,232,0.60);
    line-height: 1.75;
    max-width:   500px;
    margin:      0 0 36px;
}

/* Stats */
.ild-aev-hero__stats {
    display: flex;
    gap:     40px;
    flex-wrap: wrap;
}

.ild-aev-hero__stat {
    display:        flex;
    flex-direction: column;
    gap:            4px;
}

.ild-aev-hero__stat-num {
    font-family:    var(--ild-font-display, 'Bebas Neue', sans-serif);
    font-size:      52px;
    line-height:    1;
    color:          var(--ild-gold, #c9a84c);
    text-shadow:    0 0 30px rgba(201,168,76,0.25);
}

.ild-aev-hero__stat-label {
    font-family:    var(--ild-font-sans, 'DM Sans', sans-serif);
    font-size:      10px;
    font-weight:    500;
    letter-spacing: 3px;
    text-transform: uppercase;
    color:          rgba(245,240,232,0.35);
}

/* ── Mirror ball decorativo ── */
.ild-aev-hero__deco {
    position:       absolute;
    right:          5%;
    top:            50%;
    transform:      translateY(-50%);
    z-index:        1;
    opacity:        0.18;
    pointer-events: none;
}

.ild-mirror-ball {
    width:         380px;
    height:        380px;
    border-radius: 50%;
    background:
            radial-gradient(circle at 35% 35%, #fff 2px, transparent 3px),
            radial-gradient(circle at 65% 25%, #fff 1.5px, transparent 2px),
            radial-gradient(circle at 80% 55%, #fff 1px, transparent 2px),
            radial-gradient(circle at 20% 70%, #fff 1.5px, transparent 2px),
            radial-gradient(circle at 50% 80%, #fff 1px, transparent 2px),
            linear-gradient(135deg, #c0c0c0, #888, #c0c0c0, #666, #999, #ccc);
    box-shadow: 0 0 60px rgba(255,255,255,0.15);
    animation:  ild-spin-slow 12s linear infinite;
}

@keyframes ild-spin-slow {
    to { transform: rotate(360deg); }
}

/* ══════════════════════════════════════════════════════════
   FILTRI
══════════════════════════════════════════════════════════ */
.ild-aev-filters {
    background:    var(--ild-deep, #0d0d0d);
    border-top:    1px solid rgba(201,168,76,0.10);
    border-bottom: 1px solid rgba(201,168,76,0.10);
    padding:       0 60px;
    position:      sticky;
    top:           70px;
    z-index:       100;
}

.ild-aev-filters__inner {
    display:     flex;
    align-items: center;
    overflow-x:  auto;
    scrollbar-width: none;
    gap:         0;
}

.ild-aev-filters__inner::-webkit-scrollbar { display: none; }

.ild-aev-filter-btn {
    display:         inline-flex;
    align-items:     center;
    gap:             6px;
    font-family:     var(--ild-font-sans, 'DM Sans', sans-serif);
    font-size:       10px;
    font-weight:     500;
    letter-spacing:  2.5px;
    text-transform:  uppercase;
    color:           rgba(245,240,232,0.40);
    text-decoration: none;
    padding:         18px 20px;
    border-bottom:   2px solid transparent;
    white-space:     nowrap;
    transition:      color 0.25s ease, border-color 0.25s ease;
}

.ild-aev-filter-btn:hover {
    color:        var(--ild-gold, #c9a84c);
    border-color: rgba(201,168,76,0.35);
}

.ild-aev-filter-btn.is-active {
    color:        var(--ild-gold, #c9a84c);
    border-color: var(--ild-gold, #c9a84c);
}

.ild-aev-filter-btn__count {
    font-size:   9px;
    color:       rgba(201,168,76,0.45);
    font-family: var(--ild-font-sans, 'DM Sans', sans-serif);
    letter-spacing: 0;
}

/* ══════════════════════════════════════════════════════════
   SORT BAR
══════════════════════════════════════════════════════════ */
.ild-aev-sortbar {
    padding:       20px 60px;
    border-bottom: 1px solid rgba(201,168,76,0.08);
    display:       flex;
    align-items:   center;
    justify-content: space-between;
}

.ild-aev-sortbar__total {
    font-family:    var(--ild-font-sans, 'DM Sans', sans-serif);
    font-size:      12px;
    color:          rgba(245,240,232,0.35);
    letter-spacing: 0.5px;
}

.ild-aev-sortbar__total strong {
    color: rgba(245,240,232,0.65);
}

/* ══════════════════════════════════════════════════════════
   CONTENT
══════════════════════════════════════════════════════════ */
.ild-aev-content {
    padding: 48px 60px 100px;
}

/* ══════════════════════════════════════════════════════════
   GRIGLIA
══════════════════════════════════════════════════════════ */
.ild-aev-grid {
    display:               grid;
    grid-template-columns: repeat(3, 1fr);
    gap:                   2px;
}

/* ── Card base ── */
.ild-aev-card {
    position:   relative;
    overflow:   hidden;
    cursor:     pointer;
    aspect-ratio: 4 / 3;
    background: var(--ild-card, #111008);
}

/* ── Card hero — prima card: 2 colonne ── */
.ild-aev-card--hero {
    grid-column:  span 2;
    aspect-ratio: 16 / 9;
}

/* ── Thumbnail ── */
.ild-aev-card__thumb-link {
    position: absolute;
    inset:    0;
    display:  block;
    z-index:  1;
}

.ild-aev-card__thumb {
    position: absolute;
    inset:    0;
    overflow: hidden;
}

.ild-aev-card__thumb img {
    width:      100%;
    height:     100%;
    object-fit: cover;
    display:    block;
    transition: transform 0.65s ease;
    filter:     grayscale(20%);
}

.ild-aev-card:hover .ild-aev-card__thumb img {
    transform: scale(1.06);
    filter:    grayscale(0%);
}

.ild-aev-card__placeholder {
    position:        absolute;
    inset:           0;
    background:      linear-gradient(135deg, #1a1209, #0d0d0d);
    display:         flex;
    align-items:     center;
    justify-content: center;
    font-size:       clamp(40px, 6vw, 80px);
}

/* Overlay gradiente */
.ild-aev-card__overlay {
    position:   absolute;
    inset:      0;
    background: linear-gradient(
            to top,
            rgba(0,0,0,0.90) 0%,
            rgba(0,0,0,0.35) 50%,
            transparent      100%
    );
    transition: background 0.4s ease;
}

.ild-aev-card:hover .ild-aev-card__overlay {
    background: linear-gradient(
            to top,
            rgba(0,0,0,0.95) 0%,
            rgba(0,0,0,0.50) 55%,
            transparent      100%
    );
}

/* ── Anno — angolo in alto a destra ── */
.ild-aev-card__year {
    position:       absolute;
    top:            16px;
    right:          16px;
    z-index:        4;
    font-family:    var(--ild-font-display, 'Bebas Neue', sans-serif);
    font-size:      13px;
    letter-spacing: 3px;
    color:          rgba(201,168,76,0.60);
    pointer-events: none;
    transition:     color 0.25s ease;
}

.ild-aev-card:hover .ild-aev-card__year {
    color: var(--ild-gold, #c9a84c);
}

/* ── Badge ── */
.ild-aev-card__badge {
    position:       absolute;
    top:            16px;
    left:           16px;
    z-index:        4;
    background:     var(--ild-magenta, #ff00ff);
    color:          #fff;
    font-family:    var(--ild-font-sans, 'DM Sans', sans-serif);
    font-size:      9px;
    font-weight:    700;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding:        5px 10px;
    line-height:    1;
    pointer-events: none;
}

.ild-aev-card__badge.is-soldout   { background: #333; color: rgba(255,255,255,0.6); }
.ild-aev-card__badge.is-coming    { background: var(--ild-gold, #c9a84c); color: #000; }
.ild-aev-card__badge.is-free      { background: #27ae60; }
.ild-aev-card__badge.is-invite    { background: #1a1a2e; border: 1px solid rgba(201,168,76,0.4); }

/* ── Body — in basso ── */
.ild-aev-card__body {
    position:       absolute;
    bottom:         0;
    left:           0;
    right:          0;
    z-index:        3;
    padding:        20px 22px 24px;
    display:        flex;
    flex-direction: column;
    gap:            6px;
    transform:      translateY(4px);
    transition:     transform 0.35s ease;
}

.ild-aev-card:hover .ild-aev-card__body {
    transform: translateY(0);
}

/* CTA e excerpt nascosti, visibili su hover */
.ild-aev-card__excerpt,
.ild-aev-card__cta {
    max-height: 0;
    overflow:   hidden;
    opacity:    0;
    transition: max-height 0.4s ease, opacity 0.35s ease;
}

.ild-aev-card:hover .ild-aev-card__excerpt,
.ild-aev-card:hover .ild-aev-card__cta {
    max-height: 120px;
    opacity:    1;
}

/* Card hero: excerpt e cta sempre visibili */
.ild-aev-card--hero .ild-aev-card__excerpt,
.ild-aev-card--hero .ild-aev-card__cta {
    max-height: 200px;
    opacity:    1;
}

.ild-aev-card--hero .ild-aev-card__body {
    padding: 28px 32px 32px;
    gap:     10px;
}

/* Categoria */
.ild-aev-card__cat {
    font-family:     var(--ild-font-sans, 'DM Sans', sans-serif);
    font-size:       9px;
    font-weight:     700;
    letter-spacing:  3px;
    text-transform:  uppercase;
    color:           var(--ild-gold, #c9a84c);
    text-decoration: none;
    line-height:     1;
    transition:      opacity 0.2s ease;
}

.ild-aev-card__cat:hover { opacity: 0.75; }

/* Titolo */
.ild-aev-card__title {
    font-family: var(--ild-font-serif, 'Playfair Display', serif);
    font-size:   clamp(16px, 2vw, 22px);
    font-weight: 700;
    line-height: 1.2;
    margin:      0;
    color:       #fff;
}

.ild-aev-card--hero .ild-aev-card__title {
    font-size: clamp(22px, 3vw, 36px);
}

.ild-aev-card__title a {
    color:           inherit;
    text-decoration: none;
    transition:      color 0.25s ease;
}

.ild-aev-card__title a:hover {
    color: var(--ild-gold, #c9a84c);
}

/* Excerpt */
.ild-aev-card__excerpt {
    font-family: var(--ild-font-sans, 'DM Sans', sans-serif);
    font-size:   13px;
    font-weight: 300;
    color:       rgba(245,240,232,0.65);
    line-height: 1.6;
    margin:      0;
}

/* Meta */
.ild-aev-card__meta {
    display:     flex;
    align-items: center;
    gap:         14px;
    flex-wrap:   wrap;
}

.ild-aev-card__date,
.ild-aev-card__location {
    display:        inline-flex;
    align-items:    center;
    gap:            5px;
    font-family:    var(--ild-font-sans, 'DM Sans', sans-serif);
    font-size:      11px;
    color:          rgba(245,240,232,0.50);
    letter-spacing: 0.5px;
}

.ild-aev-card__date svg,
.ild-aev-card__location svg {
    flex-shrink: 0;
    opacity:     0.55;
}

/* CTA */
.ild-aev-card__cta {
    display:         inline-flex;
    align-items:     center;
    gap:             6px;
    font-family:     var(--ild-font-sans, 'DM Sans', sans-serif);
    font-size:       10px;
    font-weight:     700;
    letter-spacing:  2.5px;
    text-transform:  uppercase;
    color:           var(--ild-gold, #c9a84c);
    text-decoration: none;
    margin-top:      4px;
    transition:      gap 0.25s ease, color 0.25s ease;
}

.ild-aev-card__cta:hover {
    color: var(--ild-gold-light, #f0d080);
    gap:   10px;
}

/* ══════════════════════════════════════════════════════════
   PAGINAZIONE
══════════════════════════════════════════════════════════ */
.ild-aev-pagination {
    display:         flex;
    align-items:     center;
    justify-content: center;
    gap:             4px;
    margin-top:      64px;
    padding-top:     48px;
    border-top:      1px solid rgba(201,168,76,0.12);
}

.ild-aev-pagination .page-numbers {
    display:         inline-flex;
    align-items:     center;
    justify-content: center;
    min-width:       40px;
    height:          40px;
    padding:         0 12px;
    font-family:     var(--ild-font-sans, 'DM Sans', sans-serif);
    font-size:       11px;
    font-weight:     500;
    letter-spacing:  1px;
    color:           rgba(245,240,232,0.40);
    text-decoration: none;
    border:          1px solid transparent;
    transition:      all 0.25s ease;
}

.ild-aev-pagination .page-numbers:hover {
    color:        var(--ild-gold, #c9a84c);
    border-color: rgba(201,168,76,0.30);
}

.ild-aev-pagination .page-numbers.current {
    color:        var(--ild-black, #080808);
    background:   var(--ild-gold, #c9a84c);
    border-color: var(--ild-gold, #c9a84c);
    font-weight:  700;
}

.ild-aev-pagination .prev,
.ild-aev-pagination .next {
    font-size:      10px;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding:        0 20px;
}

/* ══════════════════════════════════════════════════════════
   EMPTY STATE
══════════════════════════════════════════════════════════ */
.ild-aev-empty {
    display:         flex;
    flex-direction:  column;
    align-items:     center;
    justify-content: center;
    gap:             16px;
    padding:         80px 20px;
    text-align:      center;
}

.ild-aev-empty__icon { font-size: 64px; line-height: 1; }

.ild-aev-empty h2 {
    font-family: var(--ild-font-serif, 'Playfair Display', serif);
    font-size:   32px;
    color:       var(--ild-white, #f5f0e8);
}

.ild-aev-empty p {
    font-family: var(--ild-font-sans, 'DM Sans', sans-serif);
    font-size:   15px;
    color:       var(--ild-grey, #8a8070);
}

/* ══════════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
    .ild-aev-hero    { padding: 120px 32px 60px; }
    .ild-aev-filters { padding: 0 32px; }
    .ild-aev-sortbar { padding: 16px 32px; }
    .ild-aev-content { padding: 40px 32px 80px; }

    .ild-aev-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .ild-aev-card--hero {
        grid-column: span 2;
    }

    .ild-mirror-ball { width: 260px; height: 260px; }
}

@media (max-width: 640px) {
    .ild-aev-hero    { padding: 100px 20px 48px; min-height: 55vh; }
    .ild-aev-filters { padding: 0 20px; top: 60px; }
    .ild-aev-sortbar { padding: 14px 20px; }
    .ild-aev-content { padding: 28px 20px 64px; }

    .ild-aev-grid {
        grid-template-columns: 1fr;
        gap:                   4px;
    }

    .ild-aev-card,
    .ild-aev-card--hero {
        grid-column:  span 1;
        aspect-ratio: 4 / 3;
    }

    /* Su mobile tutto sempre visibile */
    .ild-aev-card__excerpt,
    .ild-aev-card__cta {
        max-height: 200px;
        opacity:    1;
    }

    .ild-aev-hero__deco { display: none; }

    .ild-aev-hero__stats { gap: 24px; }
    .ild-aev-hero__stat-num { font-size: 40px; }

    .ild-aev-pagination .prev,
    .ild-aev-pagination .next { padding: 0 12px; }
}
