/* LAWCET prep site custom styles */
:root {
  --bg-deep: #050505;
  --bg-card: #101010;
  --bg-card-soft: #161616;
  --gold: #d4af37;
  --gold-soft: #f0d889;
  --text-main: #f5f5f5;
  --text-muted: #a3a3a3;
  --border-soft: #2a2a2a;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Poppins", sans-serif;
  background: radial-gradient(circle at top, #131313 0%, var(--bg-deep) 45%);
  color: var(--text-main);
}

.site-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.page-main {
  flex: 1;
}

.gold-text {
  color: var(--gold);
}

.gold-gradient {
  background: linear-gradient(135deg, #d4af37 0%, #f5d76e 100%);
}

.surface-card {
  background: linear-gradient(180deg, #151515 0%, #101010 100%);
  border: 1px solid var(--border-soft);
  border-radius: 16px;
}

.shadow-gold {
  box-shadow: 0 0 0 1px rgba(212, 175, 55, 0.15), 0 10px 25px rgba(0, 0, 0, 0.35);
}

.btn-gold {
  background: linear-gradient(135deg, #d4af37 0%, #e8c65d 100%);
  color: #111;
  border: 1px solid #d4af37;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-gold:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(212, 175, 55, 0.25);
}

.btn-outline-gold {
  border: 1px solid rgba(212, 175, 55, 0.6);
  color: var(--gold-soft);
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.btn-outline-gold:hover {
  background: rgba(212, 175, 55, 0.12);
  transform: translateY(-1px);
}

.nav-link {
  color: #e5e5e5;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--gold-soft);
}

[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid rgba(212, 175, 55, 0.35);
  color: var(--gold-soft);
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  background: rgba(212, 175, 55, 0.06);
}

.metric {
  border-radius: 14px;
  border: 1px solid var(--border-soft);
  background: var(--bg-card-soft);
  padding: 0.8rem;
}

.portal-section {
  border: 1px solid var(--border-soft);
  border-radius: 20px;
  background: linear-gradient(180deg, #131313 0%, #0d0d0d 100%);
  padding: 1.25rem;
}

.section-title {
  font-weight: 700;
  font-size: 1.5rem;
  line-height: 1.25;
}

.section-subtitle {
  color: #a1a1aa;
  font-size: 0.95rem;
}

.hero-shell {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid rgba(212, 175, 55, 0.2);
  background: radial-gradient(circle at 75% 15%, rgba(212, 175, 55, 0.12) 0%, rgba(0, 0, 0, 0) 50%),
    linear-gradient(145deg, #161616 0%, #0d0d0d 65%);
}

.hero-separator {
  height: 1px;
  background: linear-gradient(90deg, rgba(212, 175, 55, 0.4), rgba(212, 175, 55, 0.05));
}

.notice-banner {
  border: 1px solid rgba(212, 175, 55, 0.35);
  background: rgba(212, 175, 55, 0.08);
  color: #fef3c7;
  border-radius: 14px;
  padding: 0.8rem 1rem;
}

.info-list {
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  overflow: hidden;
}

.info-row {
  display: grid;
  grid-template-columns: minmax(130px, 220px) 1fr;
  gap: 1rem;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid rgba(63, 63, 70, 0.7);
}

.info-row:last-child {
  border-bottom: none;
}

.info-label {
  color: #a1a1aa;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-weight: 600;
}

.info-value {
  color: #f4f4f5;
  font-size: 0.95rem;
  line-height: 1.55;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  overflow: hidden;
}

.data-table thead th {
  background: #171717;
  color: #f0d889;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.8rem;
  text-align: left;
  border-bottom: 1px solid var(--border-soft);
}

.data-table tbody td {
  font-size: 0.93rem;
  color: #e4e4e7;
  padding: 0.85rem;
  border-bottom: 1px solid #27272a;
  vertical-align: top;
}

.data-table tbody tr:last-child td {
  border-bottom: none;
}

.split-layout {
  display: grid;
  gap: 1rem;
}

.action-list {
  display: grid;
  gap: 0.75rem;
}

.action-item {
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  padding: 0.9rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: #141414;
}

.action-item p {
  margin: 0;
}

.checklist {
  margin: 0;
  padding-left: 1rem;
  display: grid;
  gap: 0.6rem;
  color: #d4d4d8;
}

.faq-item {
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  background: #131313;
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 1rem;
  font-weight: 600;
  color: #f4f4f5;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  float: right;
  color: var(--gold-soft);
}

.faq-item[open] summary::after {
  content: '−';
}

.faq-item .faq-content {
  border-top: 1px solid #27272a;
  padding: 0.9rem 1rem 1rem;
  color: #c4c4cc;
  font-size: 0.92rem;
  line-height: 1.6;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  color: #d4d4d8;
  margin-bottom: 0.45rem;
  font-weight: 500;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  border-radius: 12px;
  border: 1px solid #3f3f46;
  background: #111215;
  color: #f4f4f5;
  padding: 0.75rem 0.9rem;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-textarea {
  min-height: 92px;
  resize: vertical;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: rgba(212, 175, 55, 0.7);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.16);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
}

.admin-table th,
.admin-table td {
  border-bottom: 1px solid #2f2f35;
  padding: 0.8rem;
  text-align: left;
  vertical-align: top;
}

.admin-table th {
  color: #f0d889;
  font-size: 0.75rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.admin-table td {
  color: #e4e4e7;
  font-size: 0.9rem;
}

@media (max-width: 767px) {
  .info-row {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .info-label {
    font-size: 0.74rem;
  }

  .data-table {
    border: none;
    border-radius: 0;
  }

  .data-table thead {
    display: none;
  }

  .data-table tbody tr {
    display: block;
    border: 1px solid var(--border-soft);
    border-radius: 14px;
    background: #111111;
    margin-bottom: 0.75rem;
    overflow: hidden;
  }

  .data-table tbody tr:last-child {
    margin-bottom: 0;
  }

  .data-table tbody td {
    display: grid;
    grid-template-columns: minmax(92px, 120px) 1fr;
    gap: 0.6rem;
    padding: 0.72rem 0.85rem;
    border-bottom: 1px solid #27272a;
    font-size: 0.96rem;
    line-height: 1.5;
  }

  .data-table tbody td::before {
    color: #a1a1aa;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    font-weight: 600;
  }

  .data-table tbody td:nth-child(1)::before {
    content: 'Exam';
  }

  .data-table tbody td:nth-child(1) {
    color: #f6dea0;
    font-weight: 700;
    background: rgba(212, 175, 55, 0.08);
    border-left: 2px solid rgba(212, 175, 55, 0.45);
  }

  .data-table tbody td:nth-child(2)::before {
    content: 'Date & Day';
  }

  .data-table tbody td:nth-child(3)::before {
    content: 'Time';
  }

  .data-table tbody tr td:last-child {
    border-bottom: none;
  }
}

@media (min-width: 768px) {
  .portal-section {
    padding: 1.6rem;
  }

  .split-layout {
    grid-template-columns: 1fr 1fr;
  }
}

.timer-warning {
  color: #f87171;
  animation: pulse 1.2s infinite;
}

@keyframes pulse {
  0% { opacity: 1; }
  50% { opacity: 0.55; }
  100% { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
