/* ══════════════════════════════════════════════════════════════
   SPECIALIST LANDING — Public page for clients
   Prefix: spl- (specialist-landing)
   Dependencies: uses CSS vars from template_config.php (--bg, --accent, etc.)
   ══════════════════════════════════════════════════════════════ */

/* ── Base ── */
.spl-body { margin:0; padding:0; min-height:100vh; background:var(--bg); color:var(--text-primary); }

/* ══ HEADER ══ */
.spl-header {
  position:sticky; top:0; z-index:100;
  background:color-mix(in srgb, var(--bg-elevated) 85%, transparent);
  backdrop-filter:blur(20px) saturate(1.5);
  -webkit-backdrop-filter:blur(20px) saturate(1.5);
  border-bottom:1px solid var(--border);
  transition:box-shadow .25s ease;
}
.spl-header.scrolled { box-shadow:var(--shadow-md); }
.spl-header-inner {
  max-width:960px; margin:0 auto; padding:12px 24px;
  display:flex; align-items:center; gap:12px;
}
.spl-header-avatar {
  width:40px; height:40px; border-radius:50%; object-fit:cover;
  border:2px solid var(--border); flex-shrink:0; transition:border-color .25s ease;
}
.spl-header-avatar:hover { border-color:var(--accent); }
.spl-header-name {
  font-weight:700; font-size:.92rem; color:var(--text-primary);
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
.spl-header-actions { margin-left:auto; display:flex; align-items:center; gap:8px; }
.spl-theme-btn {
  width:36px; height:36px; border-radius:50%;
  border:1px solid var(--border); background:var(--bg-secondary);
  color:var(--text-secondary); cursor:pointer;
  display:flex; align-items:center; justify-content:center; font-size:.95rem;
  transition:all .25s ease; font-family:inherit;
}
.spl-theme-btn:hover { border-color:var(--accent); color:var(--accent); background:var(--accent-soft); }
.spl-header-cta {
  padding:7px 18px; border-radius:100px; background:var(--accent); color:#fff;
  font-weight:600; font-size:.8rem; border:none; cursor:pointer;
  box-shadow:0 2px 10px var(--accent-glow); transition:all .25s ease;
  white-space:nowrap; text-decoration:none; font-family:inherit;
}
.spl-header-cta:hover { background:var(--accent-hover); transform:translateY(-1px); box-shadow:0 4px 18px var(--accent-glow); color:#fff; }

/* ══ HERO ══ */
.spl-hero {
  max-width:960px; margin:0 auto; padding:48px 24px 28px;
  display:flex; align-items:center; gap:28px;
}
.spl-hero-avatar-wrap { position:relative; flex-shrink:0; }
.spl-hero-avatar {
  width:100px; height:100px; border-radius:22px; object-fit:cover;
  border:3px solid var(--bg-elevated); box-shadow:var(--shadow-lg);
  transition:transform .3s ease;
}
.spl-hero-avatar:hover { transform:scale(1.04) rotate(-1deg); }
.spl-hero-placeholder {
  width:100px; height:100px; border-radius:22px;
  background:var(--accent-soft); display:flex; align-items:center; justify-content:center;
  font-size:2.4rem; border:3px solid var(--bg-elevated); box-shadow:var(--shadow-lg);
}
.spl-hero-status {
  position:absolute; bottom:-3px; right:-3px;
  width:22px; height:22px; background:var(--success, #22A861);
  border-radius:50%; border:3px solid var(--bg);
  animation:splPulse 2s ease-in-out infinite;
}
.spl-hero-status-busy { background:var(--warning, #F0A030); }
.spl-hero-status-off { background:var(--text-tertiary); animation:none; }
@keyframes splPulse {
  0%,100% { box-shadow:0 0 0 0 rgba(34,168,97,.35); }
  50% { box-shadow:0 0 0 6px rgba(34,168,97,0); }
}
.spl-hero-info { flex:1; min-width:0; }
.spl-hero-title {
  font-size:clamp(1.5rem,4vw,2rem); font-weight:800;
  line-height:1.2; letter-spacing:-.02em; margin:0 0 4px;
}
.spl-hero-subtitle {
  color:var(--text-secondary); font-size:.9rem; margin:0 0 14px; max-width:400px; line-height:1.5;
}
.spl-hero-badges { display:flex; flex-wrap:wrap; gap:7px; }
.spl-badge {
  display:inline-flex; align-items:center; gap:5px;
  padding:4px 11px; border-radius:100px; font-size:.76rem; font-weight:600;
  border:1px solid var(--border); background:var(--bg-elevated);
  color:var(--text-secondary); transition:all .25s ease;
}
.spl-badge:hover { border-color:var(--accent); color:var(--accent); }
.spl-badge-accent { background:var(--accent-soft); border-color:transparent; color:var(--accent-text); }

@media (max-width:580px) {
  .spl-hero { flex-direction:column; text-align:center; padding:32px 20px 20px; gap:18px; }
  .spl-hero-avatar, .spl-hero-placeholder { width:80px; height:80px; border-radius:18px; }
  .spl-hero-subtitle { max-width:100%; }
  .spl-hero-badges { justify-content:center; }
}

/* ══ TAB NAVIGATION ══ */
.spl-nav { max-width:960px; margin:0 auto; padding:0 24px; position:sticky; top:65px; z-index:90; }
.spl-nav-inner {
  display:flex; gap:2px; border-bottom:1px solid var(--border);
  background:color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter:blur(10px); -webkit-backdrop-filter:blur(10px);
  overflow-x:auto; -webkit-overflow-scrolling:touch; scrollbar-width:none;
}
.spl-nav-inner::-webkit-scrollbar { display:none; }
.spl-nav-tab {
  padding:13px 20px; font-size:.86rem; font-weight:600;
  color:var(--text-tertiary); cursor:pointer; border:none; background:none;
  position:relative; white-space:nowrap; transition:color .25s ease; font-family:inherit;
}
.spl-nav-tab:hover { color:var(--text-primary); }
.spl-nav-tab.active { color:var(--accent-text); }
.spl-nav-tab::after {
  content:''; position:absolute; bottom:-1px; left:50%;
  width:0; height:2.5px; background:var(--accent); border-radius:2px 2px 0 0;
  transform:translateX(-50%); transition:width .25s ease;
}
.spl-nav-tab.active::after { width:calc(100% - 24px); }
.spl-nav-count {
  display:inline-flex; align-items:center; justify-content:center;
  min-width:18px; height:18px; padding:0 5px;
  font-size:.68rem; font-weight:700; border-radius:100px;
  background:var(--bg-tertiary); color:var(--text-tertiary); margin-left:5px;
  transition:all .25s ease;
}
.spl-nav-tab.active .spl-nav-count { background:var(--accent-soft); color:var(--accent-text); }

/* ══ CONTENT SECTIONS ══ */
.spl-main { max-width:960px; margin:0 auto; padding:28px 24px; }
.spl-section { display:none; animation:splFadeUp .3s ease; }
.spl-section.active { display:block; }
@keyframes splFadeUp { from { opacity:0; transform:translateY(10px); } to { opacity:1; transform:translateY(0); } }

.spl-section-header { margin-bottom:24px; }
.spl-section-label {
  display:inline-flex; align-items:center; gap:7px;
  font-size:.7rem; font-weight:700; text-transform:uppercase;
  letter-spacing:.12em; color:var(--accent-text); margin-bottom:6px;
}
.spl-section-label::before { content:''; width:16px; height:2px; background:var(--accent); border-radius:2px; }
.spl-section-title { font-size:clamp(1.2rem,3vw,1.5rem); font-weight:800; line-height:1.25; letter-spacing:-.015em; }
.spl-section-desc { color:var(--text-secondary); font-size:.88rem; margin-top:5px; }

/* ══ SERVICES CARDS ══ */
.spl-svc-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(260px,1fr)); gap:14px; }
.spl-svc-card {
  background:var(--bg-elevated); border:1px solid var(--border);
  border-radius:var(--radius-lg); padding:22px;
  transition:all .25s ease; position:relative; overflow:hidden;
  display:flex; flex-direction:column;
}
.spl-svc-card::before {
  content:''; position:absolute; top:0; left:0; right:0; height:3px;
  background:linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent) 50%, #FF6B8A));
  opacity:0; transition:opacity .25s ease;
}
.spl-svc-card:hover { border-color:var(--border-hover, rgba(0,0,0,.16)); box-shadow:var(--shadow-md); transform:translateY(-2px); }
.spl-svc-card:hover::before { opacity:1; }
.spl-svc-icon {
  width:42px; height:42px; border-radius:12px; background:var(--accent-soft);
  display:flex; align-items:center; justify-content:center; font-size:1.2rem; margin-bottom:14px;
}
.spl-svc-name { font-weight:700; font-size:1rem; margin-bottom:3px; line-height:1.3; }
.spl-svc-name a { color:inherit; text-decoration:none; transition:color .2s; }
.spl-svc-name a:hover { color:var(--accent); }
.spl-svc-desc { font-size:.8rem; color:var(--text-secondary); margin-bottom:16px; flex:1; line-height:1.5; }
.spl-svc-bottom { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-top:auto; }
.spl-svc-price { font-size:1.1rem; font-weight:800; letter-spacing:-.02em; }
.spl-svc-duration { font-size:.74rem; color:var(--text-tertiary); font-weight:500; }
.spl-svc-btn {
  padding:8px 18px; border-radius:100px; background:var(--accent); color:#fff;
  font-weight:600; font-size:.8rem; border:none; cursor:pointer;
  box-shadow:0 2px 10px var(--accent-glow); transition:all .25s ease;
  white-space:nowrap; font-family:inherit; text-decoration:none;
}
.spl-svc-btn:hover { background:var(--accent-hover); transform:translateY(-1px); box-shadow:0 4px 16px var(--accent-glow); color:#fff; }

/* ══ BOOKING SECTION (wraps existing bk-* styles) ══ */
.spl-booking-wrap .bk-wrap {
  background:transparent !important; border:none !important;
  padding:0 !important; box-shadow:none !important;
}
.spl-booking-wrap .rm-header { display:none; }
.spl-booking-wrap .bk-service {
  background:var(--bg-elevated); border:1px solid var(--border);
  border-radius:var(--radius-lg); padding:24px; margin-bottom:14px;
  transition:all .25s ease;
}
.spl-booking-wrap .bk-service:hover {
  border-color:var(--border-hover, rgba(0,0,0,.16));
  box-shadow:var(--shadow-md); transform:translateY(-2px);
}
.spl-booking-wrap .bk-btn {
  box-shadow:0 3px 14px var(--accent-glow);
}

/* ══ GALLERY SECTION (wraps existing tpl-gallery-* styles) ══ */
.spl-gallery-wrap .tpl-gallery-page {
  background:transparent !important; border:none !important;
  padding:0 !important; box-shadow:none !important;
  max-width:100% !important;
}
.spl-gallery-wrap .tpl-gallery-header { display:none; }
.spl-gallery-wrap .tpl-gallery-grid { gap:14px; }
.spl-gallery-wrap .tpl-gallery-card {
  border-radius:var(--radius-lg); transition:all .25s ease;
}
.spl-gallery-wrap .tpl-gallery-card:hover { transform:translateY(-3px); }

/* ══ REVIEWS SECTION (wraps existing reviews-* styles) ══ */
.spl-reviews-wrap .reviews-section { padding:0; }
.spl-reviews-wrap .reviews-header { display:none; }
.spl-reviews-wrap .review-item {
  background:var(--bg-elevated); border:1px solid var(--border);
  border-radius:var(--radius-lg); transition:all .25s ease;
}
.spl-reviews-wrap .review-item:hover {
  border-color:var(--border-hover, rgba(0,0,0,.16));
  box-shadow:var(--shadow-md); transform:translateY(-2px);
}
.spl-reviews-wrap .review-form-card {
  background:var(--bg-elevated); border:1px solid var(--border);
  border-radius:var(--radius-lg);
}
.spl-reviews-wrap .review-section-title { text-align:left; margin-top:0; }

/* ══ EMPTY STATES ══ */
.spl-empty {
  text-align:center; padding:48px 20px; color:var(--text-tertiary);
}
.spl-empty-icon { font-size:2.4rem; margin-bottom:12px; opacity:.5; }
.spl-empty-text { font-size:.9rem; }

/* ══ FOOTER ══ */
.spl-footer {
  text-align:center; padding:40px 24px; color:var(--text-tertiary);
  font-size:.82rem; border-top:1px solid var(--border);
  max-width:960px; margin:40px auto 0;
}
.spl-footer a { color:var(--accent-text); font-weight:600; text-decoration:none; transition:opacity .2s; }
.spl-footer a:hover { opacity:.7; }

/* ══ DETAIL PAGES (album, service detail, booking form) ══ */
.spl-detail { max-width:960px; margin:0 auto; padding:28px 24px; }
.spl-detail-back {
  display:inline-flex; align-items:center; gap:6px; margin-bottom:20px;
  color:var(--text-secondary); text-decoration:none; font-size:.88rem;
  font-weight:500; transition:all .25s ease;
}
.spl-detail-back:hover { color:var(--accent); transform:translateX(-2px); }

/* ══ ANIMATIONS ══ */
.spl-fade { opacity:0; transform:translateY(12px); transition:opacity .4s ease, transform .4s ease; }
.spl-fade.visible { opacity:1; transform:translateY(0); }
.spl-fade.d1 { transition-delay:.05s; }
.spl-fade.d2 { transition-delay:.1s; }
.spl-fade.d3 { transition-delay:.15s; }
.spl-fade.d4 { transition-delay:.2s; }

/* ══ RESPONSIVE ══ */
@media (max-width:640px) {
  .spl-main { padding:20px 16px; }
  .spl-nav { padding:0 16px; top:57px; }
  .spl-header-inner { padding:10px 16px; }
  .spl-header-cta { display:none; }
  .spl-svc-grid { grid-template-columns:1fr; }
  .spl-booking-wrap .bk-service { padding:18px; }
}
