/* salonia.io public side */

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

:root {
  --c-bg: #fdf8f9;
  --c-text: #2d1f25;
  --c-text-muted: #7a606b;
  --c-border: #ecdde2;
  --c-primary: #b54a64;
  --c-primary-hover: #9a3d54;
  --c-error: #b8324a;
  --shadow-card: 0 4px 24px rgba(90, 45, 58, 0.06);
  --shadow-panel: 0 12px 48px rgba(90, 45, 58, 0.12);
  --radius: 12px;
}

html, body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--c-bg);
  color: var(--c-text);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--c-primary); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }

/* === Container === */
.public-container { max-width: 1140px; margin: 0 auto; padding: 0 1.5rem; }
.public-narrow { max-width: 720px; }

/* === Header === */
.public-header {
  background: #fff;
  border-bottom: 1px solid var(--c-border);
  position: sticky; top: 0; z-index: 50;
}
.public-header .public-container {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 1rem; padding-bottom: 1rem;
}
.public-brand {
  display: flex; align-items: center; gap: 0.5rem;
  color: var(--c-primary); font-weight: 700; font-size: 1.05rem; letter-spacing: -0.01em;
}
.public-brand:hover { text-decoration: none; }
.public-logo {
  display: inline-block; width: 28px; height: 28px;
  background: linear-gradient(135deg, #b54a64, #d24f7c);
  border-radius: 8px;
}
.public-nav {
  display: flex; align-items: center; gap: 1.25rem;
}
.public-nav a { color: var(--c-text-muted); font-size: 0.9rem; }
.public-nav a:hover { color: var(--c-text); text-decoration: none; }
.public-nav a.public-cta {
  background: var(--c-primary); color: #fff; padding: 0.5rem 1rem; border-radius: 8px; font-weight: 500;
}
.public-nav a.public-cta:hover { background: var(--c-primary-hover); text-decoration: none; }
.public-nav a.public-login { color: var(--c-primary); font-weight: 500; }

/* === Hero === */
.public-hero {
  background: linear-gradient(135deg, #fdf8f9 0%, #f7e6eb 50%, #f0c8d5 100%);
  padding: 4rem 0 5rem;
  text-align: center;
}
.public-hero h1 {
  font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1.15;
  color: #3d1d28; max-width: 720px; margin: 0 auto 1.25rem;
}
.public-hero h1 span { color: var(--c-primary); }
.public-hero p { font-size: 1.05rem; color: #4a2530; max-width: 540px; margin: 0 auto 2rem; }

.public-search {
  display: flex; gap: 0.5rem; max-width: 660px; margin: 0 auto;
  background: #fff; padding: 0.5rem; border-radius: 14px; box-shadow: var(--shadow-panel);
  flex-wrap: wrap;
}
.public-search input {
  flex: 1 1 200px; padding: 0.7rem 1rem; border: 0; font-size: 0.95rem;
  background: transparent; outline: none;
}
.public-search input:not(:last-of-type) {
  border-right: 1px solid var(--c-border);
}
.public-search button {
  padding: 0.7rem 1.5rem; background: var(--c-primary); color: #fff;
  border: 0; border-radius: 10px; font-weight: 500; font-size: 0.95rem;
  transition: background 0.15s;
}
.public-search button:hover { background: var(--c-primary-hover); }

/* === Sections === */
.public-section { padding: 3rem 0; }
.public-section-alt { background: #fff; text-align: center; border-top: 1px solid var(--c-border); border-bottom: 1px solid var(--c-border); }
.public-section h2 {
  font-size: 1.6rem; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 1.5rem; color: #3d1d28;
}
.public-section-alt h2 { margin-bottom: 0.75rem; }
.public-section-alt p { color: var(--c-text-muted); margin-bottom: 1.5rem; }
.public-btn {
  display: inline-block; padding: 0.75rem 1.5rem;
  background: var(--c-primary); color: #fff;
  border-radius: 10px; font-weight: 500;
}
.public-btn:hover { background: var(--c-primary-hover); text-decoration: none; }

/* === Salon grid === */
.salon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
}
.salon-card {
  background: #fff; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-card); border: 1px solid var(--c-border);
  transition: transform 0.15s, box-shadow 0.15s;
}
.salon-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-panel); text-decoration: none; }
.salon-card-cover { aspect-ratio: 16 / 10; }
.salon-card-cover img { width: 100%; height: 100%; object-fit: cover; }
.salon-card-body { padding: 1rem 1.25rem 1.25rem; }
.salon-card-body h3 { font-size: 1.05rem; font-weight: 600; color: #3d1d28; margin-bottom: 0.25rem; }
.salon-card-body p { font-size: 0.85rem; color: var(--c-text-muted); }
.salon-card-type {
  display: inline-block; margin-top: 0.5rem; padding: 0.15rem 0.6rem;
  background: #f7e6eb; color: var(--c-primary); border-radius: 999px; font-size: 0.75rem; font-weight: 500;
}

/* === Salon profile === */
.salon-hero {
  background: linear-gradient(135deg, #fdf8f9, #f7e6eb);
  padding: 3rem 0;
  border-bottom: 1px solid var(--c-border);
}
.salon-hero h1 { font-size: clamp(1.8rem, 4vw, 2.5rem); margin-bottom: 0.25rem; color: #3d1d28; font-weight: 700; }
.salon-meta { color: var(--c-text-muted); font-size: 0.95rem; margin-bottom: 1.5rem; }
.salon-actions { display: flex; gap: 0.5rem; }

.salon-content { padding: 2.5rem 0; }
.salon-section { margin-bottom: 2.5rem; }
.salon-section h2 { font-size: 1.35rem; font-weight: 700; color: #3d1d28; margin-bottom: 1rem; }
.salon-cat { margin-bottom: 1.5rem; }
.salon-cat h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: 0.6rem; color: #5a2d3a; }
.salon-services {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 0.5rem;
}
.salon-service {
  display: flex; justify-content: space-between; align-items: center;
  background: #fff; padding: 0.85rem 1rem; border-radius: 10px;
  border: 1px solid var(--c-border);
}
.salon-service-name { font-weight: 500; }
.salon-service-meta { font-size: 0.8rem; color: var(--c-text-muted); margin-top: 2px; }
.salon-service-price { font-weight: 600; color: var(--c-primary); white-space: nowrap; }

.salon-staff { display: flex; flex-wrap: wrap; gap: 1rem; }
.salon-staff-card { text-align: center; }
.salon-staff-avatar {
  width: 64px; height: 64px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 1.4rem; margin: 0 auto 0.5rem;
}
.salon-staff-name { font-size: 0.85rem; }

.salon-reviews { display: flex; flex-direction: column; gap: 1rem; }
.salon-review { background: #fff; padding: 1rem 1.25rem; border-radius: 10px; border: 1px solid var(--c-border); }
.salon-review-head { display: flex; gap: 0.75rem; align-items: center; margin-bottom: 0.4rem; flex-wrap: wrap; }
.salon-review-stars { color: #f5b825; }
.salon-review-date { font-size: 0.8rem; color: var(--c-text-muted); margin-left: auto; }

/* === Footer === */
.public-footer {
  background: #fff; border-top: 1px solid var(--c-border);
  padding: 1.5rem 0; color: var(--c-text-muted); font-size: 0.85rem; text-align: center;
}

/* === Static prose === */
.public-prose h1 { font-size: 2rem; font-weight: 700; margin-bottom: 1.25rem; color: #3d1d28; }
.public-prose h2 { font-size: 1.2rem; font-weight: 600; margin: 1.75rem 0 0.5rem; color: #5a2d3a; }
.public-prose p { margin-bottom: 1rem; }
.public-prose ul { margin: 0.75rem 0 1rem 1.25rem; }
.public-prose li { margin-bottom: 0.4rem; }

/* === Generic landing (fallback) === */
.landing {
  min-height: 100vh; display: flex; flex-direction: column;
  justify-content: center; align-items: center; text-align: center; padding: 2rem; gap: 1rem;
  background: linear-gradient(135deg, #fdf8f9 0%, #f7e6eb 50%, #f0c8d5 100%);
}
.landing h1 { font-size: clamp(2.5rem, 8vw, 5rem); font-weight: 700; letter-spacing: -0.03em; color: #5a2d3a; }
.landing p { max-width: 560px; font-size: 1.15rem; color: #4a2530; }
.landing .muted { margin-top: 1.5rem; font-size: 0.85rem; color: #8a6470; opacity: 0.7; }

/* === Register page (mevcut) === */
.register-page { min-height: 100vh; }
.register-header { display: flex; align-items: center; justify-content: space-between; padding: 1.25rem 2rem; background: #fff; border-bottom: 1px solid var(--c-border); }
.register-brand { display: flex; align-items: center; gap: 0.5rem; color: var(--c-primary); font-weight: 700; font-size: 1.05rem; }
.register-brand:hover { text-decoration: none; }
.register-logo { display: inline-block; width: 28px; height: 28px; background: linear-gradient(135deg, #b54a64, #d24f7c); border-radius: 8px; }
.register-login-link { color: var(--c-text-muted); font-size: 0.9rem; }
.register-main { display: grid; grid-template-columns: 1fr; max-width: 1100px; margin: 0 auto; padding: 2.5rem 2rem; gap: 3rem; }
@media (min-width: 920px) { .register-main { grid-template-columns: 0.85fr 1fr; gap: 4rem; } }
.register-side h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); font-weight: 700; letter-spacing: -0.02em; margin-bottom: 1.25rem; color: #3d1d28; }
.register-side ul { list-style: none; margin: 1.25rem 0; padding: 0; display: flex; flex-direction: column; gap: 0.6rem; }
.register-side li { position: relative; padding-left: 1.7rem; font-size: 0.95rem; color: #4a2530; }
.register-side li::before { content: ''; position: absolute; left: 0; top: 0.4rem; width: 18px; height: 18px; background: var(--c-primary); border-radius: 50%; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='white' stroke-width='3' viewBox='0 0 24 24'><path stroke-linecap='round' stroke-linejoin='round' d='M5 13l4 4L19 7'/></svg>"); background-size: 12px; background-position: center; background-repeat: no-repeat; }
.register-side-foot { margin-top: 1.5rem; font-size: 0.85rem; color: var(--c-text-muted); }
.register-card { background: #fff; border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow-card); border: 1px solid var(--c-border); }
.register-card h2 { font-size: 1.3rem; font-weight: 600; margin-bottom: 0.25rem; color: #3d1d28; }
.register-card-sub { color: var(--c-text-muted); font-size: 0.9rem; margin-bottom: 1.5rem; }
.reg-field { margin-bottom: 1rem; }
.reg-field label { display: block; font-size: 0.85rem; font-weight: 500; color: #4a2530; margin-bottom: 0.4rem; }
.reg-optional { font-weight: 400; color: var(--c-text-muted); font-size: 0.78rem; }
.reg-field input, .reg-field select { width: 100%; padding: 0.65rem 0.85rem; border: 1px solid var(--c-border); border-radius: 8px; font-size: 0.95rem; font-family: inherit; background: #fff; transition: border-color 0.15s, box-shadow 0.15s; }
.reg-field input:focus, .reg-field select:focus { outline: none; border-color: var(--c-primary); box-shadow: 0 0 0 3px rgba(181, 74, 100, 0.12); }
.reg-help { margin-top: 0.3rem; font-size: 0.78rem; color: var(--c-text-muted); }
.reg-error { margin-top: 0.3rem; font-size: 0.82rem; color: var(--c-error); }
.reg-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.reg-phone { display: flex; align-items: stretch; border: 1px solid var(--c-border); border-radius: 8px; background: #fff; overflow: hidden; transition: border-color 0.15s, box-shadow 0.15s; }
.reg-phone:focus-within { border-color: var(--c-primary); box-shadow: 0 0 0 3px rgba(181, 74, 100, 0.12); }
.reg-phone-prefix { padding: 0 0.85rem; display: flex; align-items: center; background: #faf3f5; border-right: 1px solid var(--c-border); color: var(--c-text-muted); font-weight: 500; font-size: 0.9rem; user-select: none; }
.reg-phone input { flex: 1; border: 0; padding: 0.65rem 0.85rem; font-size: 0.95rem; font-variant-numeric: tabular-nums; letter-spacing: 0.02em; }
.reg-phone input:focus { outline: none; box-shadow: none; }
.reg-checkbox { display: flex; align-items: flex-start; gap: 0.6rem; margin-top: 0.5rem; }
.reg-checkbox input[type="checkbox"] { width: 16px; height: 16px; margin-top: 0.2rem; accent-color: var(--c-primary); }
.reg-checkbox label { margin-bottom: 0; font-weight: 400; font-size: 0.85rem; color: #4a2530; }
.reg-sep { border: 0; border-top: 1px solid var(--c-border); margin: 1.25rem 0; }
.reg-submit { width: 100%; padding: 0.85rem 1rem; background: var(--c-primary); color: #fff; border: 0; border-radius: 10px; font-size: 0.95rem; font-weight: 600; font-family: inherit; cursor: pointer; transition: background 0.15s; margin-top: 0.5rem; }
.reg-submit:hover { background: var(--c-primary-hover); }
.reg-alert { padding: 0.75rem 1rem; border-radius: 8px; font-size: 0.9rem; margin-bottom: 1rem; }
.reg-alert-error { background: #fdecef; color: var(--c-error); border: 1px solid #f5c5cf; }
