/* =============================================================================
   ACHIEVEMENT DETAILS PAGE - "Trophy Hall Museum" Redesign
   Individual trophy showcase with premium collectible aesthetics
   ============================================================================= */

/* -----------------------------------------------------------------------------
   CUSTOM PROPERTIES - Shared with index.css
   ----------------------------------------------------------------------------- */
:root {
    /* Rarity metallic palette */
    --ach-common: #71717a;
    --ach-common-shimmer: linear-gradient(135deg, #a1a1aa 0%, #71717a 50%, #d4d4d8 100%);
    --ach-common-glow: rgba(161, 161, 170, 0.3);

    --ach-uncommon: #2563eb;
    --ach-uncommon-shimmer: linear-gradient(135deg, #60a5fa 0%, #2563eb 50%, #93c5fd 100%);
    --ach-uncommon-glow: rgba(37, 99, 235, 0.4);

    --ach-rare: #7c3aed;
    --ach-rare-shimmer: linear-gradient(135deg, #a78bfa 0%, #7c3aed 50%, #c4b5fd 100%);
    --ach-rare-glow: rgba(124, 58, 237, 0.45);

    --ach-legendary: #d97706;
    --ach-legendary-shimmer: linear-gradient(135deg, #fbbf24 0%, #d97706 50%, #fcd34d 100%);
    --ach-legendary-glow: rgba(217, 119, 6, 0.5);

    /* Museum atmosphere */
    --ach-glass: rgba(255, 255, 255, 0.7);
    --ach-glass-border: rgba(255, 255, 255, 0.3);

    /* Timing */
    --ach-ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ach-ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

[data-bs-theme="dark"],
body.dark-mode {
    --ach-glass: rgba(30, 41, 59, 0.8);
    --ach-glass-border: rgba(255, 255, 255, 0.08);

    --ach-common-glow: rgba(161, 161, 170, 0.25);
    --ach-uncommon-glow: rgba(96, 165, 250, 0.35);
    --ach-rare-glow: rgba(167, 139, 250, 0.4);
    --ach-legendary-glow: rgba(251, 191, 36, 0.45);
}

/* -----------------------------------------------------------------------------
   PAGE CONTAINER
   ----------------------------------------------------------------------------- */
.trophy-detail-hall {
    position: relative;
    min-height: 100vh;
    padding-bottom: 3rem;
}

/* -----------------------------------------------------------------------------
   BREADCRUMB - Refined Navigation
   ----------------------------------------------------------------------------- */
.trophy-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    font-size: 0.875rem;
}

.trophy-breadcrumb a {
    color: var(--theme-text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

.trophy-breadcrumb a:hover {
    color: var(--ach-legendary);
}

.trophy-breadcrumb-separator {
    color: var(--theme-text-muted);
    opacity: 0.5;
}

.trophy-breadcrumb-current {
    color: var(--theme-text-primary);
    font-weight: 600;
}

/* -----------------------------------------------------------------------------
   HERO SECTION - Trophy Spotlight
   ----------------------------------------------------------------------------- */
.trophy-spotlight {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 3rem;
    align-items: center;
    background: var(--ach-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--ach-glass-border);
    border-radius: 24px;
    padding: 3rem;
    margin-bottom: 2rem;
    overflow: hidden;
    animation: spotlight-enter 0.7s var(--ach-ease-out-expo) both;
}

@keyframes spotlight-enter {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Ambient glow background */
.trophy-spotlight::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 60%;
    height: 200%;
    background: radial-gradient(ellipse, var(--spotlight-color, rgba(217, 119, 6, 0.08)) 0%, transparent 70%);
    pointer-events: none;
    animation: ambient-drift 8s ease-in-out infinite alternate;
}

@keyframes ambient-drift {
    0% { transform: translate(0, 0) rotate(0deg); }
    100% { transform: translate(10%, 5%) rotate(5deg); }
}

/* Trophy Icon Pedestal */
.spotlight-pedestal {
    position: relative;
    z-index: 1;
}

.spotlight-icon {
    position: relative;
    width: 200px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: icon-breathe 4s ease-in-out infinite;
}

@keyframes icon-breathe {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-6px) scale(1.02); }
}

.spotlight-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.2));
    transition: transform 0.4s var(--ach-ease-spring), filter 0.4s ease;
    cursor: pointer;
}

.spotlight-icon:hover img {
    transform: scale(1.08);
}

/* Rarity-specific icon glows */
.trophy-spotlight--common .spotlight-icon img {
    filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.2)) drop-shadow(0 0 30px var(--ach-common-glow));
}

