/* =================================================================
   Mouras Encantadas — Collection Page Styles
   Phase 1I.1 · css/mouras.css
   Depends on: style.css (shared tokens, header, footer)
   ================================================================= */

/* --- Collection Hero ------------------------------------------------ */
.mc-hero {
  padding: clamp(48px, 8vw, 96px) var(--gutter) clamp(32px, 4vw, 48px);
  background: var(--bg);
  border-bottom: 1px solid var(--border-light);
  text-align: center;
}
.mc-hero-inner {
  max-width: 700px;
  margin: 0 auto;
}
.mc-hero-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.12;
  letter-spacing: -.01em;
  margin: 0 0 14px;
  color: var(--royal);
}
[data-theme="dark"] .mc-hero-title { color: var(--text); }
.mc-hero-subtitle {
  font-family: var(--serif);
  font-size: clamp(16px, 1.3vw, 19px);
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 54ch;
  margin: 0 auto 20px;
}
.mc-hero-stats {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 13.5px;
  color: var(--ink-muted);
}
.mc-hero-stat {
  display: flex;
  align-items: center;
  gap: 6px;
}
.mc-hero-stat strong {
  color: var(--azulejo);
  font-weight: 700;
}
[data-theme="dark"] .mc-hero-stat strong { color: var(--gold); }
.mc-hero-back {
  display: inline-block;
  margin-top: 20px;
  font-size: 13px;
  color: var(--ink-muted);
  text-decoration: none;
}
.mc-hero-back:hover { color: var(--azulejo); }
[data-theme="dark"] .mc-hero-back:hover { color: var(--gold); }

/* --- Shared section wrapper ----------------------------------------- */
.mc-section {
  padding: clamp(40px, 6vw, 72px) var(--gutter);
  background: var(--bg);
  border-bottom: 1px solid var(--border-light);
}
.mc-section-alt {
  background: var(--light-blue);
}
[data-theme="dark"] .mc-section-alt {
  background: var(--surface);
}
.mc-inner {
  max-width: 840px;
  margin: 0 auto;
}
.mc-section-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(24px, 2.8vw, 36px);
  line-height: 1.15;
  letter-spacing: -.01em;
  margin: 0 0 10px;
  color: var(--royal);
}
[data-theme="dark"] .mc-section-title { color: var(--text); }
.mc-section-lede {
  font-family: var(--serif);
  font-size: clamp(15px, 1.2vw, 18px);
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 58ch;
  margin: 0 0 32px;
}

/* --- Region cards (Guia comparativo) -------------------------------- */
.mc-region-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 28px;
}
@media (max-width: 760px) {
  .mc-region-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}
.mc-region-card {
  padding: 24px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
[data-theme="dark"] .mc-region-card {
  background: var(--surface-2);
}
.mc-region-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.mc-region-tag {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 100px;
  color: #fff;
}
.mc-region-tag-algarve { background: #a84b2f; }
.mc-region-tag-alentejo { background: #5c6e3a; }
.mc-region-tag-centro { background: #3a5a8c; }
.mc-region-card h3 {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 600;
  margin: 0;
  color: var(--royal);
}
[data-theme="dark"] .mc-region-card h3 { color: var(--text); }
.mc-region-card > p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0 0 14px;
}
.mc-region-keys {
  list-style: none;
  padding: 0;
  margin: 0;
}
.mc-region-keys li {
  font-size: 13px;
  color: var(--ink-soft);
  padding: 4px 0;
  border-bottom: 1px solid var(--border-light);
  line-height: 1.5;
}
.mc-region-keys li:last-child { border-bottom: none; }
.mc-region-keys span {
  font-weight: 700;
  color: var(--azulejo);
  margin-right: 4px;
}
[data-theme="dark"] .mc-region-keys span { color: var(--gold); }

/* Comparative table */
.mc-compare-toggle {
  display: block;
  width: 100%;
  padding: 14px 20px;
  background: var(--light-blue);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  cursor: pointer;
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 600;
  color: var(--royal);
  text-align: left;
}
[data-theme="dark"] .mc-compare-toggle {
  background: var(--surface-2);
  color: var(--text);
  border-color: var(--border);
}
.mc-compare-toggle:hover {
  background: #dfe8f0;
}
[data-theme="dark"] .mc-compare-toggle:hover {
  background: var(--surface);
}
.mc-table-wrap {
  overflow-x: auto;
  margin-top: 14px;
  -webkit-overflow-scrolling: touch;
}
.mc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}
.mc-table th,
.mc-table td {
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border-light);
}
.mc-table thead th {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--azulejo);
  border-bottom: 2px solid var(--border);
}
[data-theme="dark"] .mc-table thead th { color: var(--gold); }
.mc-table tbody th {
  font-weight: 600;
  color: var(--ink);
}
[data-theme="dark"] .mc-table tbody th { color: var(--text); }
.mc-table tbody td {
  color: var(--ink-soft);
}

