/* ==========================================================================
   TORBOB69 CHEATING EVIDENCE DOSSIER
   Forensic Cyber Dark Theme (Direct Evidence Focus)
   ========================================================================== */

:root {
  --bg-base: #0a0c13;
  --bg-surface: #111522;
  --bg-surface-elevated: #171c2c;
  --bg-surface-hover: #1c2338;
  --border-subtle: rgba(255, 255, 255, 0.1);
  --border-card: rgba(255, 255, 255, 0.12);
  --cyan-accent: #00e5ff;
  --cyan-dim: rgba(0, 229, 255, 0.14);
  --red-alert: #ff4d5e;
  --red-dim: rgba(255, 77, 94, 0.14);
  --gold-accent: #ffd27d;
  --gold-dim: rgba(255, 210, 125, 0.14);
  --text-primary: #f3f6fc;
  --text-secondary: #9aa3b5;
  --text-muted: #848ea2;
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-mono: 'JetBrains Mono', 'Consolas', monospace;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(0, 229, 255, 0.05) 0%, transparent 50%),
    linear-gradient(to bottom, #080a0f 0%, #0d1017 100%);
}

/* TOP NAVIGATION */
.top-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(10, 12, 19, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 12px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red-alert);
}

.brand-text {
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 0.95rem;
  color: #fff;
}

.nav-links {
  display: flex;
  gap: 12px;
}

.nav-pill {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  transition: all 0.15s ease;
}

.nav-pill:hover {
  color: var(--cyan-accent);
  background: var(--cyan-dim);
  border-color: rgba(0, 229, 255, 0.25);
}

/* CONTAINER */
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 32px 20px 48px;
}

/* HERO SECTION / PLAYER PROFILE */
.evidence-hero {
  margin-bottom: 36px;
}

.player-profile-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px;
  align-items: center;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.avatar-wrap {
  width: 96px;
  height: 96px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #171b26;
  border: 2px solid var(--border-card);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6);
}

.player-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: pixelated;
}

.player-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.player-header-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.main-title {
  font-size: 1.5rem;
  font-weight: 900;
  color: #fff;
}

.player-identity {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.player-name {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--gold-accent);
}

.player-uuid {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.offense-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.tag {
  font-size: 0.78rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
}

.tag-red {
  background: var(--red-dim);
  color: #ff8594;
  border-color: rgba(255, 77, 94, 0.3);
}

.tag-gold {
  background: var(--gold-dim);
  color: #ffd27d;
  border-color: rgba(255, 210, 125, 0.3);
}

/* GENERIC EVIDENCE SECTION */
.evidence-section {
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 36px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 14px;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}

.section-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-num {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--cyan-accent);
  background: var(--cyan-dim);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(0, 229, 255, 0.3);
}

.section-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
}

.section-meta {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* SECTION 1: VIDEO EVIDENCE */
.video-container-bezel {
  background: #000;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 6px 30px rgba(0, 0, 0, 0.7);
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
}

.video-container-bezel iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* SECTION 2: SERVER LOGS & SCREENSHOTS GRID */
.screenshots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
}

.screenshot-card {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease, box-shadow 0.2s ease;
}

.screenshot-card:hover {
  transform: translateY(-2px);
  border-color: var(--cyan-accent);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.screenshot-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.card-badge {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 800;
  color: var(--gold-accent);
  background: var(--gold-dim);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 210, 125, 0.25);
}

.zoom-hint {
  font-size: 0.76rem;
  color: var(--cyan-accent);
  font-weight: 600;
}

.screenshot-img-wrap {
  width: 100%;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #06080d;
  margin-bottom: 12px;
}

.screenshot-img-wrap img {
  width: 100%;
  height: auto;
  display: block;
}

.screenshot-caption {
  font-size: 0.85rem;
  line-height: 1.5;
  color: #cbd3e2;
}

.screenshot-caption code {
  display: inline-block;
  background: rgba(0, 0, 0, 0.5);
  color: #ff8594;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  margin-bottom: 4px;
}

.screenshot-caption strong {
  color: #fff;
}

/* SECTION 3: PHOTO WIDGETS */
.widgets-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.photo-widget {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px;
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}

.photo-widget:hover {
  transform: translateY(-2px);
  border-color: var(--cyan-accent);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
}

.widget-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.widget-tag {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 800;
  color: var(--cyan-accent);
  background: var(--cyan-dim);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(0, 229, 255, 0.25);
}

.widget-zoom-action {
  font-size: 0.76rem;
  color: var(--text-muted);
  font-weight: 600;
  transition: color 0.15s ease;
}

.photo-widget:hover .widget-zoom-action {
  color: var(--cyan-accent);
}

.widget-frame {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #06080d;
}

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

/* FOOTER */
.evidence-footer {
  text-align: center;
  padding: 32px 10px 20px 10px;
  border-top: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.88rem;
}

.footer-credits {
  margin-top: 4px;
}

.footer-source {
  margin-top: 6px;
  font-size: 0.8rem;
  color: #8892a4;
}

.evidence-footer a {
  color: var(--cyan-accent);
  text-decoration: none;
}

.evidence-footer a:hover {
  text-decoration: underline;
}

/* FULLSCREEN LIGHTBOX MODAL WITH ARROWS */
.lightbox-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.lightbox-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(4, 6, 10, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.lightbox-container {
  position: relative;
  max-width: 92vw;
  max-height: 90vh;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: scale(0.95);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.lightbox-modal.active .lightbox-container {
  transform: scale(1);
}

.lightbox-img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.9);
}

.lightbox-title {
  margin-top: 12px;
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  background: rgba(15, 18, 28, 0.9);
  padding: 6px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  text-align: center;
  max-width: 90vw;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(15, 18, 28, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
  z-index: 10;
}

.lightbox-prev {
  left: -56px;
}

.lightbox-next {
  right: -56px;
}

.lightbox-nav:hover {
  background: var(--cyan-accent);
  color: #080a0f;
  border-color: var(--cyan-accent);
}

.lightbox-close {
  position: absolute;
  top: -46px;
  right: 0;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.6rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}

.lightbox-close:hover {
  background: rgba(255, 77, 94, 0.8);
  border-color: #ff4d5e;
}

/* IN-PAGE TOAST NOTIFICATION */
.toast-popup {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--cyan-accent);
  color: var(--cyan-accent);
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.88rem;
  font-weight: 700;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.7);
  z-index: 10000;
  transform: translateY(80px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
}

.toast-popup.visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

/* INTENTIONAL ACCESSIBILITY: PREFERS REDUCED MOTION */
@media (prefers-reduced-motion: reduce) {
  .lightbox-container,
  .lightbox-modal,
  .toast-popup,
  .screenshot-card,
  .photo-widget {
    transition: opacity 0.15s ease-out !important;
    transform: none !important;
  }
}

/* RESPONSIVE LAYOUT */
@media (max-width: 900px) {
  .widgets-grid {
    grid-template-columns: 1fr;
  }
  .lightbox-prev {
    left: 10px;
  }
  .lightbox-next {
    right: 10px;
  }
}

@media (max-width: 768px) {
  .player-profile-card {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .avatar-wrap {
    margin: 0 auto;
  }
  .player-identity {
    justify-content: center;
  }
  .offense-tags {
    justify-content: center;
  }
  .top-nav {
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
  }
  .nav-links {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }
  .screenshots-grid {
    grid-template-columns: 1fr;
  }
}
