/* Critical CSS — Masaj Sepeti İstanbul SPA Portal (ozescort.forum) */
:root {
  color-scheme: light;
  --bg-silk: #fbf9f5;
  --bg-surface: #ffffff;
  --bg-warm: #f4efe6;
  --line-warm: #e6ded2;
  --line-accent: rgba(190, 18, 60, 0.36);
  --ink-obsidian: #1c1917;
  --ink-muted: #57534e;
  --brand-crimson: #be123c;
  --brand-rose: #e11d48;
  --brand-amber: #d97706;
  --brand-jade: #0f766e;
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg-silk);
}

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--bg-silk);
  background-image:
    radial-gradient(ellipse 75% 42% at 12% -6%, rgba(225, 29, 72, 0.065), transparent 62%),
    radial-gradient(ellipse 65% 38% at 92% 10%, rgba(15, 118, 110, 0.065), transparent 60%);
  color: var(--ink-obsidian);
  font-family: 'DM Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Sticky Blurred Glass Header */
.ms-header {
  position: sticky;
  top: 0;
  z-index: 950;
  background: rgba(251, 249, 245, 0.86);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  border-bottom: 1px solid var(--line-warm);
}

/* Semantic Card Grid with Stretched H3 Anchor (prevents long-anchor SEO penalty) */
.ms-card {
  position: relative;
  background: var(--bg-surface);
  border: 1px solid var(--line-warm);
  border-radius: 1.1rem;
  box-shadow: 0 4px 16px -8px rgba(28, 25, 23, 0.07);
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.22s ease, box-shadow 0.22s ease;
}

.ms-card:hover {
  transform: translateY(-3px);
  border-color: var(--line-accent);
  box-shadow: 0 18px 36px -16px rgba(190, 18, 60, 0.24);
}

.ms-card-title-link {
  color: inherit;
  text-decoration: none;
  display: inline-block;
}

.ms-card-title-link::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
}

.ms-card-title-link:focus-visible {
  outline: 2px solid var(--brand-jade);
  outline-offset: 4px;
  border-radius: 4px;
}

/* Native Details/Summary FAQ Accordion */
.ms-faq {
  background: var(--bg-surface);
  border: 1px solid var(--line-warm);
  border-radius: 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ms-faq[open] {
  border-color: rgba(190, 18, 60, 0.38);
  box-shadow: 0 10px 26px -14px rgba(190, 18, 60, 0.16);
}

.ms-faq-trigger {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.3rem;
  font-weight: 700;
  color: var(--ink-obsidian);
}

.ms-faq-trigger::-webkit-details-marker {
  display: none;
}

.ms-faq-icon {
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
  color: var(--brand-jade);
  transition: transform 0.25s ease, color 0.25s ease;
}

.ms-faq[open] .ms-faq-icon {
  transform: rotate(180deg);
  color: var(--brand-crimson);
}

/* Fixed Ultra-Visible Floating CTA Button with Radar Ripple Ring */
.ms-floating-cta {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 99999;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.95rem 1.5rem;
  border-radius: 9999px;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 0.94rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #ffffff;
  text-decoration: none;
  white-space: nowrap;
  background: linear-gradient(125deg, #be123c 0%, #e11d48 38%, #ea580c 74%, #d97706 100%);
  background-size: 240% 240%;
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  box-shadow:
    0 14px 32px -6px rgba(190, 18, 60, 0.55),
    0 6px 18px -4px rgba(217, 119, 6, 0.42);
  animation: ms-gradient-shift 4.2s ease infinite, ms-float-bob 3.2s ease-in-out infinite;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.ms-floating-cta::before,
.ms-floating-cta::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 9999px;
  border: 2px solid rgba(225, 29, 72, 0.55);
  pointer-events: none;
  z-index: -1;
  animation: ms-ripple-ring 2.4s cubic-bezier(0.16, 1, 0.3, 1) infinite;
}

.ms-floating-cta::after {
  border-color: rgba(217, 119, 6, 0.45);
  animation-delay: 1.2s;
}

.ms-floating-cta:hover {
  transform: translateY(-2px) scale(1.04);
  filter: brightness(1.08);
}

@keyframes ms-gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes ms-float-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

@keyframes ms-ripple-ring {
  0% {
    transform: scale(0.96);
    opacity: 0.85;
  }
  100% {
    transform: scale(1.38, 1.75);
    opacity: 0;
  }
}

@media (max-width: 640px) {
  .ms-floating-cta {
    bottom: 16px;
    right: 16px;
    padding: 0.84rem 1.25rem;
    font-size: 0.88rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ms-floating-cta,
  .ms-floating-cta::before,
  .ms-floating-cta::after {
    animation: none !important;
  }
}