/* --- Theme / archetype chips ---------------------------------------- */
.mc-themes-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}
.mc-theme-chip {
  font-size: 12.5px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 100px;
  background: var(--light-blue);
  color: var(--azulejo);
  border: 1px solid var(--border);
}
[data-theme="dark"] .mc-theme-chip {
  background: var(--surface-2);
  color: var(--gold);
  border-color: var(--border);
}
.mc-themes-note {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-muted);
  font-style: italic;
  margin: 0;
}

/* --- Missions preview ----------------------------------------------- */
.mc-missions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 24px;
}
@media (max-width: 760px) {
  .mc-missions-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}
.mc-mission-card {
  padding: 24px;
  background: var(--light-blue);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-align: center;
}
[data-theme="dark"] .mc-mission-card {
  background: var(--surface-2);
}
.mc-mission-selo {
  font-size: 32px;
  margin-bottom: 10px;
}
.mc-mission-name {
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 600;
  color: var(--royal);
  margin: 0 0 8px;
}
[data-theme="dark"] .mc-mission-name { color: var(--text); }
.mc-mission-desc {
  font-size: 13px;
  color: var(--ink-soft);
  margin: 0;
  line-height: 1.5;
}
.mc-missions-cta {
  display: inline-block;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--azulejo);
  text-decoration: none;
  padding: 10px 24px;
  border: 1.5px solid var(--azulejo);
  border-radius: var(--radius);
  transition: background .15s, color .15s;
}
.mc-missions-cta:hover {
  background: var(--azulejo);
  color: #fff;
}
[data-theme="dark"] .mc-missions-cta {
  color: var(--gold);
  border-color: var(--gold);
}
[data-theme="dark"] .mc-missions-cta:hover {
  background: var(--gold);
  color: #0a0f1e;
}

/* --- Bibliography --------------------------------------------------- */
.mc-bib-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.mc-bib-item {
  padding: 0 0 0 16px;
  border-left: 3px solid var(--border);
}
[data-theme="dark"] .mc-bib-item {
  border-left-color: var(--gold);
}
.mc-bib-author {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
  margin: 0 0 2px;
}
[data-theme="dark"] .mc-bib-author { color: var(--text); }
.mc-bib-work {
  font-size: 14px;
  color: var(--ink-soft);
  margin: 0 0 2px;
  line-height: 1.5;
}
.mc-bib-note {
  font-size: 12.5px;
  color: var(--ink-muted);
  font-style: italic;
  margin: 0;
}
.mc-bib-link {
  font-size: 13px;
}

