/* ===================================================
   UDHR 1948 — Educational Webpage
   Theme: Light Pink + Warm Ivory Professional
   =================================================== */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700&family=Source+Serif+4:wght@400;600;700&display=swap');

/* --- CSS Variables --- */
:root {
  --pink-light:     rgb(255, 236, 240);
  --pink-medium:    rgb(248, 187, 208);
  --pink-accent:    rgb(216, 90, 130);
  --pink-dark:      rgb(173, 50, 95);
  --ivory:          rgb(255, 252, 247);
  --ivory-dark:     rgb(245, 240, 232);
  --gold:           rgb(196, 155, 70);
  --gold-light:     rgb(255, 243, 210);
  --charcoal:       rgb(42, 38, 38);
  --text-body:      rgb(58, 50, 52);
  --text-muted:     rgb(120, 105, 110);
  --border-pink:    rgb(232, 160, 185);
  --border-light:   rgb(225, 210, 215);
  --shadow-soft:    rgba(216, 90, 130, 0.12);
  --shadow-card:    rgba(42, 38, 38, 0.08);
  --white:          rgb(255, 255, 255);
}

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Source Serif 4', Georgia, serif;
  background-color: var(--ivory);
  color: var(--text-body);
  line-height: 1.75;
  min-height: 100vh;
}

/* --- Disclaimer Banner --- */
.disclaimer-banner {
  background-color: var(--pink-dark);
  color: var(--white);
  text-align: center;
  padding: 10px 20px;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(173, 50, 95, 0.3);
}

/* --- Site Header --- */
.site-header {
  background: linear-gradient(135deg, rgb(255, 220, 230) 0%, rgb(255, 245, 248) 50%, rgb(255, 243, 210) 100%);
  border-bottom: 3px solid var(--border-pink);
  padding: 48px 24px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.site-header::before {
  content: '';
  position: absolute;
  top: -60px; left: -60px;
  width: 220px; height: 220px;
  background: radial-gradient(circle, rgba(216, 90, 130, 0.08), transparent 70%);
  border-radius: 50%;
}

.site-header::after {
  content: '';
  position: absolute;
  bottom: -60px; right: -40px;
  width: 180px; height: 180px;
  background: radial-gradient(circle, rgba(196, 155, 70, 0.1), transparent 70%);
  border-radius: 50%;
}

.header-inner {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto;
}

.header-badge {
  display: inline-block;
  background-color: var(--pink-accent);
  color: var(--white);
  font-family: 'Source Serif 4', serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 16px;
  border-radius: 20px;
  margin-bottom: 14px;
}

.site-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--charcoal);
  line-height: 1.25;
  margin-bottom: 10px;
}

.site-subtitle {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

/* --- Jump Navigation --- */
.jump-nav {
  background-color: var(--white);
  border-bottom: 2px solid var(--border-pink);
  padding: 14px 24px;
  box-shadow: 0 2px 10px var(--shadow-soft);
  position: sticky;
  top: 40px;
  z-index: 900;
}

.jump-nav-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.jump-label {
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  color: var(--pink-dark);
  text-transform: uppercase;
  white-space: nowrap;
}

.jump-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.jump-btn {
  background-color: var(--pink-light);
  color: var(--pink-dark);
  border: 1.5px solid var(--border-pink);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 700;
  font-family: 'Source Serif 4', serif;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.jump-btn:hover {
  background-color: var(--pink-accent);
  color: var(--white);
  border-color: var(--pink-accent);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(216, 90, 130, 0.3);
}

.print-btn {
  background-color: var(--gold-light);
  color: rgb(130, 98, 20);
  border-color: rgb(196, 155, 70);
  margin-left: 8px;
}

.print-btn:hover {
  background-color: var(--gold);
  color: var(--white);
  border-color: var(--gold);
}

/* --- Main Content --- */
.main-content {
  max-width: 900px;
  margin: 40px auto;
  padding: 0 20px 60px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* --- Content Cards --- */
.content-card {
  background-color: var(--white);
  border: 1.5px solid var(--border-light);
  border-radius: 14px;
  box-shadow: 0 4px 20px var(--shadow-card);
  overflow: hidden;
  transition: box-shadow 0.3s ease;
}

.content-card:hover {
  box-shadow: 0 8px 32px rgba(216, 90, 130, 0.15);
}

.card-header {
  background: linear-gradient(90deg, var(--pink-light), var(--ivory-dark));
  border-bottom: 2px solid var(--border-pink);
  padding: 20px 28px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.card-icon {
  font-size: 1.4rem;
}

.card-header h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--charcoal);
  flex: 1;
}

.article-tag {
  background-color: var(--pink-accent);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 12px;
  border-radius: 12px;
}

.card-body {
  padding: 28px;
}

/* --- Typography --- */
.intro-text {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-body);
  margin-bottom: 18px;
}

h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--pink-dark);
  margin: 22px 0 12px;
  padding-left: 12px;
  border-left: 3px solid var(--pink-accent);
}

