/* ===================================================================
   Bright Future Community Development Services Inc. — Marketplace
   Marketplace Pages (Marketplace, NFT Detail, Creator Profile, Login)
   Mirrors the visual language of index.html / profile.css
   (cream / deep-green / gold). Loaded together with enhancements.css,
   which supplies nav-dropdown, reveal, badge, platform-card, nft-card,
   creator-card, and footer-links styles shared across the site.
   =================================================================== */

:root {
  --cream: #f8f2e4;
  --cream-2: #efe5cf;
  --deep-green: #132216;
  --green: #34492f;
  --soft-green: #dce5d2;
  --gold: #d9a329;
  --gold-dark: #b98212;
  --brown: #6d4a1f;
  --text: #1c1c1c;
  --muted: #6b665d;
  --white: #ffffff;
  --shadow: 0 24px 60px rgba(19, 34, 22, 0.14);
  --radius-lg: 28px;
  --radius-md: 18px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Georgia, "Times New Roman", serif;
  background: var(--cream);
  color: var(--text);
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(var(--max), calc(100% - 40px));
  margin: auto;
}

/* ---------- Header / Nav (shared with index.html) ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(248, 242, 228, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(19, 34, 22, 0.08);
}

.navbar {
  min-height: 96px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand img {
  width: 86px;
  height: auto;
}

.brand-text {
  font-family: Arial, sans-serif;
  font-size: 13px;
  line-height: 1.2;
  font-weight: 700;
  max-width: 240px;
  color: var(--deep-green);
  letter-spacing: 0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  font-family: Arial, sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--deep-green);
}

.nav-links a {
  opacity: 0.86;
}

.nav-links a:hover,
.nav-links a.active {
  opacity: 1;
  color: var(--gold-dark);
}

.nav-cta {
  background: var(--gold);
  color: var(--deep-green);
  padding: 13px 22px;
  border-radius: 999px;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(217, 163, 41, 0.22);
}

.mobile-toggle {
  display: none;
  border: 0;
  background: var(--deep-green);
  color: var(--white);
  border-radius: 12px;
  padding: 10px 13px;
  font-size: 20px;
  cursor: pointer;
}

/* ---------- Breadcrumb ---------- */

.breadcrumb {
  font-family: Arial, sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  padding: 22px 0 0;
}

.breadcrumb a {
  color: var(--gold-dark);
}

.breadcrumb span {
  margin: 0 6px;
  opacity: 0.6;
}

/* ---------- Shared section / typography (mirrors index.html) ---------- */

section {
  padding: 92px 0;
}

.eyebrow {
  font-family: Arial, sans-serif;
  color: var(--gold-dark);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 18px;
}

.section-title {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 54px;
}

.section-title h2 {
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1;
  color: var(--deep-green);
  letter-spacing: -0.04em;
  margin-bottom: 18px;
}

.section-title p {
  font-family: Arial, sans-serif;
  color: var(--muted);
  font-size: 17px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.card {
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid rgba(19, 34, 22, 0.1);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: 0 16px 42px rgba(19, 34, 22, 0.08);
}

.card h3 {
  color: var(--deep-green);
  font-size: 26px;
  line-height: 1.1;
  margin-bottom: 14px;
}

.card p,
.card li {
  font-family: Arial, sans-serif;
  color: var(--muted);
  font-size: 15px;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 24px;
  border-radius: 999px;
  font-family: Arial, sans-serif;
  font-weight: 800;
  font-size: 14px;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: var(--gold);
  color: var(--deep-green);
  box-shadow: 0 14px 34px rgba(217, 163, 41, 0.26);
}

.btn-outline {
  border-color: rgba(19, 34, 22, 0.28);
  color: var(--deep-green);
  background: rgba(255, 255, 255, 0.45);
}

/* ---------- Page banner (used by all marketplace-family pages) ---------- */

.page-banner {
  padding: 56px 0 46px;
  background:
    radial-gradient(circle at 85% 10%, rgba(217, 163, 41, 0.28), transparent 30%),
    radial-gradient(circle at 10% 85%, rgba(52, 73, 47, 0.18), transparent 32%),
    var(--cream);
  text-align: center;
}

.page-banner h1 {
  font-size: clamp(38px, 5.5vw, 60px);
  line-height: 1;
  color: var(--deep-green);
  letter-spacing: -0.04em;
  margin-bottom: 16px;
}

.page-banner p {
  font-family: Arial, sans-serif;
  color: var(--muted);
  font-size: 17px;
  max-width: 640px;
  margin: 0 auto;
}

/* ---------- Marketplace toolbar: search / filters / categories ---------- */

.marketplace-toolbar {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(19, 34, 22, 0.1);
  border-radius: var(--radius-lg);
  padding: 26px 28px;
  box-shadow: 0 16px 42px rgba(19, 34, 22, 0.08);
  margin-bottom: 40px;
}

.search-row {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
}

.search-input {
  flex: 1;
  padding: 14px 18px;
  border-radius: 999px;
  border: 1px solid rgba(19, 34, 22, 0.18);
  background: var(--white);
  font-family: Arial, sans-serif;
  font-size: 14px;
  color: var(--text);
  outline: none;
}

.search-input:focus {
  border-color: var(--gold);
}

.category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.category-tab {
  border: 1px solid rgba(19, 34, 22, 0.18);
  background: var(--white);
  color: var(--deep-green);
  font-family: Arial, sans-serif;
  font-size: 13px;
  font-weight: 700;
  padding: 9px 18px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.category-tab.active,
.category-tab:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--deep-green);
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.filter-select {
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(19, 34, 22, 0.18);
  background: var(--white);
  font-family: Arial, sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--deep-green);
}