.trophy-spotlight--uncommon .spotlight-icon img {
    filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.2)) drop-shadow(0 0 35px var(--ach-uncommon-glow));
}

.trophy-spotlight--rare .spotlight-icon img {
    filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.2)) drop-shadow(0 0 40px var(--ach-rare-glow));
}

.trophy-spotlight--legendary .spotlight-icon img {
    filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.2)) drop-shadow(0 0 50px var(--ach-legendary-glow));
}

/* Unlock Badge */
.spotlight-badge {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--theme-success), #059669);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
    box-shadow:
        0 4px 12px rgba(16, 185, 129, 0.4),
        0 0 0 3px var(--ach-glass);
    animation: badge-pop 0.5s var(--ach-ease-spring) 0.4s both;
}

@keyframes badge-pop {
    0% { transform: scale(0) rotate(-180deg); }
    100% { transform: scale(1) rotate(0deg); }
}

/* Spotlight Content */
.spotlight-content {
    position: relative;
    z-index: 1;
}

.spotlight-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900;
    letter-spacing: -0.03em;
    color: var(--theme-text-primary);
    margin-bottom: 0.75rem;
    line-height: 1.1;
}

.spotlight-desc {
    font-size: 1.125rem;
    color: var(--theme-text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    max-width: 500px;
}

/* Badges Row */
.spotlight-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.rarity-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    border-radius: 100px;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: white;
}

.rarity-pill--common {
    background: var(--ach-common-shimmer);
    box-shadow: 0 2px 12px var(--ach-common-glow);
}

.rarity-pill--uncommon {
    background: var(--ach-uncommon-shimmer);
    box-shadow: 0 2px 12px var(--ach-uncommon-glow);
}

.rarity-pill--rare {
    background: var(--ach-rare-shimmer);
    box-shadow: 0 2px 12px var(--ach-rare-glow);
}

.rarity-pill--legendary {
    background: var(--ach-legendary-shimmer);
    box-shadow: 0 2px 12px var(--ach-legendary-glow);
}

.earned-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    border-radius: 100px;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    background: linear-gradient(135deg, var(--theme-success), #059669);
    color: white;
    box-shadow: 0 2px 12px rgba(16, 185, 129, 0.4);
}

.player-count-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.875rem;
    color: var(--theme-text-muted);
}

/* -----------------------------------------------------------------------------
   STATS GRID - Metrics Display
   ----------------------------------------------------------------------------- */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.metric-card {
    background: var(--ach-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--ach-glass-border);
    border-radius: 16px;
    padding: 1.5rem 1rem;
    text-align: center;
    transition: transform 0.3s var(--ach-ease-out-expo), box-shadow 0.3s ease;
    animation: metric-enter 0.5s var(--ach-ease-out-expo) both;
}

.metric-card:nth-child(1) { animation-delay: 0.1s; }
.metric-card:nth-child(2) { animation-delay: 0.15s; }
.metric-card:nth-child(3) { animation-delay: 0.2s; }
.metric-card:nth-child(4) { animation-delay: 0.25s; }

@keyframes metric-enter {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.metric-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.metric-value {
    display: block;
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    background: var(--ach-legendary-shimmer);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
    margin-bottom: 0.25rem;
}

.metric-label {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--theme-text-muted);
}

/* -----------------------------------------------------------------------------
   YOUR TROPHY SECTION - Personal Achievement
   ----------------------------------------------------------------------------- */
.your-trophy-section {
    position: relative;
    background: var(--ach-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 2px solid var(--theme-success);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
    overflow: hidden;
    animation: section-enter 0.6s var(--ach-ease-out-expo) 0.3s both;
}

@keyframes section-enter {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.your-trophy-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at 0% 0%, rgba(16, 185, 129, 0.1) 0%, transparent 60%);
    pointer-events: none;
}

.your-trophy-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(16, 185, 129, 0.2);
    position: relative;
    z-index: 1;
}

.your-trophy-header i {
    font-size: 1.25rem;
    color: var(--theme-success);
}

.your-trophy-header h2 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--theme-text-primary);
}

.first-to-earn-badge {
    margin-left: auto;
    background: var(--ach-legendary-shimmer);
    color: white;
    padding: 0.35rem 0.875rem;
    border-radius: 100px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    box-shadow: 0 2px 8px var(--ach-legendary-glow);
}

