/* ===== Hero Section ===== */
.set-hero {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

/* Hero gradient overlay for blurred images (pastel tones matching album) */
.hero-gradient {
    background: linear-gradient(
        135deg,
        rgba(148, 204, 214, 0.7) 0%,
        rgba(160, 140, 180, 0.55) 40%,
        rgba(219, 160, 190, 0.45) 100%
    );
}

/* Default fallback (indigo/cyan gradient) */
.hero-fallback {
    background: var(--color-dark);
    overflow: hidden;
}

.hero-fallback::before {
    content: '';
    position: absolute;
    inset: -20%;
    background:
        radial-gradient(ellipse at 30% 20%, rgba(79, 70, 229, 0.25), transparent 50%),
        radial-gradient(ellipse at 70% 80%, rgba(148, 204, 214, 0.25), transparent 50%);
    animation: hero-shift 15s ease-in-out infinite alternate;
    will-change: transform;
}

/* Event fallback (amber/yellow gradient) */
.hero-fallback--event {
    background: var(--color-dark);
    overflow: hidden;
}

.hero-fallback--event::before {
    content: '';
    position: absolute;
    inset: -20%;
    background:
        radial-gradient(ellipse at 30% 20%, rgba(251, 191, 36, 0.3), transparent 50%),
        radial-gradient(ellipse at 70% 80%, rgba(245, 158, 11, 0.25), transparent 50%);
    animation: hero-shift 15s ease-in-out infinite alternate;
    will-change: transform;
}

@keyframes hero-shift {
    0% { transform: translate(0, 0); }
    100% { transform: translate(5%, 5%); }
}

.set-title {
    word-break: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

/* Navigation Pills (Hero variant) */
.nav-pill-hero {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.75rem 1rem;
    min-height: 44px;
    border-radius: 9999px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: rgba(255,255,255,0.7);
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.15);
    transition: all 0.2s ease;
    text-decoration: none;
}

@media (hover: hover) {
    .nav-pill-hero:hover {
        background: rgba(255,255,255,0.2);
        color: white;
    }
}

.nav-pill-hero--current {
    background: rgba(255,255,255,0.2);
    color: white;
    border-color: rgba(255,255,255,0.3);
}

/* Hero badges */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem 0.5rem 0.5rem;
    min-height: 40px;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    color: rgba(255,255,255,0.9);
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.15);
}

.hero-badge__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    flex-shrink: 0;
    background: rgba(0, 0, 0, 0.3);
    color: rgba(255, 255, 255, 0.95);
    box-shadow:
        inset 0 1px 2px rgba(255, 255, 255, 0.1),
        0 0 8px rgba(255, 255, 255, 0.15);
}

.hero-badge__icon--pink {
    background: rgba(219, 160, 190, 0.4);
}

.hero-badge__icon--cyan {
    background: rgba(148, 204, 214, 0.4);
}

.hero-badge__icon--lime {
    background: rgba(166, 218, 149, 0.4);
}

/* Stats Cards (Glassmorphism) */
.stat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    border-radius: 1rem;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,0.2);
    text-align: center;
}

.stat-number {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: white;
    line-height: 1;
}

.stat-label {
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(255,255,255,0.65);
    margin-top: 0.25rem;
    text-align: center;
}

@media (min-width: 640px) {
    .stat-number { font-size: 2rem; }
}

/* ===== Content Action Bar ===== */
.content-action-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.25rem;
    margin-bottom: 2.5rem;
    border-radius: 1.25rem;
    background: rgba(255,255,255,0.9);
    border: 1px solid rgba(79, 70, 229, 0.2);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
    flex-wrap: wrap;
}

.content-action-bar__copy {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.content-action-bar__label {
    font-family: 'Syne', sans-serif;
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--color-text-muted);
}

.content-action-bar__text {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.95rem;
    color: var(--color-text);
}

.content-action-bar__cta {
    flex-shrink: 0;
}

@media (max-width: 640px) {
    .content-action-bar {
        text-align: center;
        justify-content: center;
        padding: 1.25rem;
    }
    .content-action-bar__copy { align-items: center; }
    .content-action-bar__cta {
        width: 100%;
        display: flex;
        justify-content: center;
    }
}

/* ===== Set Details Grid ===== */
.set-details-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 1.5rem;
    border-radius: 1rem;
    background: rgba(255,255,255,0.9);
    border: 1px solid var(--color-border, rgba(228, 228, 231, 1));
    box-shadow: 0 4px 12px rgba(0,0,0,0.04);
}

@media (min-width: 640px) {
    .set-details-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.set-details-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.set-details-label {
    font-family: 'Syne', sans-serif;
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--color-text-muted);
}

.set-details-value {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.95rem;
    color: var(--color-text);
}

.set-details-value--bold {
    font-weight: 600;
}

.set-details-link {
    color: var(--color-text);
    text-decoration: none;
    transition: color 0.2s ease;
}

@media (hover: hover) {
    .set-details-link:hover {
        color: var(--color-pink);
    }
}

/* ===== Section Headers ===== */
.section-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.section-icon {
    width: 20px;
    height: 20px;
}

.section-title {
    font-family: 'Syne', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-text);
}

.section-badge {
    font-size: 0.6875rem;
    font-weight: 600;
    padding: 0.25rem 0.625rem;
    border-radius: 9999px;
    background: rgba(219, 160, 190, 0.15);
    color: #a8557d;
}

/* ===== Photocard Grid ===== */
.pc-grid-card {
    border: 3px solid transparent;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (hover: hover) {
    .pc-grid-item:hover .pc-grid-card {
        border-color: var(--color-pink);
        box-shadow: var(--glow-pink), 0 16px 32px rgba(219, 160, 190, 0.25);
        transform: translateY(-6px);
    }
}

@media (pointer: coarse) {
    .pc-grid-item:active .pc-grid-card { transform: scale(0.98); }
}

/* ===== Focus States ===== */
.nav-pill-hero:focus-visible,
.pc-grid-item:focus-visible .pc-grid-card {
    outline: 2px solid white;
    outline-offset: 2px;
}

#report-trigger:focus-visible {
    outline: 2px solid var(--color-cyan);
    outline-offset: 2px;
}

/* ===== Reduced Motion ===== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .hero-fallback::before { animation: none; }

    .nav-pill-hero,
    .hero-badge,
    .stat-card,
    .set-origin {
        backdrop-filter: none;
        background: rgba(0, 0, 0, 0.5);
    }
    .nav-pill-hero--current {
        background: rgba(0, 0, 0, 0.6);
    }
}

/* ===== Disable Tailwind group-hover on touch devices ===== */
@media (hover: none) {
    .group:hover .group-hover\:scale-105 {
        transform: scale(1) !important;
    }
}
