/* Crypto Real Estate Emporium — Main Stylesheet */
/* Dark theme: bg #1a1a2e, sidebar #16213e, accent gold #D4AF37 */

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

:root {
  --bg:        #1a1a2e;
  --surface:   #16213e;
  --surface2:  #0f3460;
  --accent:    #D4AF37;
  --accent2:   #e8c84a;
  --text:      #e0e0e0;
  --text-muted:#9e9e9e;
  --danger:    #e74c3c;
  --success:   #2ecc71;
  --warning:   #f39c12;
  --radius:    8px;
  --shadow:    0 4px 20px rgba(0,0,0,0.4);
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Segoe UI', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent2); text-decoration: underline; }

/* ── Header ── */
header {
  background: var(--surface);
  border-bottom: 2px solid var(--accent);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: .03em;
  white-space: nowrap;
}
.logo:hover { text-decoration: none; color: var(--accent2); }

nav { display: flex; flex-wrap: wrap; gap: .25rem; }
nav a {
  color: var(--text);
  padding: .4rem .75rem;
  border-radius: var(--radius);
  font-size: .9rem;
  transition: background .2s, color .2s;
}
nav a:hover { background: var(--surface2); color: var(--accent); text-decoration: none; }

/* ── Hero ── */
.hero {
  background: linear-gradient(135deg, #0f3460 0%, #16213e 50%, #1a1a2e 100%);
  padding: 5rem 1.5rem;
  text-align: center;
  border-bottom: 1px solid var(--surface2);
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: var(--accent);
  margin-bottom: 1rem;
  font-weight: 800;
  text-shadow: 0 2px 8px rgba(0,0,0,.5);
}
.hero p {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 2rem;
}
.btn {
  display: inline-block;
  padding: .75rem 2rem;
  border-radius: var(--radius);
  font-weight: 600;
  transition: transform .15s, box-shadow .15s;
  cursor: pointer;
  border: none;
  font-size: 1rem;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,.4); text-decoration: none; }
.btn-primary { background: var(--accent); color: #1a1a2e; }
.btn-primary:hover { background: var(--accent2); color: #1a1a2e; }
.btn-outline { background: transparent; color: var(--accent); border: 2px solid var(--accent); }
.btn-outline:hover { background: var(--accent); color: #1a1a2e; }
.btn-danger { background: var(--danger); color: #fff; }

/* ── Main layout ── */
main { flex: 1; max-width: 1200px; margin: 0 auto; padding: 2rem 1.5rem; width: 100%; }

/* ── Section headings ── */
.section-title {
  font-size: 1.75rem;
  color: var(--accent);
  margin-bottom: 1.5rem;
  border-bottom: 2px solid var(--surface2);
  padding-bottom: .5rem;
}

/* ── Category pills ── */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1rem;
  margin-bottom: 3rem;
}
.category-card {
  background: var(--surface);
  border: 1px solid var(--surface2);
  border-radius: var(--radius);
  padding: 1.5rem 1rem;
  text-align: center;
  transition: border-color .2s, transform .2s;
  display: block;
  color: var(--text);
}
.category-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  text-decoration: none;
  color: var(--accent);
}
.category-card .cat-icon { font-size: 2rem; margin-bottom: .5rem; }
.category-card .cat-name { font-weight: 600; font-size: .95rem; }

/* ── Property grid ── */
.property-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.property-card {
  background: var(--surface);
  border: 1px solid var(--surface2);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow .2s, transform .2s;
  display: flex;
  flex-direction: column;
}
.property-card:hover {
  box-shadow: 0 8px 30px rgba(212,175,55,.15);
  transform: translateY(-4px);
}
.property-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: var(--surface2);
}
.property-card .card-body {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.property-card .card-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: .35rem;
  color: var(--text);
}
.property-card .card-location {
  font-size: .85rem;
  color: var(--text-muted);
  margin-bottom: .75rem;
}
.property-card .card-price {
  margin-bottom: .75rem;
}
.price-xmr {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--accent);
}
.price-usd {
  font-size: .85rem;
  color: var(--text-muted);
  margin-left: .4rem;
}
.card-specs {
  display: flex;
  gap: 1rem;
  font-size: .82rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.card-specs span::before { margin-right: .25rem; }
.card-footer { margin-top: auto; padding-top: .75rem; }
.card-footer .btn { width: 100%; text-align: center; }

/* ── Badge ── */
.badge {
  display: inline-block;
  padding: .2rem .6rem;
  border-radius: 20px;
  font-size: .75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.badge-category { background: var(--surface2); color: var(--accent); }
.badge-status-available { background: rgba(46,204,113,.15); color: var(--success); }
.badge-status-sold { background: rgba(231,76,60,.15); color: var(--danger); }
.badge-status-pending { background: rgba(243,156,18,.15); color: var(--warning); }

/* ── Property detail ── */
.property-detail { display: grid; grid-template-columns: 2fr 1fr; gap: 2rem; }
.property-detail img { width: 100%; border-radius: var(--radius); border: 1px solid var(--surface2); }
.detail-sidebar { background: var(--surface); border-radius: var(--radius); padding: 1.5rem; align-self: start; }
.detail-sidebar .price-xmr { font-size: 1.8rem; display: block; margin-bottom: .25rem; }
.specs-table { width: 100%; border-collapse: collapse; margin: 1rem 0; }
.specs-table td { padding: .6rem .75rem; border-bottom: 1px solid var(--surface2); font-size: .9rem; }
.specs-table td:first-child { color: var(--text-muted); width: 45%; }

/* ── Forms ── */
.form-card {
  background: var(--surface);
  border: 1px solid var(--surface2);
  border-radius: var(--radius);
  padding: 2rem;
  max-width: 560px;
}
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; margin-bottom: .4rem; font-size: .9rem; color: var(--text-muted); }
.form-group input, .form-group textarea, .form-group select {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--surface2);
  color: var(--text);
  border-radius: var(--radius);
  padding: .65rem .9rem;
  font-size: 1rem;
  font-family: inherit;
}
.form-group input:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
}

