/* ============================================================
   Dark Glass Editorial — Design System
   Site: amata-alena-pak.com
   Theme: Dark Glass Editorial — modern dark, glassmorphism,
          large rounded corners, animations, immersive photos
   ============================================================ */

/* --- Google Fonts (preconnect + load) --- */
/* Space Grotesk: 300,400,500,600,700 */
/* Inter: 300,400,500,600 */
/* JetBrains Mono: 400,500 */

/* --- Design Tokens --- */
:root {
  /* Background */
  --bg-deep: #0D1117;
  --bg-elevated: #161B22;
  --bg-page: linear-gradient(180deg, #0D1117 0%, #161B22 50%, #0D1117 100%);

  /* Glass surfaces */
  --surface-glass: rgba(255, 255, 255, 0.03);
  --border-glass: rgba(255, 255, 255, 0.06);
  --border-glass-hover: rgba(124, 58, 237, 0.3);

  /* Text */
  --text-primary: #E6E8EC;
  --text-muted: #8B949E;

  /* Accent */
  --accent: #7C3AED;
  --accent-glow: rgba(124, 58, 237, 0.15);
  --accent-hover: #6D28D9;
  --accent-shadow: rgba(124, 58, 237, 0.25);

  /* Secondary */
  --secondary: #F59E0B;
  --secondary-glow: rgba(245, 158, 11, 0.10);

  /* Danger (sparingly — only critical warnings) */
  --danger: #DC2626;

  /* Border radius */
  --radius-card: 20px;
  --radius-button: 12px;
  --radius-image: 16px;
  --radius-input: 12px;

  /* Typography */
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Layout */
  --max-width: 860px;
  --section-gap: 3rem;

  /* Animation */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --duration-ui: 200ms;
  --duration-card: 300ms;
  --duration-reveal: 400ms;
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

/* --- Skip link --- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  background: var(--accent);
  color: white;
  padding: 8px 16px;
  border-radius: var(--radius-button);
  z-index: 1000;
  font-family: var(--font-body);
  font-size: 0.875rem;
  text-decoration: none;
  transition: top 200ms ease-out;
}
.skip-link:focus {
  top: 16px;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.7;
  color: var(--text-primary);
  background: var(--bg-deep);
  background-image: var(--bg-page);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.25;
  color: var(--text-primary);
}

h1 {
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  letter-spacing: -0.01em;
  margin-bottom: 1rem;
}

h3 {
  font-size: clamp(1.15rem, 2.5vw, 1.5rem);
  margin-bottom: 0.75rem;
}

p {
  margin-bottom: 1rem;
  color: var(--text-muted);
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--duration-ui) var(--ease-out);
}

a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

strong {
  font-weight: 600;
  color: var(--text-primary);
}

/* --- Accent highlight --- */
.accent-text {
  color: var(--accent);
  font-weight: 700;
}

.secondary-text {
  color: var(--secondary);
}

/* --- Layout --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* --- Top Dossier Bar --- */
.dossier-bar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 0.5rem 0;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.dossier-bar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
}

.dossier-bar__case-id {
  color: var(--accent);
  font-weight: 500;
}

.dossier-bar__meta {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.dossier-bar__meta span {
  white-space: nowrap;
}

.dossier-bar__lang {
  display: flex;
  gap: 0.75rem;
}

.dossier-bar__lang a {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-button);
  border: 1px solid var(--border-glass);
  transition: all var(--duration-ui) var(--ease-out);
}

.dossier-bar__lang a:hover {
  border-color: var(--accent);
  background: var(--accent-glow);
  text-decoration: none;
}

.dossier-bar__lang a.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

/* --- Header / Hero Section --- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 3rem 0 2rem;
}

/* Accent glow blobs behind hero */
.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -15%;
  width: 60%;
  height: 80%;
  background: radial-gradient(ellipse at center, rgba(124, 58, 237, 0.08) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -10%;
  left: -10%;
  width: 50%;
  height: 60%;
  background: radial-gradient(ellipse at center, rgba(245, 158, 11, 0.06) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero__image-wrapper {
  position: relative;
  z-index: 1;
  width: 100%;
  max-height: 500px;
  overflow: hidden;
  border-radius: var(--radius-image);
  border: 1px solid var(--border-glass);
  margin-bottom: 2rem;
}

.hero__image {
  display: block;
  width: 100%;
  height: auto;
  max-height: 500px;
  object-fit: cover;
  border-radius: var(--radius-image);
}

.hero__overlay {
  position: relative;
  z-index: 2;
  margin-top: -4rem;
  padding: 2rem;
  background: rgba(22, 27, 34, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-card);
}

.hero__title {
  margin-bottom: 1rem;
}

.hero__title .accent-text {
  display: inline;
}

.hero__lead {
  font-size: clamp(1rem, 2vw, 1.15rem);
  line-height: 1.75;
  color: var(--text-muted);
  max-width: 720px;
}

.hero__lead strong {
  color: var(--text-primary);
}

/* --- Glass Card --- */
.glass-card {
  background: var(--surface-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-card);
  padding: 2rem;
  transition: border-color var(--duration-card) var(--ease-out),
              transform var(--duration-card) var(--ease-out),
              box-shadow var(--duration-card) var(--ease-out);
}

.glass-card:hover {
  border-color: var(--border-glass-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(124, 58, 237, 0.08);
}

.glass-card:active {
  transform: scale(0.98);
  transition: transform 100ms var(--ease-out);
}

.glass-card--glow {
  box-shadow: 0 4px 24px var(--accent-glow);
}

.glass-card--amber {
  border-color: rgba(245, 158, 11, 0.2);
}

.glass-card--amber:hover {
  border-color: rgba(245, 158, 11, 0.4);
  box-shadow: 0 8px 32px var(--secondary-glow);
}

/* --- Section Spacing --- */
.section {
  padding: var(--section-gap) 0;
}

.section--first {
  padding-top: 0;
}

/* --- Scroll Reveal --- */
.section-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--duration-reveal) var(--ease-out),
              transform var(--duration-reveal) var(--ease-out);
}

.section-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Section Header --- */
.section__header {
  margin-bottom: 2rem;
}

.section__label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}

.section__number {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--secondary);
  font-weight: 500;
}

