/* =============================================================
   California Bar Countdown of Doom — styles.css
   ============================================================= */

/* --- Variables --- */
:root {
  --black:       #080808;
  --dark:        #0f0f0f;
  --dark-card:   #111111;
  --red-deep:    #6b0000;
  --red-mid:     #990000;
  --red-bright:  #cc0000;
  --red-glow:    #ff3333;
  --text-pri:    #e8e0d0;
  --text-sec:    #a89880;
  --text-muted:  #6b5b4b;
  --gold:        #c9a84c;
  --border-red:  1px solid rgba(150, 0, 0, 0.4);
  --font-head:   'Cinzel', Georgia, serif;
  --font-body:   'IM Fell English', Georgia, serif;
}

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

/* --- Animations --- */
@keyframes pulse-glow {
  0%, 100% {
    box-shadow:
      0 0 20px rgba(200, 0, 0, 0.3),
      0 0 60px rgba(150, 0, 0, 0.15),
      inset 0 0 30px rgba(80, 0, 0, 0.1);
  }
  50% {
    box-shadow:
      0 0 45px rgba(220, 0, 0, 0.55),
      0 0 110px rgba(180, 0, 0, 0.3),
      inset 0 0 50px rgba(100, 0, 0, 0.15);
  }
}

@keyframes text-glow {
  0%, 100% { text-shadow: 0 0 12px rgba(255, 40, 40, 0.4); }
  50%       { text-shadow: 0 0 30px rgba(255, 50, 50, 0.75), 0 0 60px rgba(200, 0, 0, 0.3); }
}

@keyframes bg-drift {
  0%        { background-position: 0% 0%; }
  33%       { background-position: 100% 30%; }
  66%       { background-position: 40% 100%; }
  100%      { background-position: 0% 0%; }
}

@keyframes stamp-drop {
  from { opacity: 0; transform: rotate(-12deg) scale(1.4); }
  to   { opacity: 0.85; transform: rotate(-12deg) scale(1); }
}

@keyframes stamp-drop-right {
  from { opacity: 0; transform: rotate(10deg) scale(1.4); }
  to   { opacity: 0.85; transform: rotate(10deg) scale(1); }
}

@keyframes fade-in {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* --- Base --- */
html { font-size: 16px; scroll-behavior: smooth; }

body {
  background-color: var(--black);
  background-image:
    radial-gradient(ellipse 70% 55% at 20% 15%, rgba(90, 0, 0, 0.22) 0%, transparent 65%),
    radial-gradient(ellipse 60% 45% at 80% 85%, rgba(60, 0, 0, 0.16) 0%, transparent 65%);
  background-size: 280% 280%;
  animation: bg-drift 28s ease-in-out infinite;
  color: var(--text-pri);
  font-family: var(--font-body);
  line-height: 1.75;
  overflow-x: hidden;
  min-height: 100vh;
}

/* --- Hero --- */
.hero {
  text-align: center;
  padding: 56px 24px 80px;
  border-bottom: var(--border-red);
  position: relative;
}

.hero-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  max-width: 820px;
  margin: 0 auto 44px;
}

/* Stamps */
.stamp {
  border: 3px solid var(--red-bright);
  color: var(--red-bright);
  padding: 8px 14px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.25em;
  line-height: 1.5;
  text-align: center;
  transform: rotate(-12deg);
  opacity: 0;
  animation: stamp-drop 0.7s ease 0.4s forwards;
  flex-shrink: 0;
  align-self: center;
}

.stamp--right {
  transform: rotate(10deg);
  animation-name: stamp-drop-right;
  animation-delay: 0.7s;
}

/* Court header */
.court-header {
  flex: 1;
  padding: 0 18px;
}

.court-seal {
  display: block;
  font-size: 52px;
  margin-bottom: 8px;
  filter: drop-shadow(0 0 14px rgba(200, 0, 0, 0.5));
}

.court-name {
  font-family: var(--font-head);
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-sec);
}

