/* Theme systems reconstructed from reference sites:
   1) massagememlisboa.pt
   2) ladysescortsibiza.com
   3) nightcyprus.com */

/* ---------- Shared foundation ---------- */
html[data-theme] .hero-brand { letter-spacing: var(--letter-display, -0.015em); }
html[data-theme] .btn {
  border-radius: var(--radius);
  text-transform: var(--btn-transform, none);
  letter-spacing: var(--btn-tracking, 0);
}
html[data-theme] .filters,
html[data-theme] .profile-card,
html[data-theme] .empty,
html[data-theme] .age-gate__box,
html[data-theme] .chat-panel,
html[data-theme] .article__cover,
html[data-theme] .gallery-main,
html[data-theme] .gallery-thumbs button {
  border-radius: var(--radius);
}
html[data-theme] .site-footer {
  background: var(--footer-fade, linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.35)));
}
html[data-theme] .brand__logo {
  box-shadow: 0 0 0 1px var(--logo-ring), 0 4px 14px rgba(0, 0, 0, 0.25);
}
html[data-theme] .profile-card:hover {
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35), 0 0 0 1px var(--card-ring);
}
html[data-theme] .btn,
html[data-theme] .chat-form button,
html[data-theme] .theme-preview-bar a,
html[data-theme] .theme-preview-bar button {
  min-height: 44px;
}
html[data-theme] .profile-grid {
  align-items: stretch;
}
html[data-theme] .profile-card {
  height: 100%;
}

