@import url('base.css');

body { background: var(--p-bg, #fff); color: var(--p-text, #0f172a); }

/* ---------- Top bar ---------- */
.top-bar {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
}
.top-bar-inner {
  max-width: 560px;
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.top-bar-lang { position: relative; }
.top-bar-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  font-weight: 700;
  font-size: 14px;
  color: var(--color-text);
}
.top-bar-actions { display: flex; align-items: center; gap: 8px; }
.top-bar-login { background: var(--p-primary, #2563eb); color: #fff; border-color: transparent; }

.lang-popup {
  display: none;
  position: absolute;
  top: 46px;
  inset-inline-start: 0;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  min-width: 140px;
  overflow: hidden;
  z-index: 600;
}
.lang-popup.open { display: block; }
.lang-popup-item { display: block; padding: 10px 14px; font-size: 14px; font-weight: 600; }
.lang-popup-item:hover { background: #f1f5f9; }
.lang-popup-item.active { color: var(--p-primary, #2563eb); }

.profile-page {
  max-width: 560px;
  margin: 0 auto;
  padding-bottom: 60px;
}

.cover {
  position: relative;
  z-index: 1;
  height: 200px;
  background-size: cover;
  background-position: center;
  background-color: var(--p-primary, #2563eb);
  overflow: hidden;
}
.cover-placeholder {
  background: linear-gradient(135deg, var(--p-primary, #2563eb), #1e293b);
}
.cover-fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(255,255,255,0) 35%, var(--p-bg, #fff) 100%);
  pointer-events: none;
}

/* ---------- Tab navigation ---------- */
.tab-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 8px;
  margin: 10px 0;
}
.tab-nav-list {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scroll-behavior: smooth;
  flex: 1;
  scrollbar-width: none;
}
.tab-nav-list::-webkit-scrollbar { display: none; }
.tab-nav-item {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  padding: 10px 16px;
  border-radius: 999px;
  background: #f1f5f9;
  border: none;
  font-weight: 700;
  font-size: 13px;
  color: var(--color-muted);
  flex-shrink: 0;
}
.tab-nav-item.active { background: var(--p-primary, #2563eb); color: #fff; }
.tab-nav-icon { font-size: 14px; }
.tab-nav-arrow {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #1e293b;
  color: #fff;
  border: none;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tab-content { display: none; }
.tab-content.active { display: block; }
.empty-tab-msg { color: var(--color-muted); text-align: center; padding: 30px 0; font-size: 14px; }

.profile-header {
  position: relative;
  z-index: 5;
  text-align: center;
  padding: 0 20px 20px;
  margin-top: -64px;
}

.profile-avatar {
  width: 108px;
  height: 108px;
  border-radius: 50%;
  border: 5px solid var(--color-surface);
  object-fit: cover;
  margin: 0 auto 14px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.18);
  background: #fff;
  display: block;
}
.profile-avatar-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  font-weight: 800;
  color: #fff;
  background: var(--p-primary, #2563eb);
}

.profile-name {
  font-size: 22px;
  font-weight: 800;
  margin: 4px 0 2px;
}

.profile-tagline {
  color: var(--color-muted);
  font-size: 14px;
  margin: 0 0 14px;
  line-height: 1.6;
}

.quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}
.qa-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--p-primary, #2563eb);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  border: none;
}
.qa-whatsapp { background: #25d366; }

.section { padding: 20px; }
.section-title {
  font-size: 16px;
  font-weight: 800;
  margin: 0 0 12px;
}

.profile-description {
  line-height: 1.8;
  font-size: 15px;
  color: var(--color-text);
}

.link-list { display: flex; flex-direction: column; gap: 10px; }
.link-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  transition: var(--transition);
}
.link-item:hover { border-color: var(--p-primary, #2563eb); transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.link-icon { font-size: 20px; }
.link-title { flex: 1; font-weight: 600; font-size: 14px; }
.link-arrow { color: var(--color-muted); font-size: 18px; }

.services-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
.service-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.service-image { width: 100%; height: 160px; object-fit: cover; }
.service-body { padding: 14px 16px; }
.service-name { font-size: 15px; font-weight: 700; margin: 0 0 4px; }
.service-desc { font-size: 13px; color: var(--color-muted); margin: 0 0 8px; line-height: 1.6; }
.service-price { font-weight: 800; color: var(--p-primary, #2563eb); margin: 0 0 10px; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}
.gallery-item { padding: 0; border: none; background: none; border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 1; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; }

.contact-box p { margin: 0 0 8px; font-size: 14px; }
.hours-list { margin-top: 14px; border-top: 1px solid var(--color-border); padding-top: 12px; }
.hours-list h3 { font-size: 14px; margin: 0 0 8px; }
.hours-row { display: flex; justify-content: space-between; font-size: 13px; padding: 4px 0; color: var(--color-muted); }
.contact-actions { display: flex; gap: 10px; margin-top: 14px; }
.contact-actions .btn { flex: 1; }

.profile-footer-actions { display: flex; gap: 10px; }
.profile-footer-actions .btn { flex: 1; }

.profile-powered { text-align: center; font-size: 12px; color: var(--color-muted); padding: 20px; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; background: rgba(0,0,0,0.9);
  display: none; align-items: center; justify-content: center; z-index: 9999;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 92%; max-height: 88%; border-radius: 8px; }
.lightbox-close { position: absolute; top: 20px; inset-inline-end: 20px; background: none; border: none; color: #fff; font-size: 24px; }

/* Modal */
.modal { position: fixed; inset: 0; background: rgba(15,23,42,0.5); display: none; align-items: center; justify-content: center; z-index: 9999; }
.modal.open { display: flex; }
.modal-content { background: #fff; border-radius: var(--radius-lg); padding: 24px; text-align: center; width: 90%; max-width: 320px; position: relative; }
.modal-close { position: absolute; top: 12px; inset-inline-end: 12px; background: none; border: none; font-size: 18px; }

@media (min-width: 640px) {
  .services-grid { grid-template-columns: 1fr 1fr; }
}
