/* ==========================================================================
   EuroLove VIP - Core Stylesheet (css/style.css)
   Obsidian Dark & Ruby Luxury Theme
   ========================================================================== */

:root {
  --bg-body: #07080b;
  --bg-surface: #10131d;
  --bg-surface-elevated: #171b29;
  --bg-input: #0b0d14;
  --bg-glass: rgba(16, 19, 29, 0.85);

  --ruby: #e60050;
  --ruby-light: #ff2a74;
  --ruby-dark: #ad003c;
  --gold-vip: #f5a623;
  --gold-light: #ffd166;
  --verified-green: #25d366;
  --diamond-cyan: #00d2ff;

  --text-primary: #ffffff;
  --text-secondary: #c5c9d6;
  --text-muted: #7e859a;

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-medium: rgba(255, 255, 255, 0.14);
  --border-gold: rgba(245, 166, 35, 0.45);
  --border-ruby: rgba(230, 0, 80, 0.45);

  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  --font-heading: 'Outfit', 'Montserrat', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.35s cubic-bezier(0.4, 0, 0.2, 1);

  --shadow-ruby: 0 8px 25px rgba(230, 0, 80, 0.35);
  --shadow-gold: 0 8px 25px rgba(245, 166, 35, 0.25);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.65);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--bg-body);
  background-image:
    radial-gradient(circle at 15% 10%, rgba(230, 0, 80, 0.08) 0%, transparent 35%),
    radial-gradient(circle at 85% 20%, rgba(245, 166, 35, 0.06) 0%, transparent 35%);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.5;
  min-height: 100vh;
  overflow-x: hidden;
  padding-bottom: 70px;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

button, input, select, textarea {
  font-family: inherit;
  border: none;
  outline: none;
  background: none;
}

button {
  cursor: pointer;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: 100%;
  max-width: 1340px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* ==========================================================================
   1. TOP UTILITY BAR
   ========================================================================== */
.top-bar {
  background: #050609;
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.45rem 0;
  font-size: 0.78rem;
}

.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.top-bar-left {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.age-badge {
  background: linear-gradient(135deg, var(--ruby), var(--ruby-dark));
  color: #fff;
  font-weight: 800;
  font-size: 0.68rem;
  padding: 0.18rem 0.55rem;
  border-radius: var(--radius-xs);
  letter-spacing: 0.5px;
}

.top-bar-right {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.custom-select-dark {
  background: var(--bg-surface);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
  padding: 0.28rem 0.6rem;
  border-radius: var(--radius-xs);
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
}

.custom-select-dark:hover {
  border-color: var(--border-medium);
  color: #fff;
}

.btn-auth {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--bg-surface-elevated);
  color: #fff;
  border: 1px solid var(--border-medium);
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-xs);
  font-size: 0.76rem;
  font-weight: 700;
  transition: all var(--transition-fast);
}

.btn-auth:hover {
  border-color: var(--ruby);
  background: rgba(230, 0, 80, 0.15);
}

/* ==========================================================================
   2. MAIN HEADER & NAVIGATION
   ========================================================================== */
.main-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: rgba(10, 12, 18, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.85rem 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
}

.brand-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--ruby-light), var(--ruby-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  color: #fff;
  box-shadow: var(--shadow-ruby);
}

.brand-title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 900;
  letter-spacing: -0.5px;
  color: #fff;
  line-height: 1.1;
}

.brand-title span {
  color: var(--ruby-light);
}

.brand-tagline {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  color: var(--gold-vip);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-secondary);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  transition: all var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
  color: #fff;
  border-color: var(--ruby);
  background: rgba(230, 0, 80, 0.16);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.btn-favorites {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: all var(--transition-fast);
}

.btn-favorites:hover {
  border-color: var(--ruby-light);
  transform: translateY(-2px);
}

.fav-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background: var(--ruby);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  min-width: 19px;
  height: 19px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

.btn-post-ad {
  background: linear-gradient(135deg, var(--ruby-light) 0%, var(--ruby-dark) 100%);
  color: #fff;
  padding: 0.6rem 1.15rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.3px;
  box-shadow: var(--shadow-ruby);
  transition: all var(--transition-fast);
}

.btn-post-ad:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
}

/* ==========================================================================
   4. HERO SEARCH & PASSPORT BAR
   ========================================================================== */
.hero-search-section {
  padding: 1.75rem 0 1.25rem;
}

.hero-text-center {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 1.5rem;
}