.court-sub {
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Hero text */
.hero-headline {
  font-family: var(--font-head);
  font-size: clamp(28px, 5.5vw, 54px);
  font-weight: 900;
  line-height: 1.2;
  color: var(--text-pri);
  text-shadow: 0 0 40px rgba(200, 0, 0, 0.25);
  margin: 0 auto 24px;
  max-width: 820px;
  animation: fade-in 1s ease 0.2s both;
}

.hero-subtext {
  font-size: clamp(14px, 2.2vw, 18px);
  font-style: italic;
  color: var(--text-sec);
  max-width: 620px;
  margin: 0 auto 52px;
  animation: fade-in 1s ease 0.5s both;
}

/* Countdown panel */
.countdown-panel {
  background: rgba(14, 2, 2, 0.65);
  border: 1px solid rgba(180, 0, 0, 0.55);
  border-radius: 3px;
  padding: 36px 28px 32px;
  max-width: 720px;
  margin: 0 auto 28px;
  animation: pulse-glow 4.5s ease-in-out infinite;
  position: relative;
}

.panel-label {
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--black);
  color: var(--red-bright);
  font-family: var(--font-head);
  font-size: 10px;
  letter-spacing: 0.3em;
  padding: 2px 16px;
  white-space: nowrap;
  border: 1px solid rgba(150, 0, 0, 0.4);
}

.countdown-grid {
  display: flex;
  align-items: center;
  justify-content: center;
}

.countdown-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 14px;
}

.countdown-number {
  font-family: var(--font-head);
  font-size: clamp(52px, 10vw, 92px);
  font-weight: 900;
  color: var(--red-glow);
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  animation: text-glow 4.5s ease-in-out infinite;
}

.countdown-label {
  font-family: var(--font-head);
  font-size: 9px;
  letter-spacing: 0.4em;
  color: var(--text-muted);
  margin-top: 10px;
}

.countdown-sep {
  font-family: var(--font-head);
  font-size: clamp(38px, 7.5vw, 72px);
  font-weight: 900;
  color: var(--red-deep);
  line-height: 1;
  margin-bottom: 24px;
  animation: text-glow 4.5s ease-in-out infinite;
  opacity: 0.75;
}

.countdown-message {
  display: none;
  font-family: var(--font-head);
  font-size: clamp(22px, 4.5vw, 40px);
  font-weight: 700;
  color: var(--red-glow);
  text-align: center;
  letter-spacing: 0.08em;
  padding: 18px 0 8px;
  animation: text-glow 2s ease-in-out infinite;
}

.target-date {
  font-family: var(--font-head);
  font-size: 11px;
  letter-spacing: 0.28em;
  color: var(--text-muted);
  text-transform: uppercase;
}

/* --- Shared Section Styles --- */
.section {
  padding: 80px 24px;
  border-bottom: var(--border-red);
}

.section-inner {
  max-width: 920px;
  margin: 0 auto;
}

.section-tag {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--red-bright);
  border-left: 2px solid var(--red-bright);
  padding-left: 12px;
  margin-bottom: 14px;
}

.section-title {
  font-family: var(--font-head);
  font-size: clamp(26px, 4.5vw, 44px);
  font-weight: 700;
  color: var(--text-pri);
  margin-bottom: 20px;
  line-height: 1.2;
}

.section-subtitle {
  font-style: italic;
  color: var(--text-sec);
  font-size: 17px;
  margin-bottom: 44px;
}

/* --- Legal Notice Section --- */
.legal-notice {
  background: rgba(10, 0, 0, 0.45);
}

.notice-body {
  background: rgba(18, 4, 0, 0.55);
  border: var(--border-red);
  border-left: 3px solid var(--red-mid);
  padding: 32px 40px;
  margin-bottom: 24px;
  position: relative;
}

.notice-body::before {
  content: '\201C';
  position: absolute;
  top: -8px;
  left: 18px;
  font-family: Georgia, serif;
  font-size: 68px;
  color: var(--red-deep);
  line-height: 1;
  opacity: 0.7;
}

.notice-body p {
  font-size: 18px;
  font-style: italic;
  color: var(--text-sec);
  line-height: 1.9;
  padding-left: 12px;
}

.case-number {
  font-family: var(--font-head);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  text-align: center;
  border-top: var(--border-red);
  padding-top: 18px;
}