.your-trophy-content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 2rem;
}

.your-trophy-player {
    text-align: center;
}

.your-trophy-player .player-avatar-display,
.your-trophy-player .initials-circle {
    width: 88px;
    height: 88px;
    margin: 0 auto 1rem;
    font-size: 1.75rem;
}

.unlock-timestamp {
    text-align: center;
}

.unlock-timestamp-label {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--theme-text-muted);
    margin-bottom: 0.25rem;
}

.unlock-timestamp-value {
    font-size: 1rem;
    font-weight: 700;
    color: var(--theme-success);
}

.your-trophy-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Event Card */
.event-context-card {
    background: var(--theme-surface-1);
    border: 1px solid var(--ach-glass-border);
    border-radius: 14px;
    padding: 1.25rem;
}

.event-context-label {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--theme-text-muted);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.event-context-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--theme-text-primary);
    margin-bottom: 0.25rem;
}

.event-context-theme {
    font-size: 0.9rem;
    color: var(--ach-legendary);
    font-style: italic;
}

.event-context-image {
    margin: 1rem 0;
    border-radius: 10px;
    overflow: hidden;
    max-width: 300px;
}

.event-context-image img {
    width: 100%;
    height: auto;
    display: block;
}

.event-context-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

/* Flippy Commentary */
.flippy-narrative {
    margin-top: 1rem;
}

/* -----------------------------------------------------------------------------
   NOT EARNED STATE
   ----------------------------------------------------------------------------- */
.not-earned-state {
    background: var(--ach-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 2px dashed var(--theme-border-color);
    border-radius: 20px;
    padding: 3rem 2rem;
    margin-bottom: 2rem;
    text-align: center;
    animation: section-enter 0.6s var(--ach-ease-out-expo) 0.3s both;
}

.not-earned-state i {
    font-size: 3rem;
    color: var(--theme-text-muted);
    opacity: 0.3;
    margin-bottom: 1rem;
}

.not-earned-state h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--theme-text-primary);
    margin-bottom: 0.5rem;
}

.not-earned-state p {
    color: var(--theme-text-muted);
    margin: 0;
}

/* -----------------------------------------------------------------------------
   EMPTY STATE - No Earners Yet
   ----------------------------------------------------------------------------- */
.trophy-empty-state {
    text-align: center;
    padding: 4rem 2rem;
    animation: section-enter 0.6s var(--ach-ease-out-expo) both;
}

.trophy-empty-state i {
    font-size: 4rem;
    color: var(--ach-legendary);
    opacity: 0.25;
    margin-bottom: 1.5rem;
}

.trophy-empty-state h3 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--theme-text-primary);
    margin-bottom: 0.5rem;
}

.trophy-empty-state p {
    color: var(--theme-text-muted);
}

/* -----------------------------------------------------------------------------
   EARNERS SECTION - Timeline of Players
   ----------------------------------------------------------------------------- */
.earners-section {
    margin-top: 3rem;
    animation: section-enter 0.6s var(--ach-ease-out-expo) 0.4s both;
}

.earners-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--theme-border-color);
    position: relative;
}

.earners-header::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 80px;
    height: 2px;
    background: var(--ach-legendary-shimmer);
}

.earners-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--theme-text-primary);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.earners-title i {
    color: var(--ach-legendary);
}

/* Pagination Info */
.earners-pagination-info {
    font-size: 0.875rem;
    color: var(--theme-text-muted);
}

/* View Toggle */
.view-toggle {
    display: flex;
    gap: 0.25rem;
    background: var(--theme-surface-2);
    padding: 0.25rem;
    border-radius: 10px;
}

.view-toggle button {
    padding: 0.5rem 0.875rem;
    border: none;
    background: transparent;
    color: var(--theme-text-secondary);
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.view-toggle button:hover {
    color: var(--theme-text-primary);
}

.view-toggle button.active {
    background: var(--theme-bg-primary);
    color: var(--ach-legendary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* -----------------------------------------------------------------------------
   TIMELINE VIEW
   ----------------------------------------------------------------------------- */
.earners-timeline {
    position: relative;
    padding-left: 2.5rem;
}

.earners-timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--ach-legendary) 0%, var(--ach-rare) 50%, var(--ach-uncommon) 100%);
    border-radius: 1px;
    opacity: 0.3;
}