/* --- Perpetrators Table --- */
.table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius-card);
  border: 1px solid var(--border-glass);
}

.perpetrators-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.perpetrators-table thead {
  background: rgba(124, 58, 237, 0.08);
}

.perpetrators-table th {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  padding: 1rem 1.25rem;
  text-align: left;
  border-bottom: 1px solid var(--border-glass);
}

.perpetrators-table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-glass);
  color: var(--text-primary);
}

.perpetrators-table tbody tr:last-child td {
  border-bottom: none;
}

.perpetrators-table tbody tr {
  transition: background var(--duration-ui) var(--ease-out);
}

.perpetrators-table tbody tr:hover {
  background: var(--surface-glass);
}

.perpetrators-table .status-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  background: rgba(220, 38, 38, 0.12);
  color: var(--danger);
  border: 1px solid rgba(220, 38, 38, 0.2);
}

/* --- The Scheme — Timeline Cards --- */
.scheme-step {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 2rem;
  border-left: 1px solid var(--border-glass);
}

.scheme-step:last-child {
  margin-bottom: 0;
}

.scheme-step::before {
  content: '';
  position: absolute;
  left: -5px;
  top: 0.4rem;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent-glow);
}

.scheme-step__title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

/* --- FAQ Accordion --- */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-item {
  border-radius: var(--radius-card);
  border: 1px solid var(--border-glass);
  background: var(--surface-glass);
  overflow: hidden;
  transition: border-color var(--duration-card) var(--ease-out);
}

.faq-item:hover {
  border-color: var(--border-glass-hover);
}

.faq-item__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: none;
  border: none;
  color: var(--text-primary);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: color var(--duration-ui) var(--ease-out);
  list-style: none; /* Remove default <summary> marker */
}

.faq-item__trigger::-webkit-details-marker {
  display: none;
}

.faq-item__trigger:hover {
  color: var(--accent);
}

.faq-item__icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  transition: transform var(--duration-ui) var(--ease-out);
  color: var(--text-muted);
}

details[open] .faq-item__icon {
  transform: rotate(45deg);
  color: var(--accent);
}

.faq-item__answer {
  padding: 0 1.5rem 1.25rem;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* --- Photo Gallery --- */
.gallery {
  display: grid;
  gap: 1.25rem;
}

.gallery--3col {
  grid-template-columns: 1fr;
}

.gallery--2col {
  grid-template-columns: 1fr;
}

.gallery__item {
  border-radius: var(--radius-card);
  border: 1px solid var(--border-glass);
  background: var(--surface-glass);
  overflow: hidden;
  transition: border-color var(--duration-card) var(--ease-out),
              transform var(--duration-card) var(--ease-out),
              box-shadow var(--duration-card) var(--ease-out);
}

.gallery__item:hover {
  border-color: var(--accent-glow);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px var(--accent-glow);
}

.gallery__image {
  display: block;
  width: 100%;
  min-height: 350px;
  object-fit: cover;
  transition: transform 6s var(--ease-out);
}

.gallery__item:hover .gallery__image {
  transform: scale(1.03);
}

.gallery__caption {
  padding: 0.75rem 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border-glass);
  letter-spacing: 0.02em;
}

