/* =============================================
   MEDIALTERRE — style.css
   Bootstrap 5 custom theme
   ============================================= */

/* ---- Variables ---- */
:root {
  --brand-dark:   #383838;
  --brand-light:  #d4cfc7;
  --brand-accent: #665d1e;
  --brand-bg:     #f8f7f5;
  --font-sans:    'Inter', ui-sans-serif, system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, monospace;
}

/* ---- Base ---- */
*,
*::before,
*::after { box-sizing: border-box; }

body {
  font-family: var(--font-sans);
  background-color: var(--brand-bg);
  color: var(--brand-dark);
  -webkit-font-smoothing: antialiased;
}

/* ---- Utility colours ---- */
.brand-dark   { color: var(--brand-dark) !important; }
.brand-accent { color: var(--brand-accent) !important; }
.brand-light-border { border-color: var(--brand-light) !important; }

/* ---- Typography helpers ---- */
.letter-spacing { letter-spacing: 0.08em; font-size: .7rem; }
.font-mono      { font-family: var(--font-mono); }

/* =============================================
   NAVBAR
   ============================================= */
.navbar-wrapper {
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 1040;
}

.nav-link-custom {
  color: rgba(56,56,56,.65) !important;
  font-size: .875rem;
  font-weight: 500;
  transition: color .2s ease;
  padding: .4rem .6rem !important;
}
.nav-link-custom:hover { color: var(--brand-dark) !important; }

.logo-text { letter-spacing: -.02em; font-size: 1.4rem !important; }

/* =============================================
   BUTTONS
   ============================================= */
.btn-brand-dark {
  background-color: var(--brand-dark);
  color: #fff;
  border: none;
  border-radius: .6rem;
  font-size: .875rem;
  transition: background .2s ease, box-shadow .2s ease;
}
.btn-brand-dark:hover,
.btn-brand-dark:focus {
  background-color: var(--brand-accent);
  color: #fff;
  box-shadow: 0 4px 14px rgba(102,93,30,.3);
}

/* Filter pills */
.btn-filter {
  background: #fff;
  color: rgba(56,56,56,.65);
  border: 1px solid var(--brand-light);
  border-radius: 50rem;
  font-size: .8125rem;
  font-weight: 500;
  padding: .5rem 1.1rem;
  white-space: nowrap;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.btn-filter:hover {
  background: rgba(212,207,199,.2);
  color: var(--brand-dark);
}
.btn-filter.active {
  background: var(--brand-dark);
  color: #fff;
  border-color: var(--brand-dark);
}
.btn-filter-icon {
  background: #fff;
  color: rgba(56,56,56,.4);
  border: 1px solid var(--brand-light);
  border-radius: 50rem;
  padding: .5rem .75rem;
  transition: color .2s ease;
}
.btn-filter-icon:hover { color: var(--brand-dark); }

/* =============================================
   HERO
   ============================================= */
.hero-section { padding-top: 2rem; }

/* Accent badge */
.badge-accent {
  background: rgba(102,93,30,.08);
  color: var(--brand-accent);
  border: 1px solid rgba(102,93,30,.18);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
}

/* Search */
.search-input {
  border-color: var(--brand-light) !important;
  font-size: .9375rem;
  color: var(--brand-dark);
  transition: border-color .25s ease, box-shadow .25s ease;
}
.search-input::placeholder { color: rgba(56,56,56,.3); }
.search-input:focus {
  border-color: var(--brand-accent) !important;
  box-shadow: 0 0 0 3px rgba(102,93,30,.1) !important;
  outline: none;
}
.search-icon { font-size: 1rem; color: rgba(56,56,56,.3); }

/* Trust card */
.trust-card { border-radius: 2rem !important; }

.trust-circle {
  width: 130px; height: 130px;
  background: rgba(102,93,30,.05);
  border-radius: 50%;
  top: -40px; right: -40px;
  transition: transform .4s ease;
}
.trust-card:hover .trust-circle { transform: scale(1.15); }

.trust-icon-wrap {
  width: 48px; height: 48px;
  background: rgba(102,93,30,.1);
  border-radius: .75rem;
  flex-shrink: 0;
}

/* =============================================
   LISTING CARDS
   ============================================= */
.listing-card {
  background: #fff;
  border: 6px solid rgba(212,207,199,.55) !important;
  border-radius: 1rem;
  padding: 1.75rem;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  transition: border-color .25s ease, box-shadow .25s ease;
  height: 100%;
}
.listing-card:hover {
  border-color: var(--brand-accent) !important;
  box-shadow: 0 12px 40px rgba(56,56,56,.06) !important;
}

/* Category badge */
.cat-badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .3rem .75rem;
  border-radius: 50rem;
  background: rgba(212,207,199,.25);
  color: var(--brand-dark);
  border: 1px solid var(--brand-light);
  font-size: .6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
}

