/*
 * assets/css/stage_highlights_gallery.css
 * Galeria dos lances principais da etapa (F090) — telas da temporada e dos resultados.
 * v1.0.0 (2026-10-29): criação
 */
.shg-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.25rem; }
.shg-card { background: var(--color-background, #101014); border: 1px solid var(--color-border, rgba(132,132,154,.15)); border-top: 3px solid var(--color-accent, #D4FF00); border-radius: 8px; overflow: hidden; display: flex; flex-direction: column; animation: shgFadeInUp .4s ease both; transition: transform .3s ease, box-shadow .3s ease; }
.shg-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,.35); }
.shg-card:nth-child(2) { animation-delay: .08s; }
.shg-card:nth-child(3) { animation-delay: .16s; }
.shg-media { position: relative; aspect-ratio: 16 / 9; background: var(--color-surface, #191920); }
.shg-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; }
.shg-rank { position: absolute; top: .6rem; left: .6rem; z-index: 2; background: var(--color-accent, #D4FF00); color: #101014; font-weight: 800; border-radius: 4px; padding: .15rem .55rem; font-size: .85rem; }
.shg-body { padding: 1rem; display: flex; flex-direction: column; gap: .35rem; }
.shg-type { font-size: .75rem; text-transform: uppercase; letter-spacing: 1px; color: var(--color-accent, #D4FF00); font-weight: 700; }
.shg-title { font-weight: 700; color: var(--color-text-primary, #F1F1F1); font-size: 1.05rem; margin: 0; }
.shg-meta { font-size: .85rem; color: var(--color-text-secondary, #84849a); margin: 0; }
.shg-desc { font-size: .9rem; color: var(--color-text-primary, #F1F1F1); margin: 0; }
.shg-empty { color: var(--color-text-secondary, #84849a); margin: 0; padding: 1rem 0; }

.shg-modal { position: fixed; inset: 0; z-index: 1990; background: rgba(0,0,0,.75); display: none; align-items: flex-start; justify-content: center; padding: 2rem 1rem; overflow-y: auto; }
.shg-modal.active { display: flex; }
.shg-modal-box { width: 100%; max-width: 1200px; background: var(--color-surface, #191920); border: 1px solid var(--color-border, rgba(132,132,154,.15)); border-top: 4px solid var(--color-accent, #D4FF00); border-radius: 8px; animation: shgFadeInUp .3s ease both; }
.shg-modal-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.25rem; border-bottom: 1px solid var(--color-border, rgba(132,132,154,.15)); }
.shg-modal-title { margin: 0; font-size: 1.1rem; font-weight: 800; color: var(--color-text-primary, #F1F1F1); }
.shg-modal-close { background: transparent; border: 1px solid var(--color-border, rgba(132,132,154,.15)); color: var(--color-text-primary, #F1F1F1); border-radius: 6px; width: 44px; height: 44px; flex-shrink: 0; transition: all .3s ease; }
.shg-modal-close:hover { border-color: var(--color-accent, #D4FF00); color: var(--color-accent, #D4FF00); }
.shg-modal-body { padding: 1.25rem; }
body.shg-modal-open { overflow: hidden; }

.shg-lightbox { position: fixed; inset: 0; z-index: 2000; background: rgba(0,0,0,.9); display: none; align-items: center; justify-content: center; padding: 1rem; cursor: zoom-out; }
.shg-lightbox.active { display: flex; }
.shg-lightbox img { max-width: 100%; max-height: 92vh; border-radius: 6px; }

@keyframes shgFadeInUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (max-width: 480px) { .shg-modal { padding: 0; } .shg-modal-box { border-radius: 0; min-height: 100%; } .shg-modal-body { padding: 1rem; } }
@media (prefers-reduced-motion: reduce) { .shg-card, .shg-modal-box { animation: none; } .shg-card:hover { transform: none; } }
.stage-highlights-open-btn[hidden] { display: none !important; }
#tab-reportagem-content .stage-highlights-card { margin-top: 1.5rem; }
.stage-highlights-card .rival-card-header { margin-bottom: 1rem; }
