/* ============================================================
   MONÈRA — Marketplace.cshtml.css
   Resources & Marketplace Page  |  Static Razor Page
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400;1,600&family=Inter:wght@300;400;500;600&display=swap');

/* ── Tokens ── */
:root {
  --navy:       #022F38;
  --dark-navy:  #011C22;
  --deep-teal:  #063844;
  --gold:       #CDA77B;
  --warm-white: #F8F7F4;
  --text:       #112228;
  --muted:      #68757A;
  --border:     #e9e4dc;
  --shadow-sm:  0 2px 12px rgba(1,28,34,.07);
  --shadow-md:  0 6px 28px rgba(1,28,34,.11);
}

*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--warm-white);
  color: var(--text);
  font-size: 15px;
  line-height: 1.65;
  margin: 0;
}

.mp-container { max-width: 1100px; }

/* ─────────────────────────────────────────
   BREADCRUMB
───────────────────────────────────────── */
.mp-breadcrumb {
  padding: 16px 0 0;
  font-size: 13px;
  color: var(--muted);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}
.mp-breadcrumb a { color: var(--muted); text-decoration: none; transition: color .2s; }
.mp-breadcrumb a:hover { color: var(--gold); }
.mp-sep { margin: 0 7px; }

/* ─────────────────────────────────────────
   PAGE HEADER
───────────────────────────────────────── */
.mp-header { padding: 26px 0 36px; }

.mp-header h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(36px, 5vw, 54px);
  font-weight: 600;
  color: var(--navy);
  line-height: 1.1;
  margin: 0 0 10px;
}

.mp-gold-rule {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
}
.mp-gold-rule::before,
.mp-gold-rule::after {
  content: '';
  display: block;
  height: 1px;
  width: 32px;
  background: var(--gold);
}
.mp-diamond {
  width: 6px;
  height: 6px;
  background: var(--gold);
  transform: rotate(45deg);
  display: inline-block;
}

.mp-header p {
  font-size: 14.5px;
  color: var(--muted);  
  line-height: 1.75;
  margin: 0;
}

/* ─────────────────────────────────────────
   FEATURED RESOURCE
───────────────────────────────────────── */
.featured-resource {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 6px;
  box-shadow: var(--shadow-sm);
  padding: 0;
  overflow: hidden;
  margin-bottom: 48px;
}

.featured-resource .fr-inner {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 0;
}

/* Left text block */
.fr-left {
  padding: 40px 36px 36px;
}
.fr-category {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}
.fr-left h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(26px, 3.2vw, 38px);
  font-weight: 600;
  color: var(--navy);
  line-height: 1.15;
  margin: 0 0 16px;
}
.fr-left .fr-desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 20px;
  max-width: 400px;
}
.fr-includes-label {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1.3px;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 12px;
}
.fr-includes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 24px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.fr-includes li {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  font-size: 13px;
  color: var(--text);
}
.fr-includes li i {
  color: var(--gold);
  font-size: 15px;
  flex-shrink: 0;
  margin-top: 1px;
}

/* Center image block */
.fr-image {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 16px;
  min-width: 320px;
}
.fr-image img {
  max-height: 260px;
  width: auto;
  object-fit: contain;
  display: block;
}

/* Right price block */
.fr-price-block {
  background: #fff;
  border-left: 1px solid var(--border);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-width: 180px;
  align-self: stretch;
}
.fr-price-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--gold);
  text-transform: uppercase;
}
.fr-price {
  font-family: 'Cormorant Garamond', serif;
  font-size: 42px;
  font-weight: 600;
  color: var(--navy);
  line-height: 1;
}
.fr-price sup {
  font-size: 16px;
  font-weight: 500;
  vertical-align: super;
}
.fr-price .fr-currency {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  margin-left: 4px;
}

/* ─────────────────────────────────────────
   BUTTONS
───────────────────────────────────────── */
.btn-gold {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--gold);
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.6px;
  padding: 12px 22px;
  border: none;
  border-radius: 3px;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background .22s;
}
.btn-gold:hover { background: #b8905f; color: #fff; }

.btn-outline-navy {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: transparent;
  color: var(--navy);
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 500;
  padding: 9px 16px;
  border: 1.5px solid var(--border);
  border-radius: 3px;
  text-decoration: none;
  cursor: pointer;
  transition: border-color .2s, color .2s;
  width: 100%;
  justify-content: center;
  margin-block:5px;
}
.btn-outline-navy:hover {
  border-color: var(--navy);
  color: var(--navy);
}

.btn-gold-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--gold);
  font-family: 'Inter', sans-serif;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.7px;
  padding: 12px 28px;
  border: 1.5px solid var(--gold);
  border-radius: 3px;
  text-decoration: none;
  transition: background .22s, color .22s;
}
.btn-gold-outline:hover { background: var(--gold); color: #fff; }

/* ─────────────────────────────────────────
   CATEGORY NAV
───────────────────────────────────────── */
.category-nav {
  padding: 32px 0 36px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 44px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--gold) transparent;
}
.category-nav::-webkit-scrollbar { height: 3px; }
.category-nav::-webkit-scrollbar-track { background: transparent; }
.category-nav::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 2px; }
.category-nav .cn-list {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: nowrap;
  gap: 0;
}
.cn-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  padding: 6px 16px 12px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: border-color .2s, color .2s;
  text-align: center;
  flex: 1 0 90px;
}
.cn-item.active  { border-bottom-color: var(--gold); }
.cn-item:hover   { border-bottom-color: var(--gold); }
.cn-icon {
  font-size: 22px;
  color: var(--muted);
  line-height: 1;
}
.cn-item.active .cn-icon,
.cn-item:hover  .cn-icon { color: var(--gold); }
.cn-cat-logo {
  width: 28px;
  height: 28px;
  object-fit: cover;
  border-radius: 6px;
  display: block;
}
.cn-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  line-height: 1.3;
}
.cn-item.active .cn-label,
.cn-item:hover  .cn-label { color: var(--gold); }