/* Listing title */
.listing-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--brand-dark);
  transition: color .2s ease;
}
.listing-card:hover .listing-title { color: var(--brand-accent); }

/* Trend dot */
.trend-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  display: inline-block;
}
.trend-up     { background: var(--brand-accent); }
.trend-down   { background: #c50404; }
.trend-stable { background: var(--brand-light); }

/* Data rows */
.data-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .875rem;
}
.data-label { color: rgba(56,56,56,.45); }
.data-value { font-family: var(--font-mono); font-weight: 500; color: var(--brand-dark); }
.data-value.price { font-weight: 700; }

/* Seller strip */
.seller-strip {
  border-top: 1px solid rgba(212,207,199,.3);
  padding-top: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.seller-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(212,207,199,.2);
  display: flex; align-items: center; justify-content: center;
  font-size: .7rem; font-weight: 700;
  color: rgba(56,56,56,.6);
}
.seller-name  { font-size: .75rem; font-weight: 700; color: var(--brand-dark); }
.seller-label { font-size: .6rem; text-transform: uppercase; letter-spacing: .12em; color: rgba(56,56,56,.4); }
.chevron-icon {
  font-size: 1.1rem;
  color: var(--brand-light);
  transition: color .25s ease, transform .25s ease;
}
.listing-card:hover .chevron-icon {
  color: var(--brand-accent);
  transform: translateX(4px);
}

/* =============================================
   EMPTY STATE
   ============================================= */
.empty-icon-wrap {
  width: 80px; height: 80px;
  background: rgba(212,207,199,.15);
}

/* =============================================
   FOOTER
   ============================================= */
.footer-link {
  color: rgba(56,56,56,.6);
  text-decoration: none;
  font-size: .875rem;
  transition: color .2s ease;
}
.footer-link:hover { color: var(--brand-accent); }

.footer-bottom,
.footer-bottom a {
  font-size: .65rem;
  text-transform: uppercase;
  letter-spacing: .2em;
  font-weight: 700;
  color: rgba(56,56,56,.3);
}
.footer-legal {
  text-decoration: none;
  color: rgba(56,56,56,.3);
  transition: color .2s ease;
}
.footer-legal:hover { color: var(--brand-dark); }

/* =============================================
   ANIMATIONS
   ============================================= */
@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-20px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fade-in-left  { animation: fadeInLeft  .55s ease both; }
.fade-in-right { animation: fadeInRight .55s ease .2s both; }

.card-animate {
  opacity: 0;
  animation: fadeInUp .45s ease forwards;
}

/* =============================================
   RESPONSIVE TWEAKS
   ============================================= */
@media (max-width: 767.98px) {
  .hero-section { padding-top: 1rem; }
  .trust-card   { border-radius: 1.5rem !important; padding: 2rem !important; }
  .listing-card { padding: 1.25rem; }
}
/* ===== PROCEDURE COMPACT ===== */
.procedure-item {
  background: #fff;
  border: 2px dashed rgba(212,207,199,.7);
  border-radius: .7rem;
  padding: .7rem 1rem;
  font-size: .85rem;
  transition: all .2s ease;
  cursor: grab;
}

.procedure-item:hover {
  border-color: var(--brand-accent);
  background: rgba(102,93,30,.04);
  box-shadow: 0 8px 25px rgba(56,56,56,.05);
}

.procedure-item:active {
  cursor: grabbing;
  opacity: 0.7;
}

.drag-handle {
  cursor: grab;
  color: rgba(56,56,56,.4);
}

.procedure-item:hover .drag-handle {
  color: var(--brand-accent);
}