/* ===== Hero Section =====
 * Hero layout (.set-hero), gradient, fallbacks, and .set-title rules live in
 * frontend/includes/_detail_hero_styles.html so they stay in sync with the
 * shared hero used by group/member/album/set. Do not redefine them here.
 */

.set-title {
    word-break: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

/* 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; }
}

/* ===== 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;
    }
}