.hero-headline {
  font-family: var(--font-heading);
  font-size: clamp(1.65rem, 3.5vw, 2.55rem);
  font-weight: 900;
  letter-spacing: -0.5px;
  background: linear-gradient(90deg, #ffffff 0%, #ffd166 55%, #ff2a74 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.45rem;
}

.hero-subtext {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.search-box-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: var(--shadow-lg);
}

.search-form-grid {
  display: grid;
  grid-template-columns: 2fr 1.2fr 1.2fr auto;
  gap: 0.75rem;
}

.form-input-wrap,
.form-select-wrap {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0 0.85rem;
  transition: border-color var(--transition-fast);
}

.form-input-wrap:focus-within,
.form-select-wrap:focus-within {
  border-color: var(--ruby);
}

.input-icon {
  font-size: 1rem;
  margin-right: 0.55rem;
  flex-shrink: 0;
}

.form-input-wrap input,
.form-select-wrap select {
  width: 100%;
  height: 46px;
  color: #fff;
  font-size: 0.88rem;
  background: transparent;
}

.form-select-wrap select option {
  background: var(--bg-surface);
  color: #fff;
}

.btn-search-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  background: linear-gradient(135deg, var(--ruby-light), var(--ruby-dark));
  color: #fff;
  font-weight: 800;
  font-size: 0.9rem;
  padding: 0 1.5rem;
  height: 46px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-ruby);
  transition: all var(--transition-fast);
}

.btn-search-submit:hover {
  transform: translateY(-1px);
  filter: brightness(1.1);
}

.quick-tags-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.95rem;
  flex-wrap: wrap;
}

.quick-tags-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 700;
  margin-right: 0.25rem;
}

.quick-tag-btn {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 0.32rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
  transition: all var(--transition-fast);
}

.quick-tag-btn:hover,
.quick-tag-btn.active {
  background: var(--ruby);
  color: #fff;
  border-color: var(--ruby);
}

.popular-cities-carousel {
  display: flex;
  gap: 0.6rem;
  overflow-x: auto;
  padding: 1rem 0 0.25rem;
  scrollbar-width: none;
}

.popular-cities-carousel::-webkit-scrollbar {
  display: none;
}

.city-pill-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 0.48rem 0.95rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  transition: all var(--transition-fast);
}

.city-pill-btn:hover,
.city-pill-btn.active {
  border-color: var(--gold-vip);
  color: #fff;
  background: rgba(245, 166, 35, 0.14);
}

/* ==========================================================================
   5. VIP SPOTLIGHT SHOWCASE
   ========================================================================== */
.vip-spotlight-section {
  padding: 1.5rem 0;
}

.section-header-vip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.15rem;
  flex-wrap: wrap;
}

.vip-title-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.vip-crown-icon {
  font-size: 2rem;
  filter: drop-shadow(0 4px 12px rgba(245, 166, 35, 0.45));
}

.vip-heading {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 900;
  color: #fff;
}

.vip-heading span {
  color: var(--gold-vip);
}

.vip-subtext {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.btn-view-all-vip {
  background: linear-gradient(135deg, rgba(245, 166, 35, 0.2), rgba(230, 0, 80, 0.2));
  border: 1px solid var(--border-gold);
  color: var(--gold-light);
  padding: 0.55rem 1.1rem;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 800;
  transition: all var(--transition-fast);
}

.btn-view-all-vip:hover {
  background: var(--gold-vip);
  color: #07080b;
}

.vip-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}

/* ==========================================================================
   6. MAIN DIRECTORY LAYOUT (SIDEBAR + PROFILES)
   ========================================================================== */
.main-layout-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 1.5rem;
  padding-top: 1rem;
  padding-bottom: 3rem;
  align-items: start;
}

.filter-sidebar {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.35rem;
  position: sticky;
  top: 86px;
}

.filter-sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-subtle);
}

.filter-sidebar-title {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 800;
  color: #fff;
}

.btn-reset-filters {
  font-size: 0.75rem;
  color: var(--ruby-light);
  font-weight: 700;
  cursor: pointer;
}

.filter-group {
  margin-bottom: 1.25rem;
}

.filter-group-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 0.6rem;
}

.filter-range-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
}

.filter-range-inputs input {
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xs);
  color: #fff;
  padding: 0.5rem 0.65rem;
  font-size: 0.85rem;
  width: 100%;
}

.filter-checkbox-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.filter-checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.84rem;
  color: var(--text-secondary);
  cursor: pointer;
}

