/* =============================
   OwnSold App CSS
   Extends theme.css — app-specific components only.
   ============================= */

/* ===== NAV ===== */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(12, 12, 14, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--fg);
  text-decoration: none;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
}

.nav-link {
  color: var(--fg-muted);
  text-decoration: none;
  font-size: 0.9rem;
  padding: 0.4rem 0.8rem;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}

.nav-link:hover { color: var(--fg); background: var(--bg-subtle); }

.nav-cta {
  background: var(--accent);
  color: #0C0C0E;
  font-weight: 600;
  font-size: 0.88rem;
  padding: 0.5rem 1.2rem;
  border-radius: 8px;
  text-decoration: none;
  margin-left: 0.5rem;
  transition: opacity 0.2s;
}

.nav-cta:hover { opacity: 0.9; }

.nav-mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  margin-left: auto;
}

.nav-mobile-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--fg);
  border-radius: 2px;
}

.nav-mobile-menu {
  display: none;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--border);
  padding: 0.5rem 0;
}

.nav-mobile-menu.open { display: flex; }

.nav-mobile-menu a {
  color: var(--fg-muted);
  text-decoration: none;
  padding: 0.9rem 1rem;
  font-size: 0.95rem;
  border-bottom: 1px solid var(--border);
}

.mobile-cta {
  color: var(--accent) !important;
  font-weight: 600;
}

/* ===== APP MAIN ===== */
.app-main {
  min-height: calc(100vh - 64px);
}

/* ===== PAGE HEADER ===== */
.page-header {
  padding: 3.5rem 2rem 2.5rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg-subtle);
}

.page-header-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.page-header-eyebrow {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.page-header h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 0.75rem;
}

.page-header p {
  font-size: 1.05rem;
  color: var(--fg-muted);
  max-width: 600px;
  line-height: 1.7;
}

/* ===== CONTENT CONTAINER ===== */
.content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

/* ===== JOURNEY HOME ===== */
.journey-intro {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  margin-bottom: 3rem;
  display: flex;
  gap: 2rem;
  align-items: center;
}

.journey-intro-icon {
  font-size: 3rem;
  flex-shrink: 0;
}

.journey-intro p {
  color: var(--fg-muted);
  font-size: 1rem;
  line-height: 1.7;
}

.journey-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.2rem;
}

.journey-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-decoration: none;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  transition: border-color 0.2s, transform 0.2s;
}

.journey-card:hover {
  border-color: rgba(212, 162, 78, 0.35);
  transform: translateY(-2px);
}

.journey-card-num {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent);
  opacity: 0.4;
  flex-shrink: 0;
  line-height: 1;
  min-width: 2.5rem;
}

.journey-card-icon {
  font-size: 1.3rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.journey-card-content h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 0.25rem;
}

.journey-card-content p {
  font-size: 0.82rem;
  color: var(--fg-muted);
  line-height: 1.5;
}

/* ===== JOURNEY STEP PAGE ===== */
.step-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 2.5rem;
  align-items: start;
}

.step-content {}

.step-section {
  margin-bottom: 2.5rem;
}

.step-section-label {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.step-section h2 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.step-desc {
  font-size: 1.05rem;
  color: var(--fg-muted);
  line-height: 1.75;
}

.step-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.step-list li {
  display: flex;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: var(--fg-muted);
  line-height: 1.6;
}

.step-list li::before {
  content: '→';
  color: var(--accent);
  flex-shrink: 0;
  font-weight: 600;
  margin-top: 0.05rem;
}

.pitfalls-list li::before {
  content: '⚠';
  color: var(--red-muted);
}

.step-sidebar {}

.cost-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.cost-card-header {
  padding: 1rem 1.25rem;
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border);
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

.cost-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.9rem 1.25rem;
  border-bottom: 1px solid var(--border);
}

.cost-row:last-child { border-bottom: none; }

.cost-label {
  font-size: 0.88rem;
  color: var(--fg-muted);
}

.cost-value {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--fg);
}

.cost-value.green { color: var(--green-muted); }
.cost-value.gold { color: var(--accent); }

.meta-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1.25rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.88rem;
}

.meta-row:last-child { border-bottom: none; }
.meta-key { color: var(--fg-muted); }
.meta-val { font-weight: 600; color: var(--fg); text-align: right; }

.hire-cta-card {
  background: var(--bg-card);
  border: 1px solid rgba(212, 162, 78, 0.3);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
}

.hire-cta-card p {
  font-size: 0.9rem;
  color: var(--fg-muted);
  margin-bottom: 1rem;
  line-height: 1.6;
}

.btn-primary {
  display: inline-block;
  background: var(--accent);
  color: #0C0C0E;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.75rem 1.5rem;
  border-radius: 10px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s;
  width: 100%;
  text-align: center;
}

.btn-primary:hover { opacity: 0.9; }

.btn-secondary {
  display: inline-block;
  background: transparent;
  color: var(--fg-muted);
  font-weight: 600;
  font-size: 0.88rem;
  padding: 0.65rem 1.2rem;
  border-radius: 10px;
  text-decoration: none;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}

.btn-secondary:hover { border-color: var(--fg-muted); color: var(--fg); }