/* ─────────────────────────────────────────
   ALL RESOURCES HEADER + FILTERS
───────────────────────────────────────── */
.resources-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
}
.resources-header h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 26px;
  font-weight: 600;
  color: var(--navy);
  margin: 0;
}
.filter-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.filter-select {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 8px 32px 8px 12px;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%2368757A'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  cursor: pointer;
  outline: none;
  transition: border-color .2s;
}
.filter-select:focus { border-color: var(--gold); }
.sort-label {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}

/* ─────────────────────────────────────────
   RESOURCE CARD (marketplace grid)
───────────────────────────────────────── */
.resource-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 5px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: box-shadow .25s, transform .25s;
}
.resource-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.rc-img-wrap {
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 180px;
  overflow: hidden;
  padding: 24px 20px;
}
.rc-img-wrap img {
  max-height: 150px;
  width: auto;
  object-fit: contain;
  display: block;
}

/* Book cover placeholder */
.rc-book-cover {
  background: var(--navy);
  width: 100%;
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.rc-book-cover .book-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,.9);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  line-height: 1.45;
}
.rc-book-cover .book-brand {
  font-size: 9px;
  color: var(--gold);
  letter-spacing: 1px;
  text-transform: uppercase;
  text-align: center;
  margin-top: 12px;
}

.rc-body {
  padding: 18px 18px 14px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.rc-category {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 6px;
}
.rc-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 17px;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.3;
  margin-bottom: 8px;
}
.rc-desc {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 12px;
  flex: 1;
}
.rc-badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.rc-badge {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--muted);
  background: var(--warm-white);
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 3px 8px;
}
.rc-price {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 12px;
  line-height: 1;
}
.rc-price .rc-usd {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
  margin-left: 3px;
  vertical-align: middle;
}

/* ─────────────────────────────────────────
   FREE RESOURCES SECTION
───────────────────────────────────────── */
.free-resources-section {
  padding: 48px 0 44px;
}
.free-resources-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 6px;
}
.free-resources-header h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 26px;
  font-weight: 600;
  color: var(--navy);
  margin: 0;
}
.view-all-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--gold);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  margin-top: 4px;
  transition: opacity .2s;
}
.view-all-link:hover { opacity: .75; color: var(--gold); }
.free-subtitle {
  font-size: 13.5px;
  color: var(--muted);
  margin-bottom: 28px;
}

.btn-outline-view {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: transparent;
    color: var(--muted);
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 500;
    padding: 9px 16px;
    border: 1.5px solid var(--border);
    border-radius: 3px;
    text-decoration: none;
    cursor: pointer;
    transition: border-color .2s, color .2s;
    width: 100%;
    justify-content: center;
}

    .btn-outline-view:hover {
        border-color: var(--navy);
        color: var(--navy);
    }

.free-resource-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 5px;
  box-shadow: var(--shadow-sm);
  padding: 22px 20px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  height: 100%;
  transition: box-shadow .22s, transform .22s;
}
.free-resource-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.frc-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.frc-icon i {
  font-size: 19px;
  color: var(--muted);
}
.frc-info { flex: 1; }
.frc-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 5px;
  line-height: 1.3;
}
.frc-desc {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.55;
  margin-bottom: 8px;
}
.frc-format {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.8px;
  color: var(--muted);
}