.filter-checkbox-label input[type="checkbox"] {
  accent-color: var(--ruby);
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.btn-apply-filters {
  width: 100%;
  background: var(--ruby);
  color: #fff;
  padding: 0.7rem;
  border-radius: var(--radius-sm);
  font-weight: 800;
  font-size: 0.85rem;
  transition: all var(--transition-fast);
}

.btn-apply-filters:hover {
  background: var(--ruby-light);
}

.results-control-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.85rem 1.15rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.results-count-text {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.results-count-text strong {
  color: var(--gold-vip);
  font-size: 1.05rem;
}

.results-sort-group {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.sort-select {
  background: var(--bg-input);
  color: #fff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xs);
  padding: 0.4rem 0.75rem;
  font-size: 0.82rem;
}

.view-mode-buttons {
  display: flex;
  gap: 0.3rem;
}

.btn-view-mode {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-xs);
  background: var(--bg-input);
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-view-mode.active {
  background: var(--ruby);
  color: #fff;
  border-color: var(--ruby);
}

.directory-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
  gap: 1.25rem;
}

.directory-cards-grid.list-view {
  grid-template-columns: 1fr;
}

/* ==========================================================================
   7. GLOBAL FOOTER
   ========================================================================== */
.main-footer {
  background: #050609;
  border-top: 1px solid var(--border-subtle);
  padding: 3rem 0 2rem;
  margin-top: 2rem;
}

.footer-top-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-brand-desc {
  color: var(--text-muted);
  font-size: 0.84rem;
  margin-top: 0.85rem;
  line-height: 1.6;
}

.footer-col-title {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.9rem;
  letter-spacing: 0.5px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.footer-links a {
  font-size: 0.83rem;
  color: var(--text-secondary);
}

.footer-links a:hover {
  color: var(--ruby-light);
}

.footer-legal-bar {
  border-top: 1px solid var(--border-subtle);
  padding-top: 1.25rem;
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ==========================================================================
   8. MOBILE STICKY BOTTOM NAVIGATION
   ========================================================================== */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(10, 12, 18, 0.96);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--border-medium);
  z-index: 950;
  justify-content: space-around;
  padding: 0.45rem 0.25rem;
}

.mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-muted);
}

.mobile-nav-item.active,
.mobile-nav-item:hover {
  color: var(--ruby-light);
}

.mobile-icon {
  font-size: 1.2rem;
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS
   ========================================================================== */
@media (max-width: 1024px) {
  .search-form-grid {
    grid-template-columns: 1fr 1fr;
  }
  .main-layout-grid {
    grid-template-columns: 1fr;
  }
  .filter-sidebar {
    position: static;
  }
  .footer-top-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .search-form-grid {
    grid-template-columns: 1fr;
  }
  .main-nav {
    display: none;
  }
  .mobile-bottom-nav {
    display: flex;
  }
  .footer-top-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   9. 3D ROYAL CREST LOGO SYSTEM (DARK-THEME HARMONIZED, NATURAL 3D DEPTH)
   ========================================================================== */
@keyframes euroLove3DFloat {
  0%, 100% {
    transform: perspective(1000px) rotateY(-3deg) rotateX(1.5deg) translateY(0px);
  }
  50% {
    transform: perspective(1000px) rotateY(3deg) rotateX(-1.5deg) translateY(-4px);
  }
}

.eurolove-3d-logo-stage {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transform-style: preserve-3d;
  perspective: 1000px;
  cursor: pointer;
  padding: 0;
  background: transparent;
}

.eurolove-3d-logo-stage::before,
.eurolove-3d-logo-shimmer::after,
.logo-3d-sparkle {
  display: none !important;
}

.eurolove-3d-logo-shimmer {
  position: relative;
  display: inline-block;
  z-index: 2;
  transform-style: preserve-3d;
  animation: euroLove3DFloat 6.5s ease-in-out infinite;
}

.eurolove-3d-logo-img {
  display: block;
  height: 74px;
  width: auto;
  max-width: min(300px, 68vw);
  object-fit: contain;
  filter:
    drop-shadow(0 8px 16px rgba(0, 0, 0, 0.92))
    drop-shadow(0 2px 4px rgba(0, 0, 0, 0.75))
    brightness(0.95) contrast(1.04);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), filter 0.35s ease;
  will-change: transform;
}

.eurolove-3d-logo-stage:hover .eurolove-3d-logo-img {
  transform: perspective(900px) rotateY(6deg) rotateX(-4deg) scale3d(1.05, 1.05, 1.05);
  filter:
    drop-shadow(0 12px 22px rgba(0, 0, 0, 0.95))
    drop-shadow(0 4px 10px rgba(245, 166, 35, 0.22))
    brightness(1);
}

.footer-logo .eurolove-3d-logo-img {
  height: 82px;
  max-width: 310px;
}

.admin-logo-3d .eurolove-3d-logo-img {
  height: 56px;
  max-width: 235px;
}

@media (max-width: 768px) {
  .eurolove-3d-logo-img {
    height: 54px;
    max-width: 210px;
  }
}