.filter-label {
  font-family: Arial, sans-serif;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-right: 4px;
}

/* ---------- NFT Detail page ---------- */

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 54px;
  align-items: start;
}

.detail-media {
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--deep-green), var(--green));
  display: grid;
  place-items: center;
  font-size: 96px;
  color: var(--white);
  box-shadow: var(--shadow);
}

.detail-panel .eyebrow {
  margin-bottom: 10px;
}

.detail-panel h1 {
  font-size: clamp(30px, 4vw, 44px);
  color: var(--deep-green);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}

.detail-creator {
  font-family: Arial, sans-serif;
  color: var(--muted);
  font-size: 15px;
  margin-bottom: 24px;
}

.detail-creator strong {
  color: var(--deep-green);
}

.detail-price-card {
  background: var(--white);
  border: 1px solid rgba(19, 34, 22, 0.1);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 24px;
}

.detail-price-card .label {
  font-family: Arial, sans-serif;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 6px;
}

.detail-price-card .price {
  font-family: Arial, sans-serif;
  font-weight: 900;
  font-size: 32px;
  color: var(--gold-dark);
  margin-bottom: 18px;
}

.detail-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.detail-description p {
  font-family: Arial, sans-serif;
  color: var(--muted);
  font-size: 15.5px;
  margin-bottom: 16px;
}

.utility-list {
  list-style: none;
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.utility-list li {
  font-family: Arial, sans-serif;
  font-size: 14px;
  color: var(--text);
  padding-left: 24px;
  position: relative;
}

.utility-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--gold-dark);
  font-weight: 900;
}

/* ---------- Creator profile page ---------- */

.creator-hero {
  background: var(--deep-green);
  border-radius: var(--radius-lg);
  padding: 54px 40px;
  text-align: center;
  color: var(--white);
  box-shadow: var(--shadow);
}

.creator-hero .creator-avatar-lg {
  width: 108px;
  height: 108px;
  border-radius: 50%;
  margin: 0 auto 22px;
  display: grid;
  place-items: center;
  font-size: 44px;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  color: var(--white);
}

.creator-hero h1 {
  font-size: clamp(30px, 4vw, 44px);
  margin-bottom: 10px;
}

.creator-hero .creator-role {
  font-family: Arial, sans-serif;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 18px;
}

.creator-hero p {
  font-family: Arial, sans-serif;
  color: rgba(255, 255, 255, 0.78);
  font-size: 16px;
  max-width: 620px;
  margin: 0 auto 26px;
}

.creator-stats-row {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.creator-stat strong {
  display: block;
  color: var(--gold);
  font-size: 28px;
  font-family: Arial, sans-serif;
}

.creator-stat span {
  font-family: Arial, sans-serif;
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ---------- Login page ---------- */

.login-wrap {
  max-width: 440px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 46px 40px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(19, 34, 22, 0.08);
}

.login-wrap h1 {
  font-size: 34px;
  color: var(--deep-green);
  margin-bottom: 8px;
  text-align: center;
}

.login-wrap .lede {
  font-family: Arial, sans-serif;
  color: var(--muted);
  font-size: 14.5px;
  text-align: center;
  margin-bottom: 30px;
}

.login-form-group {
  margin-bottom: 18px;
}

.login-form-group label {
  display: block;
  font-family: Arial, sans-serif;
  font-size: 12.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gold-dark);
  margin-bottom: 8px;
}

.login-form-group input {
  width: 100%;
  padding: 13px 16px;
  border-radius: 12px;
  border: 1px solid rgba(19, 34, 22, 0.18);
  background: var(--cream);
  font-family: Arial, sans-serif;
  font-size: 14px;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s ease;
}

.login-form-group input:focus {
  border-color: var(--gold);
}

.login-submit {
  width: 100%;
  margin-top: 6px;
}

.login-note {
  margin-top: 22px;
  padding: 12px 14px;
  background: rgba(217, 163, 41, 0.12);
  border: 1px dashed rgba(217, 163, 41, 0.4);
  border-radius: 12px;
  font-family: Arial, sans-serif;
  font-size: 12.5px;
  color: var(--brown);
  line-height: 1.55;
  text-align: center;
}

.login-divider {
  text-align: center;
  font-family: Arial, sans-serif;
  font-size: 12px;
  color: var(--muted);
  margin: 22px 0;
}

/* ---------- Empty state ---------- */

.empty-state {
  text-align: center;
  padding: 40px 20px;
  font-family: Arial, sans-serif;
  color: var(--muted);
  font-size: 14px;
}

/* ---------- Footer ---------- */

footer {
  padding: 48px 0;
  text-align: center;
  font-family: Arial, sans-serif;
  color: var(--muted);
  font-size: 14px;
}

.footer-logo {
  width: 92px;
  margin: 0 auto 18px;
}

/* ---------- Responsive ---------- */

@media (max-width: 980px) {
  .mobile-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    left: 20px;
    right: 20px;
    top: 98px;
    background: var(--cream);
    border: 1px solid rgba(19, 34, 22, 0.1);
    border-radius: 22px;
    padding: 24px;
    flex-direction: column;
    align-items: flex-start;
    box-shadow: var(--shadow);
    display: none;
  }

  .nav-links.active {
    display: flex;
  }

  .grid-3,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .creator-stats-row {
    gap: 24px;
  }
}

@media (max-width: 560px) {
  .navbar {
    min-height: 84px;
  }

  .brand img {
    width: 68px;
  }

  .brand-text {
    font-size: 11px;
    max-width: 170px;
  }

  section {
    padding: 68px 0;
  }

  .search-row {
    flex-direction: column;
  }

  .marketplace-toolbar,
  .login-wrap,
  .creator-hero {
    padding: 28px 22px;
  }
}