.timeline-entry {
    position: relative;
    margin-bottom: 1rem;
    background: var(--ach-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--ach-glass-border);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.3s var(--ach-ease-out-expo), box-shadow 0.3s ease, border-color 0.3s ease;
    animation: timeline-entry-enter 0.5s var(--ach-ease-out-expo) both;
    animation-delay: calc(var(--entry-index, 0) * 0.05s);
}

@keyframes timeline-entry-enter {
    from {
        opacity: 0;
        transform: translateX(-16px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.timeline-entry:hover {
    transform: translateX(4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    border-color: var(--ach-legendary);
}

/* Timeline dot */
.timeline-entry::before {
    content: '';
    position: absolute;
    left: -2.5rem;
    top: 1.75rem;
    width: 14px;
    height: 14px;
    background: var(--ach-legendary);
    border: 3px solid var(--theme-bg-primary);
    border-radius: 50%;
    z-index: 1;
    box-shadow: 0 0 0 3px var(--theme-bg-primary);
}

/* Entry Header */
.timeline-entry-header {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--theme-text-muted);
    padding: 0.625rem 1.25rem;
    background: var(--theme-surface-2);
    border-bottom: 1px solid var(--ach-glass-border);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.timeline-entry-header .badge {
    font-size: 0.6rem;
    padding: 0.2rem 0.5rem;
}

/* Entry Body */
.timeline-entry-body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* Player Row */
.timeline-player-row {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.timeline-player-row .player-avatar-display,
.timeline-player-row .initials-circle {
    width: 48px;
    height: 48px;
    font-size: 1rem;
    flex-shrink: 0;
}

.timeline-player-info {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.timeline-player-name {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.timeline-player-name a {
    font-weight: 700;
    font-size: 1rem;
    color: var(--theme-text-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.timeline-player-name a:hover {
    color: var(--ach-legendary);
}

.timeline-player-pdga {
    font-size: 0.75rem;
}

.timeline-player-pdga a {
    color: var(--theme-text-muted);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    transition: color 0.2s ease;
}

.timeline-player-pdga a:hover {
    color: var(--ach-legendary);
}

/* Event Link */
.timeline-event-link {
    font-size: 0.875rem;
    color: var(--theme-text-secondary);
    line-height: 1.5;
}

.timeline-event-link a {
    color: var(--ach-legendary);
    text-decoration: none;
    font-weight: 600;
}

.timeline-event-link a:hover {
    text-decoration: underline;
}

/* Event Image */
.timeline-event-image {
    margin-top: 0.5rem;
}

.timeline-event-image a {
    display: block;
    max-width: 200px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-event-image a:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.timeline-event-image img {
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    display: block;
}

/* Flippy Take */
.timeline-flippy {
    margin-top: 0.5rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--ach-glass-border);
}

/* -----------------------------------------------------------------------------
   FIRST EARNER - Special Styling
   ----------------------------------------------------------------------------- */
.timeline-entry--first {
    background: var(--ach-legendary-shimmer) !important;
    border-color: var(--ach-legendary) !important;
}

.timeline-entry--first::before {
    background: white !important;
    box-shadow: 0 0 0 3px var(--theme-bg-primary), 0 0 12px var(--ach-legendary-glow) !important;
}

.timeline-entry--first .timeline-entry-header {
    background: rgba(0, 0, 0, 0.15);
    border-bottom-color: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
}

.timeline-entry--first .timeline-entry-body {
    color: white;
}

.timeline-entry--first .timeline-player-name a,
.timeline-entry--first .timeline-event-link {
    color: white !important;
}

.timeline-entry--first .timeline-event-link a {
    color: rgba(255, 255, 255, 0.95) !important;
    text-decoration: underline;
}

.timeline-entry--first .timeline-player-pdga a {
    color: rgba(255, 255, 255, 0.75);
}

.timeline-entry--first .timeline-player-pdga a:hover {
    color: white;
}

.timeline-entry--first .initials-circle {
    background: rgba(255, 255, 255, 0.25) !important;
    color: white !important;
}

/* -----------------------------------------------------------------------------
   RECENT EARNER - Highlight
   ----------------------------------------------------------------------------- */
.timeline-entry--recent:not(.timeline-entry--first) {
    border-color: var(--theme-success);
    border-width: 2px;
}

.timeline-entry--recent:not(.timeline-entry--first)::before {
    background: var(--theme-success);
    box-shadow: 0 0 0 3px var(--theme-bg-primary), 0 0 8px rgba(16, 185, 129, 0.4);
}

/* -----------------------------------------------------------------------------
   GRID VIEW
   ----------------------------------------------------------------------------- */
.earners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.25rem;
}

.earner-card {
    background: var(--ach-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--ach-glass-border);
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
    transition: transform 0.3s var(--ach-ease-out-expo), box-shadow 0.3s ease;
}

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

.earner-card .player-avatar-display,
.earner-card .initials-circle {
    width: 72px;
    height: 72px;
    margin: 0 auto 1rem;
    font-size: 1.25rem;
}

.earner-card h4 {
    margin-bottom: 0.5rem;
}

.earner-card h4 a {
    color: var(--theme-text-primary);
    text-decoration: none;
    font-weight: 700;
}

.earner-card h4 a:hover {
    color: var(--ach-legendary);
}

/* -----------------------------------------------------------------------------
   PAGINATION
   ----------------------------------------------------------------------------- */
.earners-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.pagination {
    gap: 0.25rem;
    margin: 0;
}

.page-link {
    background: var(--ach-glass);
    border: 1px solid var(--ach-glass-border);
    color: var(--theme-text-secondary);
    border-radius: 8px;
    padding: 0.5rem 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.page-link:hover {
    background: var(--theme-surface-2);
    border-color: var(--ach-legendary);
    color: var(--ach-legendary);
}

.page-item.disabled .page-link {
    background: var(--theme-surface-2);
    color: var(--theme-text-muted);
    opacity: 0.6;
}

/* -----------------------------------------------------------------------------
   RESPONSIVE
   ----------------------------------------------------------------------------- */
@media (max-width: 991.98px) {
    .metrics-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .trophy-spotlight {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .spotlight-icon {
        width: 160px;
        height: 160px;
        margin: 0 auto;
    }

    .spotlight-badges {
        justify-content: center;
    }

    .spotlight-desc {
        max-width: none;
    }
}

@media (max-width: 767.98px) {
    .trophy-spotlight {
        padding: 2rem 1.5rem;
    }

    .spotlight-icon {
        width: 140px;
        height: 140px;
    }

    .metrics-grid {
        gap: 0.75rem;
    }

    .metric-card {
        padding: 1rem;
    }

    .metric-value {
        font-size: 1.5rem;
    }

    .your-trophy-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .your-trophy-player .player-avatar-display,
    .your-trophy-player .initials-circle {
        width: 72px;
        height: 72px;
        font-size: 1.5rem;
    }

    .event-context-actions {
        flex-direction: column;
    }

    .event-context-actions .btn {
        width: 100%;
    }

    .earners-timeline {
        padding-left: 2rem;
    }

    .earners-timeline::before {
        left: 6px;
    }

    .timeline-entry::before {
        left: -2rem;
        width: 12px;
        height: 12px;
    }

    .timeline-player-row .player-avatar-display,
    .timeline-player-row .initials-circle {
        width: 40px;
        height: 40px;
        font-size: 0.875rem;
    }

    .timeline-player-name a {
        font-size: 0.9rem;
    }

    .earners-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .earners-pagination {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
}

@media (max-width: 575.98px) {
    .spotlight-title {
        font-size: 1.75rem;
    }

    .spotlight-icon {
        width: 120px;
        height: 120px;
    }

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

/* -----------------------------------------------------------------------------
   DARK MODE POLISH
   ----------------------------------------------------------------------------- */
[data-bs-theme="dark"] .trophy-spotlight,
body.dark-mode .trophy-spotlight {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

[data-bs-theme="dark"] .metric-card,
body.dark-mode .metric-card {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

[data-bs-theme="dark"] .timeline-entry,
body.dark-mode .timeline-entry {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

[data-bs-theme="dark"] .event-context-card,
body.dark-mode .event-context-card {
    background: var(--theme-surface-2);
}

[data-bs-theme="dark"] .timeline-entry--first:hover,
body.dark-mode .timeline-entry--first:hover {
    box-shadow: 0 12px 32px var(--ach-legendary-glow);
}

/* -----------------------------------------------------------------------------
   REDUCED MOTION
   ----------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    .trophy-spotlight,
    .spotlight-icon,
    .spotlight-icon img,
    .spotlight-badge,
    .metric-card,
    .your-trophy-section,
    .not-earned-state,
    .trophy-empty-state,
    .earners-section,
    .timeline-entry,
    .earner-card,
    .trophy-spotlight::before {
        animation: none !important;
        transition: none !important;
    }
}