/* --- Article Quote --- */
.article-quote {
  background: linear-gradient(135deg, var(--pink-light), var(--gold-light));
  border-left: 4px solid var(--pink-accent);
  border-radius: 8px;
  padding: 18px 22px;
  font-size: 1rem;
  font-weight: 700;
  font-style: italic;
  color: var(--charcoal);
  margin-bottom: 22px;
  line-height: 1.7;
}

/* --- Highlight Box --- */
.highlight-box {
  background-color: var(--pink-light);
  border: 1.5px solid var(--border-pink);
  border-radius: 10px;
  padding: 18px 22px;
  margin: 14px 0;
}

.highlight-box p {
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--charcoal);
}

/* --- Lists --- */
.styled-list {
  list-style: none;
  padding: 0;
}

.styled-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px dashed var(--border-light);
  font-weight: 600;
}

.styled-list li:last-child {
  border-bottom: none;
}

.bullet-icon {
  font-size: 1rem;
  margin-top: 2px;
  flex-shrink: 0;
}

ul:not(.styled-list) {
  padding-left: 22px;
}

ul:not(.styled-list) li {
  font-weight: 600;
  padding: 4px 0;
}

/* --- Terms Grid --- */
.terms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin: 14px 0;
}

.term-card {
  background: var(--ivory-dark);
  border: 1.5px solid var(--border-pink);
  border-radius: 10px;
  padding: 16px;
}

.term-card strong {
  display: block;
  font-size: 0.95rem;
  color: var(--pink-dark);
  margin-bottom: 6px;
  font-weight: 700;
}

.term-card p {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-body);
  line-height: 1.6;
}

/* --- Example Box --- */
.example-box {
  background: var(--gold-light);
  border: 1.5px solid rgb(220, 185, 100);
  border-radius: 10px;
  padding: 16px 20px;
  margin-top: 18px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--charcoal);
}

/* --- Discrimination Grid --- */
.discrimination-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 14px 0;
}

.disc-item {
  background: linear-gradient(135deg, var(--pink-medium), var(--pink-light));
  border: 1.5px solid var(--border-pink);
  border-radius: 24px;
  padding: 7px 18px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--pink-dark);
}

/* --- Summary Table --- */
.table-wrapper {
  overflow-x: auto;
  border-radius: 10px;
}

.summary-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.summary-table th {
  background: var(--pink-dark);
  color: var(--white);
  font-family: 'Playfair Display', serif;
  font-size: 0.88rem;
  font-weight: 700;
  padding: 13px 16px;
  text-align: left;
  letter-spacing: 0.03em;
}

.summary-table td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--border-light);
  font-weight: 600;
  vertical-align: top;
}

.summary-table tr:nth-child(even) {
  background-color: var(--pink-light);
}

.summary-table tr:hover {
  background-color: var(--ivory-dark);
}

/* --- Key Concepts --- */
.concepts-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.concept-item {
  background: var(--ivory-dark);
  border-left: 4px solid var(--pink-accent);
  border-radius: 0 10px 10px 0;
  padding: 14px 18px;
  font-size: 0.97rem;
  font-weight: 600;
  color: var(--text-body);
}

.concept-item strong {
  color: var(--pink-dark);
}

/* --- Footer --- */
.site-footer {
  background: var(--charcoal);
  color: rgb(200, 185, 190);
  text-align: center;
  padding: 28px 20px;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.8;
}

/* --- Print Styles --- */
@media print {
  .disclaimer-banner,
  .jump-nav,
  .site-header,
  .site-footer {
    display: none !important;
  }

  body {
    background: white;
  }

  .main-content {
    margin: 0;
    padding: 0;
    max-width: 100%;
  }

  .content-card {
    break-inside: avoid;
    box-shadow: none;
    border: 1px solid #ccc;
    margin-bottom: 20px;
  }

  .card-header {
    background: rgb(255, 220, 230) !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .summary-table th {
    background: rgb(173, 50, 95) !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .jump-btn,
  .print-btn {
    display: none !important;
  }
}

/* --- Responsive --- */
@media (max-width: 640px) {
  .site-header {
    padding: 32px 16px 28px;
  }

  .site-title {
    font-size: 1.6rem;
  }

  .jump-nav {
    padding: 12px 16px;
    top: 38px;
  }

  .jump-nav-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .card-body {
    padding: 20px 16px;
  }

  .terms-grid {
    grid-template-columns: 1fr;
  }

  .summary-table {
    font-size: 0.8rem;
  }

  .summary-table th,
  .summary-table td {
    padding: 10px 10px;
  }
}