/*
 * Never2Late — Audition Votes leaderboard styles.
 * Never2Late-specific only; reuses the CSS custom properties already
 * defined globally by assets/css/ce_styles.css (--gold-primary, --bg-dark,
 * --text-secondary, --border-light, --shadow-md, --transition, etc.)
 * rather than redefining them.
 */

/* ── Animated banner (Never2Late/index.php, below the countdown) ───────── */

.audition-votes-banner {
    display: block;
    position: relative;
    width: 100%;
    margin: 24px 0;
    padding: 18px 24px;
    border-radius: 14px;
    border: 1px solid var(--border-light, rgba(255, 215, 0, 0.2));
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.75), rgba(40, 32, 6, 0.85), rgba(0, 0, 0, 0.75));
    text-decoration: none;
    overflow: hidden;
    box-shadow: var(--shadow-md, 0 4px 16px rgba(0, 0, 0, 0.4));
    transition: var(--transition, all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1));
}

.audition-votes-banner::before {
    content: "";
    position: absolute;
    top: 0;
    left: -60%;
    width: 40%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 215, 0, 0.28), transparent);
    animation: av-banner-shimmer 3.2s ease-in-out infinite;
    pointer-events: none;
}

@keyframes av-banner-shimmer {
    0%   { left: -60%; }
    60%  { left: 130%; }
    100% { left: 130%; }
}

.audition-votes-banner-inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    min-height: 44px;
    text-align: center;
}

.av-banner-icon {
    display: inline-flex;
    width: 28px;
    height: 28px;
    flex: 0 0 auto;
}

.av-banner-icon svg {
    width: 100%;
    height: 100%;
}

.av-banner-text {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: clamp(0.95rem, 2.4vw, 1.25rem);
    letter-spacing: 0.02em;
    color: var(--gold-primary, #FFD700);
    text-transform: uppercase;
}

.audition-votes-banner:hover,
.audition-votes-banner:focus-visible {
    border-color: var(--gold-primary, #FFD700);
    box-shadow: var(--shadow-lg, 0 8px 24px rgba(0, 0, 0, 0.5));
    transform: translateY(-2px);
}

.audition-votes-banner:focus-visible {
    outline: 3px solid var(--gold-primary, #FFD700);
    outline-offset: 3px;
}

.audition-votes-banner:active {
    transform: translateY(0);
    box-shadow: var(--shadow-sm, 0 2px 8px rgba(0, 0, 0, 0.3));
}

@media (prefers-reduced-motion: reduce) {
    .audition-votes-banner,
    .audition-votes-banner *,
    .audition-votes-banner::before {
        animation: none !important;
        transition: none !important;
    }
}

/* ── Category nav (audition-votes.php) ──────────────────────────────────── */

.av-category-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin: 20px 0 30px;
}

.av-category-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    padding: 10px 20px;
    border-radius: 999px;
    border: 1px solid var(--border-light, rgba(255, 215, 0, 0.2));
    background: var(--bg-dark, rgba(0, 0, 0, 0.5));
    color: var(--text-secondary, rgba(255, 255, 255, 0.8));
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    transition: var(--transition, all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1));
}

.av-category-pill:hover,
.av-category-pill:focus-visible {
    border-color: var(--gold-primary, #FFD700);
    color: var(--gold-primary, #FFD700);
}

.av-category-pill:focus-visible {
    outline: 3px solid var(--gold-primary, #FFD700);
    outline-offset: 2px;
}

.av-category-pill[aria-current="page"] {
    background: var(--gold-primary, #FFD700);
    color: #111;
    border-color: var(--gold-primary, #FFD700);
}

/* ── Chart grid ──────────────────────────────────────────────────────────── */

.av-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 0 0 40px;
}

@media (max-width: 768px) {
    .av-grid {
        grid-template-columns: 1fr;
    }
}

.av-card {
    display: flex;
    flex-direction: column;
    border-radius: 14px;
    border: 1px solid var(--border-light, rgba(255, 215, 0, 0.2));
    background: var(--bg-dark, rgba(0, 0, 0, 0.5));
    box-shadow: var(--shadow-sm, 0 2px 8px rgba(0, 0, 0, 0.3));
    overflow: hidden;
    transition: var(--transition, all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1));
}

.av-card:hover {
    box-shadow: var(--shadow-md, 0 4px 16px rgba(0, 0, 0, 0.4));
    transform: translateY(-3px);
}

.av-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 12px 16px;
}

.av-rank {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    min-height: 36px;
    padding: 0 10px;
    border-radius: 999px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 1rem;
    color: #111;
    background: #C0C0C0;
}

.av-rank-1 { background: linear-gradient(135deg, #FFE102, #C9960C); }
.av-rank-2 { background: linear-gradient(135deg, #E8E8E8, #A6A6A6); }
.av-rank-3 { background: linear-gradient(135deg, #E5B27A, #A9662F); color: #fff; }

.av-votes {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    color: #FF8A00;
    text-transform: uppercase;
    white-space: nowrap;
}

.av-featured-pill {
    display: inline-flex;
    align-items: center;
    min-width: 36px;
    min-height: 36px;
    padding: 0 12px;
    border-radius: 999px;
    background: var(--gold-primary, #FFD700);
    color: #111;
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 0.8rem;
    letter-spacing: 0.04em;
}

.av-card-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    /* background: #0a0a0a; */
    overflow: hidden;
}

.av-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.av-card-body {
    padding: 14px 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.av-card-name {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--text-primary, #FFFFFF);
    overflow-wrap: anywhere;
}

.av-card-location {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    color: var(--text-secondary, rgba(255, 255, 255, 0.8));
    overflow-wrap: anywhere;
}

.av-card-cta {
    margin-top: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 16px;
    border-radius: 999px;
    background: var(--gold-primary, #FFD700);
    color: #111 !important;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none !important;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    text-align: center;
    transition: var(--transition, all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1));
}

.av-card-cta:hover,
.av-card-cta:focus-visible {
    background: var(--gold-secondary, #FFC107);
}

.av-card-cta:focus-visible {
    outline: 3px solid var(--gold-primary, #FFD700);
    outline-offset: 2px;
}

/* ── Empty states ────────────────────────────────────────────────────────── */

.av-empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary, rgba(255, 255, 255, 0.8));
    font-family: 'Montserrat', sans-serif;
}

.av-empty-state h2 {
    color: var(--gold-primary, #FFD700);
    font-weight: 700;
    margin-bottom: 10px;
}

.av-empty-state a {
    color: var(--gold-primary, #FFD700);
    font-weight: 700;
}
