/* ===========================
   SPACIOHUB — DESIGN SYSTEM
   =========================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Playfair+Display:wght@600;700&display=swap');

:root {
  /* Colors */
  --primary: #7C3AED;
  --primary-light: #9d5ff5;
  --primary-dark: #5b21b6;
  --gold: #D4AF37;
  --gold-light: #f0d060;
  --dark: #0a0a14;
  --dark-2: #13131f;
  --dark-3: #1c1c2e;
  --dark-4: #252540;
  --surface: #1e1e32;
  --surface-2: #26263e;
  --text: #f0f0f8;
  --text-muted: #9090b0;
  --text-dim: #5a5a7a;
  --border: rgba(124, 58, 237, 0.25);
  --border-subtle: rgba(255,255,255,0.07);
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;

  /* Border radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 24px rgba(0,0,0,0.4);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.5);
  --shadow-primary: 0 4px 24px rgba(124, 58, 237, 0.35);
  --shadow-gold: 0 4px 20px rgba(212, 175, 55, 0.3);

  /* Transitions */
  --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--dark);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: inherit; border: none; }
input, select, textarea { font-family: inherit; }

/* ===== TYPOGRAPHY ===== */
h1, h2, h3 { font-family: 'Playfair Display', serif; line-height: 1.2; }
h4, h5, h6 { font-family: 'Inter', sans-serif; font-weight: 600; }

.text-gradient {
  background: linear-gradient(135deg, var(--primary-light), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== LAYOUT ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 var(--space-xl); }
.section { padding: var(--space-3xl) 0; }

/* ===== NAVBAR ===== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(10, 10, 20, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0 var(--space-xl);
  height: 68px;
  display: flex; align-items: center;
  justify-content: space-between;
}
.navbar-brand {
  display: flex; align-items: center; gap: var(--space-sm);
  font-size: 1.4rem; font-weight: 800; color: var(--text);
  font-family: 'Playfair Display', serif;
}
.navbar-brand span { color: var(--primary-light); }
.navbar-brand .dot { color: var(--gold); }
.navbar-nav { display: flex; align-items: center; gap: var(--space-xl); }
.nav-link { color: var(--text-muted); font-size: 0.95rem; font-weight: 500; transition: color var(--transition); }
.nav-link:hover, .nav-link.active { color: var(--text); }
.navbar-actions { display: flex; align-items: center; gap: var(--space-md); }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; gap: var(--space-sm);
  padding: 0.65rem 1.4rem; border-radius: var(--radius-full);
  font-weight: 600; font-size: 0.9rem; transition: all var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white; box-shadow: var(--shadow-primary);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 32px rgba(124,58,237,0.5); }
.btn-gold {
  background: linear-gradient(135deg, var(--gold), #b8960a);
  color: #13131f; font-weight: 700; box-shadow: var(--shadow-gold);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 6px 28px rgba(212,175,55,0.5); }
.btn-outline {
  border: 1.5px solid var(--border); color: var(--text);
  background: transparent;
}
.btn-outline:hover { border-color: var(--primary); background: rgba(124,58,237,0.1); }
.btn-ghost { color: var(--text-muted); background: transparent; padding: 0.5rem 0.75rem; }
.btn-ghost:hover { color: var(--text); background: var(--surface); }
.btn-lg { padding: 0.9rem 2rem; font-size: 1rem; }
.btn-sm { padding: 0.45rem 1rem; font-size: 0.82rem; }

/* ===== CARDS ===== */
.card {
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
}
.card:hover {
  border-color: var(--border);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

/* ===== SPACE CARD ===== */
.space-card { cursor: pointer; }
.space-card-img {
  position: relative; height: 220px; overflow: hidden;
}
.space-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.space-card:hover .space-card-img img { transform: scale(1.06); }
.space-card-badge {
  position: absolute; top: var(--space-md); left: var(--space-md);
  background: rgba(10,10,20,0.75); backdrop-filter: blur(8px);
  border: 1px solid var(--border-subtle);
  color: var(--text); font-size: 0.75rem; font-weight: 600;
  padding: 0.3rem 0.75rem; border-radius: var(--radius-full);
  text-transform: capitalize;
}
.space-card-body { padding: var(--space-lg); }
.space-card-title { font-family: 'Playfair Display', serif; font-size: 1.15rem; font-weight: 600; margin-bottom: var(--space-xs); }
.space-card-meta { display: flex; align-items: center; gap: var(--space-md); color: var(--text-muted); font-size: 0.85rem; margin-bottom: var(--space-md); }
.space-card-rating { display: flex; align-items: center; gap: 4px; color: var(--gold); font-weight: 600; font-size: 0.85rem;}
.space-card-footer { display: flex; align-items: center; justify-content: space-between; padding-top: var(--space-md); border-top: 1px solid var(--border-subtle); }
.space-card-price { font-size: 1.2rem; font-weight: 700; }
.space-card-price span { font-size: 0.8rem; color: var(--text-muted); font-weight: 400; }

/* ===== TAGS ===== */
.tag {
  display: inline-flex; align-items: center;
  background: rgba(124,58,237,0.15); border: 1px solid rgba(124,58,237,0.3);
  color: var(--primary-light); font-size: 0.75rem; font-weight: 500;
  padding: 0.2rem 0.6rem; border-radius: var(--radius-full);
}
.tag-list { display: flex; flex-wrap: wrap; gap: var(--space-xs); margin-top: var(--space-sm); }

/* ===== BADGE ===== */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 0.75rem; font-weight: 600;
  padding: 0.25rem 0.65rem; border-radius: var(--radius-full);
}
.badge-success { background: rgba(16,185,129,0.15); color: var(--success); border: 1px solid rgba(16,185,129,0.3); }
.badge-warning { background: rgba(245,158,11,0.15); color: var(--warning); border: 1px solid rgba(245,158,11,0.3); }
.badge-primary { background: rgba(124,58,237,0.15); color: var(--primary-light); border: 1px solid var(--border); }

/* ===== GRID ===== */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-xl); }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-xl); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-xl); }