/* --- Contact Section --- */
.contact-card {
  text-align: center;
  padding: 2.5rem 2rem;
}

.contact-card__email {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 1.1rem;
  color: var(--accent);
  padding: 0.75rem 1.5rem;
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-button);
  background: var(--surface-glass);
  margin: 1rem 0;
  transition: all var(--duration-ui) var(--ease-out);
}

.contact-card__email:hover {
  border-color: var(--accent);
  background: var(--accent-glow);
  text-decoration: none;
}

.contact-card__note {
  font-size: 0.85rem;
  color: var(--text-muted);
  max-width: 480px;
  margin: 0 auto;
}

/* --- Footer --- */
.footer {
  border-top: 1px solid var(--border-glass);
  padding: 2rem 0;
  margin-top: var(--section-gap);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer__meta {
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-button);
  cursor: pointer;
  transition: all var(--duration-ui) var(--ease-out);
  text-decoration: none;
  line-height: 1.4;
}

.btn--primary {
  background: var(--accent);
  color: #fff;
}

.btn--primary:hover {
  background: var(--accent-hover);
  box-shadow: 0 4px 24px var(--accent-shadow);
  text-decoration: none;
  color: #fff;
}

.btn--ghost {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-glass);
}

.btn--ghost:hover {
  border-color: var(--accent);
  background: var(--accent-glow);
  text-decoration: none;
}

/* --- Divider --- */
.divider {
  border: none;
  border-top: 1px solid var(--border-glass);
  margin: 0;
}

/* --- Evidence Marker --- */
.evidence-marker {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--secondary);
  padding: 0.15rem 0.6rem;
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: 999px;
  background: var(--secondary-glow);
}

/* --- Source Link --- */
.source-ref {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-left: 0.5rem;
}

/* --- Responsive Grid --- */
@media (min-width: 768px) {
  .gallery--3col {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery--2col {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero__overlay {
    margin-top: -5rem;
    padding: 2.5rem;
  }

  .glass-card {
    padding: 2.25rem;
  }
}

@media (min-width: 1024px) {
  .gallery--3col {
    grid-template-columns: repeat(3, 1fr);
  }

  .hero__overlay {
    margin-left: 2rem;
    margin-right: 2rem;
    margin-top: -6rem;
  }

  .container {
    padding: 0 2rem;
  }
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .section-reveal {
    opacity: 1;
    transform: none;
  }
}

/* --- Print Styles --- */
@media print {
  body {
    background: #fff;
    color: #000;
  }

  .dossier-bar,
  .hero::before,
  .hero::after {
    display: none;
  }

  .glass-card {
    background: none;
    border: 1px solid #ccc;
    box-shadow: none;
  }

  a {
    color: #000;
    text-decoration: underline;
  }
}

/* --- Focus Visible --- */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* --- Selection --- */
::selection {
  background: var(--accent-glow);
  color: var(--text-primary);
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-deep);
}

::-webkit-scrollbar-thumb {
  background: var(--border-glass);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* Contact form additions */
.form-group[aria-hidden="true"] {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

.form-status {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  font-weight: 600;
  text-align: center;
  display: none;
}

.form-status:not(:empty) {
  display: block;
}

.form-status-success {
  background: rgba(57, 255, 20, 0.1);
  border: 1px solid #39FF14;
  color: #39FF14;
}

.form-status-error {
  background: rgba(255, 16, 240, 0.1);
  border: 1px solid #FF10F0;
  color: #FF10F0;
}

.contact-form .form-group {
  margin-bottom: 1.25rem;
}

.contact-form .form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.contact-form .form-group input,
.contact-form .form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 0.5rem;
  font: inherit;
  background: rgba(0,0,0,0.3);
  color: inherit;
  box-sizing: border-box;
}

.contact-form .form-group textarea {
  min-height: 140px;
  resize: vertical;
}

.contact-form .form-group input:focus,
.contact-form .form-group textarea:focus {
  outline: 2px solid rgba(255,255,255,0.4);
}

.contact-form .button,
.contact-form button[type="submit"] {
  cursor: pointer;
}

.form-note {
  font-size: 0.875rem;
  opacity: 0.8;
  margin-top: 0.75rem;
}
