/* =============================================
   Anxiety Disorders Website – Shared Stylesheet
   APPL27670 Multimedia Presentations
   Sofy Ayala | Sheridan College | 2026
   ============================================= */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700;900&family=Source+Serif+4:ital,wght@0,300;0,400;0,600;1,300;1,400&display=swap');

/* ── CSS Variables ── */
:root {
  --ink:      #1a1a2e;
  --muted:    #5a5a7a;
  --accent:   #7c5cbf;
  --accent2:  #c084fc;
  --soft:     #f5f2fb;
  --border:   #ddd6f3;
  --white:    #ffffff;
  --dark:     #1a1a2e;
  --nav-h:    62px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Source Serif 4', Georgia, serif;
  background: var(--soft);
  color: var(--ink);
  line-height: 1.8;
  font-size: 16px;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); }
a:hover { text-decoration: underline; }

/* ── NAV ── */
nav {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(8px);
  border-bottom: 2px solid var(--border);
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
}
.nav-brand {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
}
.nav-links {
  list-style: none;
  display: flex;
  gap: 0.3rem;
  flex-wrap: wrap;
}
.nav-links a {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-decoration: none;
  padding: 0.4rem 0.7rem;
  border-radius: 5px;
  transition: background 0.2s, color 0.2s;
}
.nav-links a:hover,
.nav-links a.active {
  background: var(--soft);
  color: var(--accent);
}

/* ── PAGE HEADER ── */
.page-header {
  background: linear-gradient(135deg, #1a1a2e 0%, #2d1b69 100%);
  color: white;
  padding: 3.5rem 2rem 3rem;
  text-align: center;
}
.page-header .eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent2);
  margin-bottom: 0.8rem;
}
.page-header h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  line-height: 1.1;
  color: white;
}
.page-header p {
  margin-top: 0.8rem;
  font-size: 1rem;
  color: rgba(255,255,255,0.7);
  font-style: italic;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ── LAYOUT ── */
.container      { max-width: 860px;  margin: 0 auto; padding: 0 1.5rem; }
.container-wide { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }
section { padding: 3.5rem 1.5rem; }

/* ── SECTION LABELS ── */
.section-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}
h2.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 1.5rem;
  padding-bottom: 0.6rem;
  border-bottom: 3px solid var(--accent);
}

/* ── TYPOGRAPHY ── */
p  { margin-bottom: 1.2rem; font-size: 0.97rem; }
h1 { font-family: 'Playfair Display', serif; }
h2 { font-family: 'Playfair Display', serif; }
h3 { font-family: 'Playfair Display', serif; font-size: 1.15rem; color: var(--ink); margin-bottom: 0.5rem; }

/* Indented text */
.indent { padding-left: 1.8rem; }

/* Centered text */
.text-center { text-align: center; }
.text-right  { text-align: right; }

/* ── LISTS ── */
ul.bullet-list, ol.numbered-list {
  margin: 1rem 0 1.2rem 1.5rem;
  font-size: 0.95rem;
  color: var(--ink);
}
ul.bullet-list  { list-style: disc; }
ol.numbered-list { list-style: decimal; }
ul.bullet-list li,
ol.numbered-list li { margin-bottom: 0.4rem; line-height: 1.7; }

/* ── BLOCKQUOTE ── */
blockquote {
  border-left: 3px solid var(--accent);
  background: var(--white);
  padding: 1rem 1.5rem;
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: var(--muted);
  font-size: 0.95rem;
  margin: 1.5rem 0;
}
blockquote cite {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.75rem;
  font-style: normal;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.06em;
}

/* ── CARDS ── */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.6rem;
}
.card-grid {
  display: grid;
  gap: 1.5rem;
  margin: 1.5rem 0;
}
.card-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.card-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }

/* ── HIGHLIGHT BOX ── */
.highlight-box {
  background: linear-gradient(135deg, #ede9fe, #f5f2fb);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.5rem 2rem;
  margin: 1.5rem 0;
  text-align: center;
}
.highlight-box .stat {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
}
.highlight-box .stat-label {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.3rem;
}

/* ── TABLES ── */
.table-wrap { overflow-x: auto; margin: 1.5rem 0; }
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}
caption {
  font-family: 'Playfair Display', serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink);
  text-align: left;
  padding: 0 0 0.6rem;
  margin-bottom: 0.4rem;
}
th {
  background: var(--accent);
  color: white;
  padding: 0.65rem 1rem;
  text-align: left;
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
td {
  padding: 0.6rem 1rem;
  border-bottom: 1px solid var(--border);
  color: var(--ink);
  line-height: 1.5;
}
tr:nth-child(even) td { background: var(--soft); }
tr:hover td { background: #ede9fe55; }
td.merged { font-style: italic; color: var(--muted); font-size: 0.82rem; }

/* ── IMAGES ── */
.img-block {
  margin: 1.5rem 0;
  text-align: center;
}
.img-block img {
  display: inline-block;
  border: 3px solid var(--border);
  border-radius: 8px;
  margin: 0 auto;
}
.img-block figcaption {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 0.5rem;
  font-style: italic;
}
.thumbnail {
  width: 120px;
  height: 90px;
  object-fit: cover;
  cursor: pointer;
  transition: transform 0.2s;
}
.thumbnail:hover { transform: scale(1.05); }

/* ── FOOTER ── */
footer {
  background: var(--dark);
  color: rgba(255,255,255,0.55);
  padding: 2rem 1.5rem;
  font-size: 0.8rem;
}
.footer-inner {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.6rem;
}
.footer-inner strong { color: rgba(255,255,255,0.85); }
.footer-inner a { color: var(--accent2); text-decoration: none; }
.footer-inner a:hover { text-decoration: underline; }

/* ── DARK SECTION ── */
.dark-section {
  background: linear-gradient(135deg, #1a1a2e 0%, #2d1b69 100%);
  color: white;
}
.dark-section .section-label  { color: var(--accent2); }
.dark-section h2.section-title { color: white; border-bottom-color: var(--accent2); }
.dark-section p  { color: rgba(255,255,255,0.85); }
.dark-section h3 { color: white; }

/* ── BOOKMARKS / JUMP NAV ── */
.jump-nav {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem 1.5rem;
  margin-bottom: 2rem;
  font-size: 0.85rem;
}
.jump-nav strong { display: block; margin-bottom: 0.4rem; color: var(--muted); font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; }
.jump-nav a { margin-right: 1rem; color: var(--accent); font-weight: 600; text-decoration: none; }
.jump-nav a:hover { text-decoration: underline; }

/* ── EXTERNAL LINKS ── */
.ext-links {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin: 1.2rem 0;
}
.ext-link-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: 0 8px 8px 0;
  padding: 0.8rem 1.2rem;
  font-size: 0.9rem;
}
.ext-link-item a { font-weight: 700; }
.ext-link-item p  { margin: 0; color: var(--muted); font-size: 0.83rem; }

/* ── RESPONSIVE ── */
@media (max-width: 680px) {
  .card-grid.cols-2,
  .card-grid.cols-3 { grid-template-columns: 1fr; }
  nav { flex-wrap: wrap; height: auto; padding: 0.8rem 1rem; }
  .nav-links { gap: 0.2rem; }
}