/* ===== FORM ELEMENTS ===== */
.form-group { display: flex; flex-direction: column; gap: var(--space-xs); }
.form-label { font-size: 0.85rem; font-weight: 600; color: var(--text-muted); letter-spacing: 0.03em; text-transform: uppercase; }
.form-control {
  background: var(--dark-4); border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-md); color: var(--text);
  padding: 0.75rem 1rem; font-size: 0.95rem;
  transition: border-color var(--transition);
  width: 100%;
}
.form-control:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(124,58,237,0.15); }
.form-control::placeholder { color: var(--text-dim); }
select.form-control { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%239090b0' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14L2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; background-size: 10px; padding-right: 2.5rem; }

/* ===== DIVIDER ===== */
.divider { height: 1px; background: var(--border-subtle); margin: var(--space-xl) 0; }

/* ===== STAR RATING ===== */
.stars { display: flex; gap: 2px; }
.star { color: var(--gold); font-size: 1rem; }
.star.empty { color: var(--dark-4); }

/* ===== GLASS EFFECT ===== */
.glass {
  background: rgba(30, 30, 50, 0.6);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
}

/* ===== TOAST ===== */
.toast {
  position: fixed; bottom: 2rem; right: 2rem; z-index: 9999;
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: var(--space-lg) var(--space-xl);
  box-shadow: var(--shadow-lg); max-width: 380px;
  transform: translateY(100px); opacity: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex; align-items: flex-start; gap: var(--space-md);
}
.toast.show { transform: translateY(0); opacity: 1; }
.toast-icon { font-size: 1.5rem; flex-shrink: 0; }
.toast-content h4 { font-family: 'Inter', sans-serif; font-size: 0.95rem; font-weight: 700; margin-bottom: 4px; }
.toast-content p { font-size: 0.85rem; color: var(--text-muted); }

/* ===== SECTION HEADERS ===== */
.section-header { text-align: center; margin-bottom: var(--space-3xl); }
.section-eyebrow { display: inline-block; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); margin-bottom: var(--space-md); }
.section-title { font-size: clamp(2rem, 4vw, 2.8rem); color: var(--text); margin-bottom: var(--space-md); }
.section-subtitle { font-size: 1.1rem; color: var(--text-muted); max-width: 560px; margin: 0 auto; }

/* ===== FOOTER ===== */
footer {
  background: var(--dark-2);
  border-top: 1px solid var(--border-subtle);
  padding: var(--space-3xl) 0 var(--space-xl);
  margin-top: var(--space-3xl);
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: var(--space-3xl); margin-bottom: var(--space-3xl); }
.footer-brand { font-family: 'Playfair Display', serif; font-size: 1.5rem; font-weight: 700; margin-bottom: var(--space-md); }
.footer-desc { color: var(--text-muted); font-size: 0.9rem; line-height: 1.7; }
.footer-heading { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); margin-bottom: var(--space-md); }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: var(--space-sm); }
.footer-links a { color: var(--text-dim); font-size: 0.9rem; transition: color var(--transition); }
.footer-links a:hover { color: var(--text); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; padding-top: var(--space-xl); border-top: 1px solid var(--border-subtle); color: var(--text-dim); font-size: 0.85rem; }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--dark-2); }
::-webkit-scrollbar-thumb { background: var(--dark-4); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

/* ===== ANIMATIONS ===== */
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }
.animate-fadeUp { animation: fadeUp 0.6s ease forwards; }
.animate-fadeIn { animation: fadeIn 0.4s ease forwards; }

/* ===== RESPONSIVE =====  */
@media (max-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .container { padding: 0 var(--space-md); }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .navbar-nav { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: var(--space-md); text-align: center; }
}

/* ===== COOKIE BANNER ===== */
.cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 9998;
  background: var(--dark-2);
  border-top: 1px solid var(--border);
  padding: var(--space-lg) var(--space-xl);
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-xl);
  box-shadow: 0 -4px 30px rgba(0,0,0,0.4);
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.cookie-banner.show { transform: translateY(0); }
.cookie-banner p { font-size: 0.88rem; color: var(--text-muted); max-width: 700px; line-height: 1.6; }
.cookie-banner p a { color: var(--primary-light); text-decoration: underline; }
.cookie-actions { display: flex; gap: var(--space-md); flex-shrink: 0; }
@media (max-width: 768px) {
  .cookie-banner { flex-direction: column; text-align: center; }
  .cookie-actions { width: 100%; justify-content: center; }
}
