/* GalacticVibe - Creative/bold, purple/pink gradients, dark mode header, neon accent glows */

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

:root {
  --color-primary: #7c3aed;
  --color-accent: #ec4899;
  --color-bg: #0f0a1e;
  --color-surface: #1a1030;
  --color-surface-raised: #231845;
  --color-text: #e8e0f5;
  --color-text-light: #a78bcc;
  --color-border: #3b2668;
  --font-body: 'Inter', sans-serif;
  --radius: 12px;
  --shadow: 0 2px 12px rgba(124, 58, 237, 0.15);
  --shadow-md: 0 8px 24px rgba(124, 58, 237, 0.25);
  --shadow-glow: 0 0 20px rgba(236, 72, 153, 0.3);
  --max-width: 1200px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: all 0.25s ease;
}

a:hover {
  color: #f472b6;
  text-shadow: 0 0 8px rgba(236, 72, 153, 0.4);
}

h1, h2, h3 {
  color: #ffffff;
  line-height: 1.3;
  font-weight: 700;
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.2rem;
}

/* Header */
.site-header {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.site-logo {
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.5px;
}

.site-logo:hover {
  text-shadow: none;
  filter: brightness(1.2);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.site-nav a {
  color: var(--color-text-light);
  font-size: 0.9rem;
  font-weight: 500;
}

.site-nav a:hover {
  color: var(--color-accent);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
}

.btn--primary {
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  color: #ffffff;
}

.btn--primary:hover {
  box-shadow: var(--shadow-glow);
  transform: translateY(-1px);
}

/* Hero */
.hero {
  background: linear-gradient(135deg, #1a1030 0%, #4c1d95 40%, #7c3aed 60%, #ec4899 100%);
  color: #ffffff;
  padding: 100px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(124, 58, 237, 0.3), transparent 60%),
              radial-gradient(ellipse at 70% 50%, rgba(236, 72, 153, 0.3), transparent 60%);
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 3.25rem;
  margin-bottom: 16px;
  letter-spacing: -1px;
}

.hero p {
  font-size: 1.15rem;
  color: #d8b4fe;
  max-width: 640px;
  margin: 0 auto 32px;
}

/* Search */
.search-form {
  display: flex;
  max-width: 560px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.search-form input {
  flex: 1;
  padding: 14px 20px;
  border: none;
  font-size: 1rem;
  font-family: var(--font-body);
  outline: none;
  background: transparent;
  color: #ffffff;
}

.search-form input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.search-form .btn {
  border-radius: 0 var(--radius) var(--radius) 0;
}

/* Sections */
.categories-section,
.featured-section {
  padding: 64px 0;
}

.categories-section {
  background: var(--color-surface);
}

.categories-section h2,
.featured-section h2 {
  text-align: center;
  margin-bottom: 40px;
}

/* Category Cards */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}

.category-card {
  background: var(--color-surface-raised);
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  transition: all 0.25s ease;
  display: block;
}

.category-card:hover {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
}

.category-card h3 {
  margin-bottom: 6px;
}

.category-count {
  font-size: 0.85rem;
  color: var(--color-text-light);
}

/* Listings Grid */
.listings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.listing-card {
  background: var(--color-surface);
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  transition: all 0.25s ease;
  display: block;
}

.listing-card:hover {
  border-color: var(--color-primary);
  box-shadow: 0 0 24px rgba(124, 58, 237, 0.2);
  transform: translateY(-3px);
}

.listing-card h3 {
  margin-bottom: 8px;
}

.listing-category {
  font-size: 0.85rem;
  color: var(--color-accent);
  font-weight: 600;
  margin-bottom: 4px;
}

.listing-location {
  font-size: 0.9rem;
  color: var(--color-text-light);
}

/* Listing Detail */
.listing-detail {
  padding: 40px 0 80px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--color-text-light);
  margin-bottom: 32px;
}

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

.breadcrumb a:hover {
  color: var(--color-accent);
}

.listing-header {
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--color-border);
}

.listing-header h1 {
  margin-bottom: 8px;
}

.listing-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

.listing-info {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
}

.info-row {
  display: flex;
  padding: 16px 20px;
  border-bottom: 1px solid var(--color-border);
  gap: 16px;
}

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

.info-row strong {
  min-width: 100px;
  color: var(--color-accent);
  font-size: 0.85rem;
}

.info-row span,
.info-row a {
  color: var(--color-text);
}

.listing-description {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 28px;
}

.listing-description h2 {
  text-align: left;
  margin-bottom: 16px;
}

.listing-description p {
  color: var(--color-text-light);
  line-height: 1.7;
}

/* Footer */
.site-footer {
  background: #0a0614;
  color: var(--color-text-light);
  padding: 48px 0 32px;
  border-top: 1px solid var(--color-border);
}

.site-footer__brand {
  margin-bottom: 24px;
}

.site-footer__brand strong {
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 1.25rem;
  display: block;
  margin-bottom: 4px;
}

.site-footer__brand p {
  font-size: 0.9rem;
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 32px;
}

.site-footer__links a {
  color: var(--color-text-light);
  font-size: 0.9rem;
}

.site-footer__links a:hover {
  color: var(--color-accent);
  text-shadow: 0 0 8px rgba(236, 72, 153, 0.3);
}

.site-footer__copy {
  font-size: 0.8rem;
  color: #4a3570;
  border-top: 1px solid var(--color-border);
  padding-top: 20px;
}

/* Responsive */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.25rem;
  }

  .site-header .container {
    flex-direction: column;
    height: auto;
    padding: 12px 24px;
    gap: 8px;
  }

  .site-nav {
    gap: 16px;
  }

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

  .search-form input,
  .search-form .btn {
    width: 100%;
    border-radius: var(--radius);
  }

  .categories-grid {
    grid-template-columns: 1fr;
  }

  .listings-grid {
    grid-template-columns: 1fr;
  }

  .info-row {
    flex-direction: column;
    gap: 4px;
  }
}