/* ─────────────────────────────────────────
   CONSULTATION BANNER
───────────────────────────────────────── */
.consultation-banner {
  background: var(--dark-navy);
  border-radius: 6px;
  overflow: hidden;
  position: relative;
  margin-bottom: 52px;
  min-height: 220px;
  display: flex;
  align-items: stretch;
}
.consultation-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, #011C22 0%, #022F38 45%, rgba(6,56,68,.7) 100%);
  z-index: 0;
}
.cb-bg-img {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 40%;
  object-fit: cover;
  opacity: .28;
}
.cb-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  width: 100%;
  padding: 48px 52px;
  gap: 0;
}
.cb-left {
  flex: 1;
  padding-right: 32px;
}
.cb-left h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 600;
  color: #fff;
  line-height: 1.2;
  margin: 0 0 12px;
}
.cb-left p {
  font-size: 14px;
  color: rgba(255,255,255,.7);
  line-height: 1.65;
  margin: 0;
  max-width: 340px;
}
.cb-center {
  text-align: center;
  padding: 0 40px;
  border-left: 1px solid rgba(255,255,255,.12);
  border-right: 1px solid rgba(255,255,255,.12);
}
.cb-starting {
  font-size: 11px;
  font-weight: 500;
  color: var(--gold);
  letter-spacing: 0.8px;
  margin-bottom: 4px;
}
.cb-price {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 600;
  color: #fff;
  line-height: 1;
  white-space: nowrap;
}
.cb-right {
  padding-left: 40px;
}

/* ─────────────────────────────────────────
   NEWSLETTER CARD
───────────────────────────────────────── */
.newsletter-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 36px 44px;
  margin-bottom: 52px;
  box-shadow: var(--shadow-sm);
}
.nl-icon-wrap {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 1.5px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.nl-icon-wrap i { font-size: 22px; color: var(--gold); }
.nl-left { display: flex; align-items: flex-start; gap: 20px; }
.nl-text h4 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-weight: 600;
  color: var(--navy);
  margin: 0 0 6px;
}
.nl-text p {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.65;
  margin: 0;
}
.nl-form {
  display: flex;
  gap: 10px;
  align-items: stretch;
  flex-wrap: wrap;
}
.nl-form input {
  flex: 1;
  min-width: 160px;
  padding: 12px 16px;
  border: 1px solid #ddd5c8;
  border-radius: 3px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: var(--text);
  background: var(--warm-white);
  outline: none;
  transition: border-color .2s;
}
.nl-form input::placeholder { color: #aaa; }
.nl-form input:focus { border-color: var(--gold); }

/* ─────────────────────────────────────────
   FAQ SECTION
───────────────────────────────────────── */
.faq-section { padding-bottom: 60px; }

.faq-section h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 28px;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.faq-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 22px 20px;
  box-shadow: var(--shadow-sm);
}
.faq-question {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  cursor: pointer;
}
.faq-q-left {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.faq-q-left i.faq-icon {
  font-size: 16px;
  color: var(--muted);
  flex-shrink: 0;
  margin-top: 2px;
}
.faq-q-text {
  font-size: 14px;
  font-weight: 500;
  color: var(--navy);
  line-height: 1.4;
}
.faq-toggle {
  font-size: 14px;
  color: var(--muted);
  flex-shrink: 0;
  margin-top: 2px;
  transition: transform .2s;
}
.faq-answer {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.65;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  display: none;
}
.faq-item.open .faq-answer { display: block; }
.faq-item.open .faq-toggle { transform: rotate(180deg); }

/* ─────────────────────────────────────────
   MARKETPLACE GRID SPACING
───────────────────────────────────────── */
.marketplace-grid-section { margin-bottom: 0; }
.marketplace-grid-section .row { row-gap: 24px; }

/* ─────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────── */
@media (max-width: 1100px) {
  .fr-image { min-width: 240px; }
}

@media (max-width: 991.98px) {
  .featured-resource .fr-inner {
    grid-template-columns: 1fr;
  }
  .fr-price-block {
    border-left: none;
    border-top: 1px solid var(--border);
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 24px 32px;
    min-width: unset;
  }
  .fr-image { min-width: unset; border-top: 1px solid var(--border); }
  .cb-inner { flex-direction: column; padding: 36px 28px; gap: 24px; }
  .cb-center { border: none; padding: 0; }
  .cb-right { padding-left: 0; }
  .faq-grid { grid-template-columns: 1fr 1fr; }
  .newsletter-card { padding: 28px 24px; }
}

@media (max-width: 767.98px) {
  .cn-item { min-width: 80px; }
  .resources-header { flex-direction: column; align-items: flex-start; }
  .filter-bar { width: 100%; }
  .faq-grid { grid-template-columns: 1fr; }
  .fr-includes { grid-template-columns: 1fr; }
  .nl-left { flex-direction: column; gap: 14px; }
  .nl-form { flex-direction: column; }
  .nl-form .btn-gold { width: 100%; justify-content: center; }
  .cb-bg-img { width: 100%; opacity: .15; }
  .newsletter-card { padding: 24px 18px; }
  .cb-inner { padding: 28px 20px; }
  .btn-gold, .btn-gold-outline { width: 100%; justify-content: center; }
}

/* Category nav links — moved from resources.cshtml inline style */
.category-nav .cn-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .4rem;
    text-decoration: none;
    color: inherit;
    width: 100%;
    height: 100%;
    cursor: pointer;
}