/* ── Checkout / QR ── */
.checkout-box {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 2rem;
  max-width: 640px;
  margin: 0 auto;
  border: 1px solid var(--surface2);
}
.checkout-box .qr-code { text-align: center; margin: 1.5rem 0; }
.checkout-box .qr-code img { border: 6px solid #fff; border-radius: 4px; }
.address-box {
  background: var(--bg);
  border: 1px solid var(--surface2);
  border-radius: var(--radius);
  padding: .75rem 1rem;
  font-family: monospace;
  font-size: .82rem;
  word-break: break-all;
  color: var(--accent);
  margin: .75rem 0;
}

/* ── Status indicator ── */
.status-box { text-align: center; padding: 3rem 1.5rem; }
.status-icon { font-size: 4rem; margin-bottom: 1rem; }
.status-pending .status-icon::before { content: '⏳'; }
.status-confirming .status-icon::before { content: '🔄'; }
.status-paid .status-icon::before { content: '✅'; }
.status-expired .status-icon::before { content: '❌'; }

/* ── FAQ / Details ── */
details { border: 1px solid var(--surface2); border-radius: var(--radius); margin-bottom: .75rem; }
summary {
  padding: 1rem 1.25rem;
  cursor: pointer;
  font-weight: 600;
  color: var(--accent);
  list-style: none;
  user-select: none;
}
summary::before { content: '+ '; }
details[open] summary::before { content: '− '; }
details .faq-answer { padding: 0 1.25rem 1.25rem; color: var(--text-muted); line-height: 1.7; }

/* ── Alert boxes ── */
.alert { padding: 1rem 1.25rem; border-radius: var(--radius); margin-bottom: 1rem; }
.alert-info { background: rgba(15,52,96,.6); border: 1px solid var(--surface2); }
.alert-success { background: rgba(46,204,113,.1); border: 1px solid var(--success); color: var(--success); }
.alert-warning { background: rgba(243,156,18,.1); border: 1px solid var(--warning); color: var(--warning); }
.alert-danger { background: rgba(231,76,60,.1); border: 1px solid var(--danger); color: var(--danger); }

/* ── Footer ── */
footer {
  background: var(--surface);
  border-top: 2px solid var(--accent);
  padding: 2rem 1.5rem;
  text-align: center;
  color: var(--text-muted);
  font-size: .9rem;
}
.footer-inner { max-width: 1200px; margin: 0 auto; }
.xmr-badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: rgba(212,175,55,.1);
  border: 1px solid var(--accent);
  color: var(--accent);
  padding: .3rem .75rem;
  border-radius: 20px;
  font-size: .82rem;
  font-weight: 600;
  margin-bottom: .75rem;
}
.footer-links { margin: .75rem 0; display: flex; justify-content: center; gap: 1.5rem; flex-wrap: wrap; }
.footer-links a { color: var(--text-muted); font-size: .88rem; }
.footer-links a:hover { color: var(--accent); }

/* ── Blog ── */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; }
.blog-card { background: var(--surface); border: 1px solid var(--surface2); border-radius: var(--radius); padding: 1.5rem; }
.blog-card h3 { color: var(--accent); margin-bottom: .5rem; }
.blog-card .blog-meta { font-size: .82rem; color: var(--text-muted); margin-bottom: .75rem; }
.blog-card p { color: var(--text-muted); font-size: .92rem; line-height: 1.6; }

/* ── About / Content pages ── */
.content-page { max-width: 800px; }
.content-page h2 { color: var(--accent); margin: 1.5rem 0 .75rem; }
.content-page p { color: var(--text-muted); margin-bottom: 1rem; line-height: 1.75; }
.content-page ul { margin: .5rem 0 1rem 1.5rem; color: var(--text-muted); line-height: 1.75; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .property-grid { grid-template-columns: repeat(2, 1fr); }
  .property-detail { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .property-grid { grid-template-columns: 1fr; }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  nav { display: none; }
}