.step-nav {
  display: flex;
  gap: 1rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.step-nav-prev { margin-right: auto; }
.step-nav-next { margin-left: auto; }

/* ===== MARKETPLACE ===== */
.category-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
}

.category-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 1rem;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid var(--border);
  color: var(--fg-muted);
  background: transparent;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.category-pill:hover {
  border-color: rgba(212, 162, 78, 0.4);
  color: var(--fg);
}

.category-pill.active {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-glow);
}

.services-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.service-listing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  transition: border-color 0.2s, transform 0.2s;
}

.service-listing-card:hover {
  border-color: rgba(212, 162, 78, 0.3);
  transform: translateY(-2px);
}

.service-card-top {
  padding: 1.5rem 1.5rem 1rem;
  flex: 1;
}

.service-card-category {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.service-card-name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 0.6rem;
}

.service-card-desc {
  font-size: 0.85rem;
  color: var(--fg-muted);
  line-height: 1.6;
}

.service-card-provider {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border);
  background: var(--bg-subtle);
}

.provider-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent-glow);
  border: 1px solid rgba(212,162,78,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
  flex-shrink: 0;
}

.provider-info {
  flex: 1;
  min-width: 0;
}

.provider-name {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--fg);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.provider-meta {
  font-size: 0.75rem;
  color: var(--fg-muted);
}

.service-card-price {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
  color: var(--accent);
  flex-shrink: 0;
}

/* ===== SERVICE DETAIL ===== */
.service-detail-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 2.5rem;
  align-items: start;
}

.service-detail-main {}

.service-price-block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  margin-bottom: 1.5rem;
}

.service-price {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 0.25rem;
}

.service-delivery {
  font-size: 0.85rem;
  color: var(--fg-muted);
  margin-bottom: 1.5rem;
}

/* ===== BOOKING FORM ===== */
.booking-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
}

.booking-form h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1.2rem;
}

.form-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--fg-muted);
  margin-bottom: 0.4rem;
  letter-spacing: 0.04em;
}

.form-input, .form-textarea {
  width: 100%;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 0.75rem 1rem;
  transition: border-color 0.2s;
  outline: none;
}

.form-input:focus, .form-textarea:focus {
  border-color: var(--accent);
}

.form-input::placeholder, .form-textarea::placeholder {
  color: var(--fg-muted);
  opacity: 0.6;
}

.form-textarea { resize: vertical; min-height: 100px; }

/* ===== PROVIDER PROFILE ===== */
.provider-header {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  margin-bottom: 2.5rem;
}

.provider-avatar-lg {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--accent-glow);
  border: 2px solid rgba(212,162,78,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--accent);
  flex-shrink: 0;
}

.provider-header-info h1 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 0.25rem;
}

.provider-header-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--fg-muted);
  margin-top: 0.5rem;
}

.provider-bio {
  font-size: 1rem;
  color: var(--fg-muted);
  line-height: 1.75;
  margin-bottom: 2.5rem;
}

.provider-services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.2rem;
}

.provider-service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: border-color 0.2s;
}

.provider-service-card:hover { border-color: rgba(212,162,78,0.3); }

.provider-service-name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--fg);
}

.provider-service-desc {
  font-size: 0.85rem;
  color: var(--fg-muted);
  line-height: 1.6;
  flex: 1;
}

.provider-service-price {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--accent);
  font-size: 1.1rem;
}

/* ===== STARS ===== */
.stars {
  color: var(--accent);
  letter-spacing: 0.1em;
}

/* ===== CONFIRMATION ===== */
.confirmation-card {
  background: var(--bg-card);
  border: 1px solid var(--green-muted);
  border-radius: var(--radius);
  padding: 3rem;
  text-align: center;
  max-width: 560px;
  margin: 4rem auto;
}

.confirmation-icon { font-size: 3rem; margin-bottom: 1.5rem; }

.confirmation-card h1 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.confirmation-card p {
  color: var(--fg-muted);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 2rem;
}

/* ===== 404 / ERROR ===== */
.error-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  text-align: center;
  padding: 2rem;
}

.error-page h1 {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 1rem;
}

.error-page p {
  color: var(--fg-muted);
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

/* ===== FOOTER EXTENDED ===== */
.site-footer {
  padding: 2.5rem 2rem;
  border-top: 1px solid var(--border);
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
}

.footer-nav {
  display: flex;
  gap: 1.5rem;
}

.footer-nav a {
  font-size: 0.85rem;
  color: var(--fg-muted);
  text-decoration: none;
}

.footer-nav a:hover { color: var(--fg); }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .step-layout { grid-template-columns: 1fr; }
  .service-detail-layout { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-mobile-toggle { display: flex; }
  .services-list { grid-template-columns: 1fr; }
  .journey-grid { grid-template-columns: 1fr; }
  .journey-intro { flex-direction: column; gap: 1rem; }
  .footer-inner { flex-direction: column; text-align: center; }
  .content { padding: 2rem 1.25rem; }
  .page-header { padding: 2rem 1.25rem 1.5rem; }
  .step-nav { flex-direction: column; }
  .step-nav-prev, .step-nav-next { margin: 0; }
  .provider-services-grid { grid-template-columns: 1fr; }
}