/* --- Methodology grid ----------------------------------------------- */
.mc-method-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-bottom: 28px;
}
@media (max-width: 600px) {
  .mc-method-grid {
    grid-template-columns: 1fr;
  }
}
.mc-method-item {
  padding: 20px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
[data-theme="dark"] .mc-method-item {
  background: var(--surface-2);
}
.mc-method-item h3 {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  color: var(--azulejo);
  margin: 0 0 8px;
}
[data-theme="dark"] .mc-method-item h3 { color: var(--gold); }
.mc-method-item p {
  font-size: 13.5px;
  color: var(--ink-soft);
  margin: 0;
  line-height: 1.55;
}

/* Classification callout */
.mc-classification {
  padding: 20px 24px;
  background: var(--light-blue);
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  margin-bottom: 0;
}
[data-theme="dark"] .mc-classification {
  background: var(--surface-2);
}
.mc-classification p {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 10px;
}
[data-theme="dark"] .mc-classification p { color: var(--text); }
.mc-classification ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.mc-classification li {
  font-size: 13.5px;
  color: var(--ink-soft);
  padding: 8px 12px;
  line-height: 1.5;
  border-left: 3px solid var(--gold);
  background: rgba(0, 61, 165, .03);
  border-radius: 0 6px 6px 0;
  margin-bottom: 6px;
}
[data-theme="dark"] .mc-classification li {
  background: rgba(255, 255, 255, .03);
}
.mc-classification li:has(.mc-tag-oral) { border-left-color: #856404; }
.mc-classification li:has(.mc-tag-ancora) { border-left-color: #0c5460; }
.mc-classification li:has(.mc-tag-lenda) { border-left-color: #721c24; }
.mc-classification li:has(.mc-tag-arqueol) { border-left-color: #4a2d6b; }
[data-theme="dark"] .mc-classification li:has(.mc-tag-oral) { border-left-color: #d4b95c; }
[data-theme="dark"] .mc-classification li:has(.mc-tag-ancora) { border-left-color: #7cc9d8; }
[data-theme="dark"] .mc-classification li:has(.mc-tag-lenda) { border-left-color: #d48a92; }
[data-theme="dark"] .mc-classification li:has(.mc-tag-arqueol) { border-left-color: #c4a8e0; }
.mc-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 100px;
  margin-right: 6px;
}
.mc-tag-oral { background: #fff3cd; color: #856404; }
[data-theme="dark"] .mc-tag-oral { background: #3a3018; color: #d4b95c; }
.mc-tag-ancora { background: #d1ecf1; color: #0c5460; }
[data-theme="dark"] .mc-tag-ancora { background: #0f2e3a; color: #7cc9d8; }
.mc-tag-lenda { background: #f8d7da; color: #721c24; }
[data-theme="dark"] .mc-tag-lenda { background: #3a1a1e; color: #d48a92; }
.mc-tag-arqueol { background: #e8dff0; color: #4a2d6b; }
[data-theme="dark"] .mc-tag-arqueol { background: #2a1e3a; color: #c4a8e0; }

/* --- Entry block (Por onde queres começar?) ------------------------- */
.mc-entry-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.mc-entry-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 20px 14px;
  background: var(--bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  text-decoration: none;
  text-align: center;
  transition: border-color .15s, box-shadow .15s;
}
.mc-entry-card:hover {
  border-color: var(--azulejo);
  box-shadow: var(--shadow-sm);
}
[data-theme="dark"] .mc-entry-card {
  background: var(--surface-2);
  border-color: var(--border);
}
[data-theme="dark"] .mc-entry-card:hover {
  border-color: var(--gold);
}
.mc-entry-card-icon {
  font-size: 24px;
}
.mc-entry-card-label {
  font-family: var(--serif);
  font-size: 14.5px;
  font-weight: 600;
  color: var(--royal);
  line-height: 1.3;
}
[data-theme="dark"] .mc-entry-card-label { color: var(--text); }

/* --- Question chips (static suggestion block) ---------------------- */
.mc-question-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.mc-question-chip {
  display: inline-block;
  font-family: var(--serif);
  font-size: 14.5px;
  font-style: italic;
  color: var(--azulejo);
  text-decoration: none;
  padding: 12px 20px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  background: var(--bg);
  line-height: 1.45;
  transition: border-color .15s, box-shadow .15s;
}
.mc-question-chip:hover {
  border-color: var(--azulejo);
  box-shadow: var(--shadow-sm);
}
[data-theme="dark"] .mc-question-chip {
  color: var(--gold);
  background: var(--surface-2);
  border-color: var(--border);
}
[data-theme="dark"] .mc-question-chip:hover {
  border-color: var(--gold);
}

/* --- Journey CTA hierarchy ----------------------------------------- */
.mc-journey-dominant {
  max-width: 540px;
  margin: 0 auto 28px;
  padding: 28px;
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  background: var(--light-blue);
  text-align: left;
}
[data-theme="dark"] .mc-journey-dominant {
  background: var(--surface-2);
}
.mc-journey-dominant-title {
  font-family: var(--serif);
  font-size: clamp(18px, 2.2vw, 22px);
  font-weight: 600;
  color: var(--royal);
  margin: 0 0 8px;
  line-height: 1.3;
}
[data-theme="dark"] .mc-journey-dominant-title { color: var(--text); }
.mc-journey-dominant-desc {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.55;
  margin: 0 0 18px;
  max-width: 480px;
}
[data-theme="dark"] .mc-journey-dominant-desc { color: var(--text-muted); }
.mc-journey-dominant-cta {
  display: inline-block;
  font-family: var(--sans);
  font-size: 13.5px;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  padding: 10px 24px;
  background: var(--azulejo);
  border-radius: var(--radius);
  transition: background .15s;
}
.mc-journey-dominant-cta:hover {
  background: var(--royal);
}
[data-theme="dark"] .mc-journey-dominant-cta {
  background: var(--gold);
  color: #0a0f1e;
}
[data-theme="dark"] .mc-journey-dominant-cta:hover {
  background: #e8ab3a;
}

.mc-journey-secondary {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 24px;
}
.mc-journey-secondary-link {
  display: inline-block;
  font-family: var(--sans);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--azulejo);
  text-decoration: none;
  padding: 10px 24px;
  border: 1.5px solid var(--azulejo);
  border-radius: var(--radius);
  transition: background .15s, color .15s;
}
.mc-journey-secondary-link:hover {
  background: var(--azulejo);
  color: #fff;
}
[data-theme="dark"] .mc-journey-secondary-link {
  color: var(--gold);
  border-color: var(--gold);
}
[data-theme="dark"] .mc-journey-secondary-link:hover {
  background: var(--gold);
  color: #0a0f1e;
}

.mc-journey-bridge {
  max-width: 540px;
  margin: 24px auto 20px;
  font-family: var(--serif);
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-muted);
  text-align: center;
}
[data-theme="dark"] .mc-journey-bridge { color: var(--text-muted); }

.mc-journey-tertiary {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}
.mc-journey-tertiary-link {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--ink-muted);
  text-decoration: none;
}
.mc-journey-tertiary-link:hover {
  color: var(--azulejo);
  text-decoration: underline;
}
[data-theme="dark"] .mc-journey-tertiary-link { color: var(--text-muted); }
[data-theme="dark"] .mc-journey-tertiary-link:hover { color: var(--gold); }

/* --- Mobile (new elements) ----------------------------------------- */
@media (max-width: 600px) {
  .mc-entry-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .mc-entry-card {
    padding: 16px 10px;
  }
  .mc-question-chips {
    flex-direction: column;
  }
  .mc-journey-dominant {
    padding: 20px 18px;
  }
  .mc-journey-secondary {
    flex-direction: column;
    align-items: center;
  }
  .mc-journey-secondary-link {
    width: 100%;
    text-align: center;
    max-width: 300px;
  }
  .mc-journey-tertiary {
    flex-direction: column;
    gap: 10px;
  }
}