/* --- Stats / Exhibits Section --- */
.stats-section {
  background: var(--black);
}

.exhibits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(285px, 1fr));
  gap: 24px;
}

.exhibit-card {
  background: var(--dark-card);
  border: 1px solid rgba(110, 0, 0, 0.4);
  border-top: 3px solid var(--red-mid);
  padding: 28px 24px 44px;
  position: relative;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.exhibit-card:hover {
  border-color: rgba(180, 0, 0, 0.7);
  box-shadow: 0 0 22px rgba(160, 0, 0, 0.2);
}

.exhibit-label {
  position: absolute;
  top: -1px;
  right: 18px;
  background: var(--gold);
  color: #000;
  font-family: var(--font-head);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.18em;
  padding: 4px 10px;
  text-transform: uppercase;
}

.exhibit-title {
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-pri);
  margin-bottom: 20px;
  line-height: 1.45;
  padding-right: 16px;
}

.exhibit-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 9px 0;
  border-bottom: 1px solid rgba(70, 0, 0, 0.25);
  gap: 12px;
}

.exhibit-item:last-of-type {
  border-bottom: none;
}

.exhibit-item-label {
  font-size: 13px;
  color: var(--text-muted);
  flex: 1;
  line-height: 1.4;
}

.exhibit-item-value {
  font-family: var(--font-head);
  font-size: 19px;
  font-weight: 700;
  color: var(--red-glow);
  white-space: nowrap;
  flex-shrink: 0;
}

.exhibit-entered {
  position: absolute;
  bottom: 14px;
  right: 16px;
  font-family: var(--font-head);
  font-size: 7px;
  letter-spacing: 0.18em;
  color: var(--red-mid);
  opacity: 0.55;
  transform: rotate(1.5deg);
}

/* --- Coping Section --- */
.coping-section {
  background: rgba(8, 2, 0, 0.55);
}

.coping-list {
  display: grid;
  gap: 14px;
}

.coping-item {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  background: rgba(18, 4, 0, 0.45);
  border: var(--border-red);
  border-left: 3px solid var(--red-mid);
  padding: 18px 22px;
  transition: background 0.2s;
}

.coping-item:hover {
  background: rgba(35, 5, 0, 0.55);
}

.coping-number {
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 700;
  color: var(--red-bright);
  letter-spacing: 0.1em;
  flex-shrink: 0;
  padding-top: 3px;
  min-width: 30px;
}

.coping-text {
  font-size: 17px;
  color: var(--text-sec);
  line-height: 1.65;
}

/* --- Footer --- */
.site-footer {
  text-align: center;
  padding: 64px 24px;
  background: rgba(5, 0, 0, 0.8);
}

.footer-seal {
  display: block;
  font-size: 34px;
  margin-bottom: 22px;
  opacity: 0.3;
}

.footer-advice {
  font-size: 18px;
  font-style: italic;
  color: var(--text-sec);
  margin-bottom: 10px;
}

.footer-source {
  font-family: var(--font-head);
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.footer-rule {
  width: 100px;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(150, 0, 0, 0.5), transparent);
  margin: 22px auto;
}

.footer-docket {
  font-family: var(--font-head);
  font-size: 9px;
  letter-spacing: 0.22em;
  color: var(--text-muted);
  opacity: 0.45;
}

/* --- Responsive --- */
@media (max-width: 600px) {
  .hero { padding: 36px 16px 60px; }

  .hero-top { margin-bottom: 28px; }

  .stamp {
    font-size: 9px;
    padding: 6px 10px;
    border-width: 2px;
  }

  .court-seal { font-size: 36px; }
  .court-name { font-size: 10px; }
  .court-sub  { font-size: 9px; }

  .countdown-panel { padding: 28px 10px 24px; }

  .countdown-unit { padding: 0 6px; }

  .countdown-sep { padding: 0 1px; }

  .section { padding: 52px 16px; }

  .notice-body { padding: 24px 22px; }
  .notice-body p { font-size: 16px; }

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

@media (min-width: 601px) and (max-width: 880px) {
  .exhibits-grid { grid-template-columns: repeat(2, 1fr); }
}
