/* Basic reset */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background: #0f172a; /* dark slate */
  color: #e5e7eb;      /* light gray */
  line-height: 1.6;
}

/* Page layout */
.page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Headers */
.page-header {
  text-align: center;
  margin-bottom: 1.75rem;
}

.page-header h1 {
  font-size: 1.9rem;
  margin-bottom: 0.4rem;
}

.page-header h2 {
  font-size: 1.1rem;
  font-weight: 400;
  color: #cbd5f5;
}

.handle {
  font-weight: 600;
  color: #fbbf24; /* amber */
}

.content-layout {
  display: flex;
  gap: 1.75rem;
  align-items: flex-start;
  flex: 1 1 auto;
  /* min-height: calc(100vh - 220px); */
  margin-bottom: 1.25rem;  /* NEW */
}

/* LEFT column */
.left-column {
  flex: 0 0 320px;
  max-width: 340px;
}

/* RIGHT column */
.right-column {
  flex: 1 1 auto;
  min-width: 0;
  max-height: 69.5vh;
  overflow-y: auto;
  padding-right: 0.25rem; /* tiny padding so scrollbar doesn't overlap text */
}

/* Mugshot section */
.mugshot-section {
  text-align: center;
  margin-bottom: 1.25rem;
}

.mugshot {
  max-width: 220px;
  width: 100%;
  border-radius: 0.75rem;
  display: block;
  margin: 0 auto 0.75rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.45);
  object-fit: cover;
}

.mugshot-caption {
  font-size: 0.85rem;
  color: #9ca3af;
}

/* Case summary block */
.case-summary {
  margin: 0 auto 1.25rem;
  background: rgba(15, 23, 42, 0.9);
  border-radius: 0.75rem;
  padding: 1rem 1.25rem;
  border: 1px solid rgba(148, 163, 184, 0.5);
}

.case-summary h3 {
  text-align: center;
  margin-bottom: 0.75rem;
  font-size: 1.15rem;
}

.case-summary p {
  font-size: 0.95rem;
  margin: 0.2rem 0;
}

.case-label {
  font-weight: 600;
  color: #e5e7eb;
}

.case-value {
  margin-left: 0.25rem;
  color: #cbd5f5;
}

/* Tab header */
.tab-header {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.9rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.4);
  padding-bottom: 0.4rem;
}

.tab-button {
  border: none;
  background: transparent;
  color: #9ca3af;
  font-size: 0.95rem;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.tab-button:hover {
  background: rgba(148, 163, 184, 0.15);
  color: #e5e7eb;
}

.tab-button.active {
  background: #1d4ed8; /* blue-700 */
  color: #f9fafb;
}

/* Tab views */
.tab-view {
  display: none;
}

.tab-view.active {
  display: block;
}

/* Events section (case details) */
.events-section {
  text-align: center;
}

.events-section h3 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

/* Table wrapper for responsiveness */
.table-wrapper {
  margin-top: 0.5rem;
  border-radius: 0.75rem;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: rgba(15, 23, 42, 0.9);
}

/* Table styling */
.events-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 100%;
}

.events-table thead {
  background: #1e293b;
}

.events-table th,
.events-table td {
  padding: 0.75rem 0.75rem;
  text-align: left;
  font-size: 0.9rem;
}

.events-table th {
  font-weight: 600;
  color: #e5e7eb;
  border-bottom: 1px solid rgba(148, 163, 184, 0.7);
}

.events-table td {
  border-bottom: 1px solid rgba(51, 65, 85, 0.7);
}

/* Zebra stripes */
.events-table tbody tr:nth-child(even) {
  background: rgba(15, 23, 42, 0.9);
}

.events-table tbody tr:nth-child(odd) {
  background: rgba(15, 23, 42, 0.75);
}

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

.events-table a {
  color: #60a5fa;
  text-decoration: none;
  font-weight: 500;
}

.events-table a:hover {
  text-decoration: underline;
}