/* ---------- Maison Spa (massagememlisboa.pt) ---------- */
html[data-theme="maison"] .site-header {
  border-bottom: 1px solid rgba(212, 175, 55, 0.22);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28);
}
html[data-theme="maison"] .brand {
  letter-spacing: 0.04em;
}
html[data-theme="maison"] .brand__logo {
  border-radius: 0;
  width: 52px;
  height: 52px;
}
html[data-theme="maison"] .nav-desktop a {
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-size: 0.72rem;
  font-weight: 600;
}
html[data-theme="maison"] .hero-brand {
  text-transform: uppercase;
  font-size: clamp(2.3rem, 6vw, 4rem);
  font-weight: 500;
}
html[data-theme="maison"] .hero__cta .btn {
  font-size: 0.72rem;
  font-weight: 700;
  padding-inline: 1.35rem;
}
html[data-theme="maison"] .hero__cta .btn-ghost {
  border-color: rgba(212, 175, 55, 0.55);
}
html[data-theme="maison"] .filters {
  border-color: rgba(212, 175, 55, 0.24);
}
html[data-theme="maison"] .section-head h2 {
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-size: clamp(1.25rem, 2.3vw, 1.6rem);
}
html[data-theme="maison"] .profile-grid {
  gap: 0.9rem;
}
html[data-theme="maison"] .profile-card {
  border-radius: 0;
  border: 1px solid rgba(212, 175, 55, 0.22);
  box-shadow: none;
}
html[data-theme="maison"] .profile-card__media {
  aspect-ratio: 3 / 4.6;
}
html[data-theme="maison"] .profile-card__caption {
  background: linear-gradient(180deg, transparent 0%, rgba(18, 18, 18, 0.94) 76%);
}
html[data-theme="maison"] .profile-card__name {
  font-size: 1.22rem;
  font-style: italic;
}
html[data-theme="maison"] .profile-card::after {
  content: "PROFİLİ GÖR";
  display: block;
  margin: 0.55rem 0.55rem 0.65rem;
  border: 1px solid rgba(212, 175, 55, 0.55);
  color: #f1dfac;
  text-align: center;
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.6rem 0.3rem;
}
html[data-theme="maison"] .profile-info h1 {
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
html[data-theme="maison"] .attr-grid {
  border-color: rgba(212, 175, 55, 0.24);
}
html[data-theme="maison"] .contact-row .btn:first-child {
  background: linear-gradient(145deg, #e0c15a 0%, #d4af37 50%, #a8843a 100%);
  color: #121212;
}

/* ---------- Ibiza Agency (ladysescortsibiza.com) ---------- */
html[data-theme="ibiza"] body::before {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.24), rgba(0, 0, 0, 0.24)),
    radial-gradient(ellipse 70% 60% at 8% 0%, rgba(200, 15, 139, 0.07), transparent 58%),
    linear-gradient(180deg, #f7fafc 0%, #f0f5fa 100%);
}
html[data-theme="ibiza"] .site-header {
  background: #fff;
  border-bottom-color: #e2e8f0;
}
html[data-theme="ibiza"] .site-header::before {
  content: "WhatsApp: (+34) 610 852 421  |  Correo: LadysEscortsIbiza@gmail.com";
  display: block;
  text-align: center;
  font-size: 0.67rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.28rem 0.6rem;
  color: #f3f4f6;
  background: #0b1020;
  border-bottom: 2px solid #c80f8b;
}
html[data-theme="ibiza"] .header-inner {
  padding-top: 0.62rem;
}
html[data-theme="ibiza"] .brand {
  color: #1e293b;
}
html[data-theme="ibiza"] .brand__logo {
  border-radius: 8px;
}
html[data-theme="ibiza"] .nav-desktop a {
  color: #111;
  font-size: 0.82rem;
  font-weight: 700;
}
html[data-theme="ibiza"] .nav-desktop a:hover {
  color: #c80f8b;
}
html[data-theme="ibiza"] .hero--home.hero--visual {
  height: min(54vw, 68vh, 760px);
}
html[data-theme="ibiza"] .hero__shade {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.15) 0%, rgba(0, 0, 0, 0.55) 52%, rgba(0, 0, 0, 0.9) 100%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.26) 0%, transparent 66%);
}
html[data-theme="ibiza"] .hero__inner {
  text-align: center;
  width: 100%;
}
html[data-theme="ibiza"] .hero-lead {
  max-width: none;
  margin-inline: auto;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.95rem;
}
html[data-theme="ibiza"] .hero__cta {
  justify-content: center;
}
html[data-theme="ibiza"] .hero__cta .btn {
  border-radius: 3px;
  font-weight: 700;
  font-size: 0.75rem;
}
html[data-theme="ibiza"] .stack {
  background:
    radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.1), transparent 22%),
    repeating-radial-gradient(circle at 50% 0%, rgba(200, 15, 139, 0.15) 0 2px, transparent 2px 24px),
    linear-gradient(180deg, #0b0d14 0%, #090b11 100%);
  border-radius: 18px;
  padding-inline: 1rem;
}
html[data-theme="ibiza"] .section-head h2 {
  color: #ff4ccf;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
html[data-theme="ibiza"] .section-count {
  color: #ff4ccf;
}
html[data-theme="ibiza"] .profile-card {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  color: #fff;
}
html[data-theme="ibiza"] .profile-card__media {
  border-radius: 0;
  aspect-ratio: 3 / 4;
}
html[data-theme="ibiza"] .profile-card__caption {
  position: static;
  inset: auto;
  background: none;
  padding: 0.55rem 0 0.15rem;
}
html[data-theme="ibiza"] .profile-card__name {
  text-align: center;
  color: #f236b8;
  font-family: "Lato", sans-serif;
  font-size: 1.7rem;
  font-weight: 400;
}
html[data-theme="ibiza"] .profile-card__meta {
  text-align: center;
  color: #cbd5e1;
  text-transform: uppercase;
  font-size: 0.66rem;
  letter-spacing: 0.08em;
}
html[data-theme="ibiza"] .profile-card:hover {
  transform: translateY(-3px);
  box-shadow: none;
}
html[data-theme="ibiza"] .profile-card:hover .profile-card__media img {
  transform: scale(1.025);
}
html[data-theme="ibiza"] .city-list a,
html[data-theme="ibiza"] .blog-list a {
  border-bottom-color: #d1d5db;
  color: #1e293b;
}
html[data-theme="ibiza"] .article,
html[data-theme="ibiza"] .page-shell {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.25rem;
}
html[data-theme="ibiza"] .empty {
  background: #fff;
  border: 1px solid #d1d5db;
  color: #334155;
}

/* ---------- Night Cyprus (nightcyprus.com) ---------- */
html[data-theme="night"] .site-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
html[data-theme="night"] .brand__logo {
  border-radius: 6px;
}
html[data-theme="night"] .nav-desktop a {
  font-size: 0.84rem;
}
html[data-theme="night"] .hero-brand {
  font-weight: 700;
}
html[data-theme="night"] .filters {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: none;
}
html[data-theme="night"] .filters select,
html[data-theme="night"] .filters input[type="search"] {
  background: rgba(0, 0, 0, 0.28);
  border-color: rgba(255, 255, 255, 0.12);
  border-radius: 12px;
}
html[data-theme="night"] .profile-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  overflow: hidden;
}
html[data-theme="night"] .profile-card::before {
  content: "✓ Doğrulanmış";
  position: absolute;
  top: 0.55rem;
  left: 0.55rem;
  z-index: 4;
  background: linear-gradient(90deg, #6ee7b7, #34d399);
  color: #052e24;
  border-radius: 999px;
  font-size: 0.61rem;
  font-weight: 700;
  padding: 0.24rem 0.45rem;
}
html[data-theme="night"] .profile-card__media {
  aspect-ratio: 3 / 3.15;
}
html[data-theme="night"] .profile-card__caption {
  position: static;
  inset: auto;
  background: #1b1b1d;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.65rem 0.65rem 0.7rem;
}
html[data-theme="night"] .profile-card__name {
  font-family: "Poppins", sans-serif;
  font-size: 0.95rem;
  line-height: 1.3;
}
html[data-theme="night"] .profile-card__meta {
  font-size: 0.64rem;
  color: rgba(255, 255, 255, 0.7);
}
html[data-theme="night"] .profile-card::after {
  content: "Profil Gör      İletişim";
  display: block;
  margin: 0.48rem 0.65rem 0.72rem;
  background:
    linear-gradient(90deg, #ef4444 0 49%, transparent 49% 51%, #1f2937 51% 100%);
  border-radius: 8px;
  text-align: center;
  color: #fff;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  padding: 0.5rem 0.35rem;
  text-transform: none;
}
html[data-theme="night"] .profile-card:hover {
  border-color: rgba(239, 68, 68, 0.5);
}
html[data-theme="night"] .attr-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  overflow: hidden;
}
html[data-theme="night"] .attr-item {
  padding: 0.55rem 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
html[data-theme="night"] .attr-item:last-child {
  border-bottom: 0;
}
html[data-theme="night"] .attr-item span {
  font-size: 0.62rem;
  color: rgba(255, 255, 255, 0.6);
}
html[data-theme="night"] .contact-row .btn:first-child {
  background: linear-gradient(135deg, #10b981, #22c55e);
}
html[data-theme="night"] .contact-row .btn-ghost {
  background: linear-gradient(135deg, #ef4444, #f97316);
  border-color: transparent;
  color: #fff;
}
html[data-theme="night"] .city-list a,
html[data-theme="night"] .blog-list a {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 0.8rem 0.95rem;
  font-family: "Poppins", sans-serif;
  font-size: 0.95rem;
}
html[data-theme="night"] .city-list {
  gap: 0.55rem;
}
html[data-theme="night"] .empty {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
}

/* ---------- Luxury base tweaks ---------- */
html[data-theme="luxury"] .btn {
  min-height: 44px;
}

/* ---------- Preview banner ---------- */
.theme-preview-bar {
  position: sticky;
  top: 0;
  z-index: 60;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.65rem 1rem;
  padding: 0.65rem 1rem;
  background: #111827;
  color: #f8fafc;
  font-size: 0.88rem;
  border-bottom: 2px solid var(--accent);
}
.theme-preview-bar strong { color: var(--accent); }
.theme-preview-bar a,
.theme-preview-bar button {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: transparent;
  color: #fff;
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}
.theme-preview-bar a:hover,
.theme-preview-bar button:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.theme-preview-bar .theme-preview-bar__go {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent, #111);
}
.theme-preview-bar .theme-preview-bar__go:hover {
  filter: brightness(1.05);
  color: var(--on-accent, #111);
}
body.theme-previewing .site-header { top: 3.15rem; }

/* ---------- Responsive ---------- */
@media (max-width: 720px) {
  html[data-theme] .filters {
    padding: 0.75rem;
    gap: 0.5rem;
  }
  html[data-theme] .filters select,
  html[data-theme] .filters input[type="search"],
  html[data-theme] .filters .btn {
    flex: 1 1 100%;
    width: 100%;
  }
  html[data-theme="ibiza"] .site-header::before {
    font-size: 0.6rem;
    padding: 0.25rem 0.4rem;
  }
  html[data-theme="ibiza"] .hero__inner {
    text-align: left;
  }
  html[data-theme="ibiza"] .hero__cta {
    justify-content: flex-start;
  }
  html[data-theme="night"] .profile-card::after {
    font-size: 0.62rem;
  }
  body.theme-previewing .site-header { top: 4.8rem; }
  .theme-preview-bar {
    font-size: 0.8rem;
    padding: 0.55rem 0.75rem;
    gap: 0.45rem;
  }
}

@media (max-width: 480px) {
  html[data-theme] .container {
    width: min(100% - 1.25rem, 1160px);
  }
  html[data-theme] .profile-grid {
    gap: 0.55rem;
  }
  html[data-theme] .btn {
    padding: 0.7rem 1rem;
  }
  html[data-theme="maison"] .hero-brand {
    font-size: clamp(1.8rem, 10vw, 2.6rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  html[data-theme] * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