/* Placeholder row style */
.placeholder-row td {
  text-align: center;
  color: #9ca3af;
}

/* Verify box (tab content) */
.verify-box {
  background: rgba(15, 23, 42, 0.95);
  border-radius: 0.75rem;
  padding: 1rem 1.25rem;
  border: 1px solid rgba(148, 163, 184, 0.5);
  font-size: 0.9rem;
  text-align: left;

  overflow-wrap: break-word;
  word-wrap: break-word;
  word-break: break-word;
}

.verify-box h3 {
  font-size: 1.2rem;
  margin-bottom: 0.6rem;
}

.verify-box p {
  margin-bottom: 0.6rem;
}

.verify-box ol {
  margin-left: 1.2rem;
  margin-bottom: 0.6rem;
}

.verify-box li {
  margin-bottom: 0.35rem;
}

.verify-box ul {
  margin-left: 1.2rem;
  margin-top: 0.3rem;
}

.verify-note {
  font-size: 0.85rem;
  color: #9ca3af;
}

/* Screenshots subsection */
.screenshots-section {
  margin-top: 0.8rem;
  border-top: 1px solid rgba(148, 163, 184, 0.4);
  padding-top: 0.6rem;
}

/* Make the verification screenshot scale with the section */
.verify-screenshot {
  display: block;
  width: 100%;        /* fill the width of the section */
  max-width: 100%;    /* never overflow */
  height: auto;       /* keep aspect ratio */
  margin-top: 0.6rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(148, 163, 184, 0.6);
}

.screenshots-section h4 {
  font-size: 1rem;
  margin-bottom: 0.3rem;
}

/* Legal disclaimer at bottom */
.legal-disclaimer {
  margin-top: 0;           /* was 1.75rem before */
  background: #020617;
  border-radius: 0.75rem;
  padding: 1.25rem 1.25rem 1rem;
  border: 1px solid rgba(148, 163, 184, 0.5);
  font-size: 0.9rem;
}

.legal-disclaimer h3 {
  font-size: 1.1rem;
  margin-bottom: 0.6rem;
}

.legal-disclaimer p + p {
  margin-top: 0.5rem;
}

.disclaimer-updated {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: #9ca3af;
}

/* Small screens: stack columns vertically */
@media (max-width: 800px) {
  .content-layout {
    flex-direction: column;
    min-height: auto;
  }

  .left-column,
  .right-column {
    flex: 1 1 100%;
    max-width: 100%;
  }

  .right-column {
    max-height: none;
    overflow-y: visible;
    padding-right: 0;
  }

  .page {
    padding: 1.5rem 1rem 2.5rem;
  }

  .page-header h1 {
    font-size: 1.6rem;
  }

  .events-table th,
  .events-table td {
    font-size: 0.85rem;
    padding: 0.6rem 0.5rem;
  }
}

/* Conviction details hover trigger */
.conviction-line {
  margin-top: 0.5rem;
}

.conviction-tooltip {
  position: relative;
  display: inline-block;
  border: none;
  padding: 0;
  margin: 0;
  background: none;
  font: inherit;
  color: #93c5fd;              /* light blue */
  cursor: help;
  text-decoration: underline dotted;
}

/* Popout content */
.conviction-tooltip-content {
  position: absolute;
  z-index: 30;
  bottom: 125%;
  left: 0;
  min-width: 260px;
  max-width: 320px;
  padding: 0.75rem 0.9rem;
  background: #020617;
  border-radius: 0.5rem;
  border: 1px solid rgba(148, 163, 184, 0.8);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.5);
  font-size: 0.8rem;
  line-height: 1.4;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s ease, visibility 0.15s ease;
}

/* Show on hover or focus */
.conviction-tooltip:hover .conviction-tooltip-content,
.conviction-tooltip:focus-visible .conviction-tooltip-content {
  opacity: 1;
  visibility: visible;
}

/* Optional little spacing between paragraphs inside tooltip */
.conviction-tooltip-content p + p {
  margin-top: 0.35rem;
}
