/**
 * adsoyad.org.tr - Bebek İsmi Bulucu Specific Styles (bebek-ismi-bulucu.css)
 */

/* Main Container */
.finder-main-container {
  padding-bottom: 5rem;
}

/* Wizard Box */
.wizard-card {
  width: 100%;
  margin-bottom: 2.5rem;
  background: #ffffff;
  border: 1px solid var(--border-color);
  box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.05), 0 2px 8px -2px rgba(0, 0, 0, 0.02);
  padding: 2.5rem 3rem;
  border-radius: var(--radius-lg);
  backdrop-filter: blur(16px);
  position: relative;
  overflow: hidden;
}

@media (max-width: 768px) {
  .wizard-card {
    padding: 1.5rem 1.25rem;
  }
}

/* Stepper Navigation */
.wizard-steps-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid var(--border-color);
  width: 100%;
}

.wizard-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.32rem 0.45rem;
  border-radius: 50px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  white-space: nowrap;
  user-select: none;
}

.wizard-step:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
  padding: 0.32rem 0.75rem 0.32rem 0.45rem;
}

.wizard-step.active {
  background: #eef2ff;
  border-color: var(--color-primary);
  box-shadow: 0 2px 10px rgba(99, 102, 241, 0.15);
  padding: 0.32rem 0.85rem 0.32rem 0.45rem;
}

.step-num {
  width: 26px;
  height: 26px;
  min-width: 26px;
  border-radius: 50%;
  background: #e2e8f0;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  font-weight: 700;
  transition: all 0.25s ease;
}

.wizard-step.active .step-num {
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 2px 6px rgba(99, 102, 241, 0.35);
}

.step-label {
  max-width: 0;
  opacity: 0;
  margin-left: 0;
  overflow: hidden;
  font-size: 0.84rem;
  font-weight: 600;
  color: #64748b;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  white-space: nowrap;
}

.wizard-step:hover .step-label {
  max-width: 140px;
  opacity: 1;
  margin-left: 0.45rem;
  color: #334155;
}

.wizard-step.active .step-label {
  max-width: 140px;
  opacity: 1;
  margin-left: 0.45rem;
  color: #4338ca;
  font-weight: 700;
}

.step-counter-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.22rem 0.55rem;
  border-radius: 20px;
  min-width: 44px;
  width: 44px;
  box-sizing: border-box;
  text-align: center;
  flex-shrink: 0;
}

.step-counter-badge .step-cur {
  color: #16a34a;
  font-weight: 800;
  margin-right: 1px;
}

.wizard-step-pane {
  display: none;
  animation: fadeInPane 0.25s ease forwards;
}

.wizard-step-pane.active {
  display: block;
}

@keyframes fadeInPane {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.wizard-pane-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.15rem;
}

.wizard-pane-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--color-text-primary);
  margin: 0;
}

.wizard-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-color);
  flex-wrap: wrap;
  gap: 1rem;
}

.wizard-actions-right {
  display: flex;
  gap: 0.6rem;
  width: 100%;
  justify-content: flex-end;
}

.wizard-actions-between {
  display: flex;
  gap: 0.6rem;
}

.btn-wizard-nav {
  padding: 0.6rem 1.4rem;
  font-size: 0.88rem;
}

.btn-wizard-prev {
  padding: 0.6rem 1.2rem;
  font-size: 0.88rem;
}

.btn-wizard-submit {
  padding: 0.75rem 2rem;
  font-size: 0.96rem;
  font-weight: 700;
  box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3);
}

/* Form Grids */
.form-grid-step1 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

@media (max-width: 680px) {
  .form-grid-step1 {
    grid-template-columns: 1fr;
  }
}

.form-grid-2col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

@media (max-width: 580px) {
  .form-grid-2col {
    grid-template-columns: 1fr;
  }
}

.form-grid-step4 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1.1rem;
}

@media (max-width: 580px) {
  .form-grid-step4 {
    grid-template-columns: 1fr;
  }
}

.form-group-compact {
  margin-bottom: 0;
}

.form-group-mb-115 {
  margin-bottom: 1.25rem;
}

.grid-col-full {
  grid-column: 1 / -1;
  margin-bottom: 0;
}

.surname-header-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.4rem;
}

.surname-hint {
  font-size: 0.74rem;
  color: #6366f1;
  font-weight: 500;
}

/* Segmented Controls */
.segmented-control {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  background: #f1f5f9;
  padding: 4px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  gap: 4px;
  position: relative;
  user-select: none;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.segmented-control.two-state {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.segmented-control.three-state {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.segmented-btn {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.55rem 0.4rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.84rem;
  font-weight: 600;
  color: #64748b;
  text-align: center;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  position: relative;
  border: 1px solid transparent;
  background: transparent;
  overflow: hidden;
  text-overflow: ellipsis;
  box-sizing: border-box;
}

.segmented-btn input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 0;
  height: 0;
  margin: 0;
}

.segmented-btn:hover {
  color: #1e293b;
  background: rgba(255, 255, 255, 0.6);
}

.segmented-btn:has(input:checked),
.segmented-btn.active {
  background: #ffffff;
  color: #4338ca;
  font-weight: 700;
  border-color: rgba(0, 0, 0, 0.04);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04);
}

.segmented-btn.duality-opt:has(input:checked) {
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

/* Chip Groups */
.form-label-title {
  font-weight: 700;
  font-size: 0.83rem;
  color: var(--color-text-primary);
  margin-bottom: 0.55rem;
  display: block;
  letter-spacing: -0.01em;
}

.form-label-field {
  font-weight: 600;
  font-size: 0.81rem;
  color: #334155;
  margin-bottom: 0.4rem;
  display: block;
}

.chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.42rem;
  margin-top: 0;
}

.chip-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  padding: 0.35rem 0.65rem;
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 500;
  color: #475569;
  transition: all 0.2s ease;
  position: relative;
  user-select: none;
}

.chip-item input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.chip-item:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #0f172a;
}

.chip-item:has(input:checked) {
  background: #eef2ff;
  border-color: #6366f1;
  color: #4338ca;
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(99, 102, 241, 0.15);
}

/* Grandparents / Miras Box */
.grandparents-box {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border: 1px dashed #cbd5e1;
  border-radius: var(--radius-md);
  padding: 1.15rem;
  margin-bottom: 1.25rem;
}

.grandparents-header {
  margin-bottom: 0.75rem;
}

.grandparents-title {
  font-weight: 700;
  color: #4338ca;
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.grandparents-sub {
  font-size: 0.75rem;
  color: #64748b;
  margin-top: 0.15rem;
}

.grandparents-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.legacy-help-text {
  margin-top: 0.45rem;
  font-size: 0.76rem;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid #e0e7ff;
  border-radius: 8px;
  padding: 0.45rem 0.65rem;
  line-height: 1.4;
}

.legacy-help-title {
  font-weight: 700;
  color: #4338ca;
  margin-bottom: 0.15rem;
}

.legacy-help-desc {
  color: #64748b;
  font-size: 0.74rem;
}

/* Quick Prompts in Step 3 */
.free-text-header {
  margin-bottom: 0.35rem;
}

.free-text-label {
  font-weight: 700;
  font-size: 0.84rem;
  color: #4338ca;
  display: block;
  margin-bottom: 0.15rem;
}

.free-text-sub {
  font-size: 0.75rem;
  color: #64748b;
}

.quick-chips-wrapper {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.5rem;
  flex-wrap: wrap;
}

.quick-prompt-label {
  font-size: 0.76rem;
  font-weight: 600;
  color: #64748b;
}

.quick-prompt-links {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.quick-prompt-chip {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 0.2rem 0.55rem;
  font-size: 0.75rem;
  color: #475569;
  cursor: pointer;
  transition: all 0.15s ease;
}

.quick-prompt-chip:hover {
  background: #eef2ff;
  border-color: #c7d2fe;
  color: #4338ca;
}

/* Duality Helper Box */
.duality-box {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid #e0e7ff;
  border-radius: 8px;
  margin-top: 0.45rem;
  overflow: hidden;
  font-size: 0.75rem;
}

.duality-row {
  display: grid;
  grid-template-columns: 88px 1fr;
  padding: 0.35rem 0.55rem;
  align-items: center;
}

.duality-row-border {
  border-bottom: 1px solid #f1f5f9;
}

.duality-title-natural {
  color: #4f46e5;
  font-weight: 700;
}

.duality-title-polar {
  color: #7c3aed;
  font-weight: 700;
}

.duality-desc {
  color: var(--color-text-secondary);
}

/* Results Area */
.results-area-hidden,
#results-area.results-area-hidden {
  display: none;
}

.profile-summary-card {
  background: linear-gradient(135deg, #f8fafc 0%, #eef2ff 100%);
  border: 1px solid #c7d2fe;
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  margin-bottom: 2rem;
}

.profile-summary-card:empty {
  display: none;
  padding: 0;
  margin: 0;
  border: none;
}

.profile-summary-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.6rem;
}

.profile-summary-title {
  font-weight: 700;
  color: #1e1b4b;
  font-size: 0.88rem;
}

.profile-summary-time {
  font-size: 0.75rem;
  color: #64748b;
}

.profile-pills-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.profile-pill {
  display: inline-flex;
  align-items: center;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 0.25rem 0.65rem;
  font-size: 0.78rem;
  color: #334155;
}

.profile-pill-duality {
  background: #fae8ff;
  color: #86198f;
  border-color: #f0abfc;
}

.results-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
}

.result-tabs {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.result-tab {
  background: #ffffff;
  border: 1px solid var(--border-color);
  color: var(--color-text-secondary);
  padding: 0.45rem 0.9rem;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.result-tab:hover {
  background: #f8fafc;
  color: var(--color-text-primary);
}

.result-tab.active {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25);
}

.result-sort-wrapper {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.result-sort-label {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin: 0;
}

.result-sort-select {
  padding: 0.4rem 0.8rem;
  font-size: 0.85rem;
  width: auto;
}

/* Name Result Cards */
.names-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.25rem;
}

.name-result-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.name-result-card:hover {
  border-color: #c7d2fe;
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.name-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.65rem;
}

.name-card-header-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.name-card-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--color-text-primary);
}

.btn-fav {
  background: none;
  border: none;
  font-size: 1.25rem;
  color: #cbd5e1;
  cursor: pointer;
  transition: color 0.15s ease, transform 0.15s ease;
  line-height: 1;
  padding: 0 0.2rem;
}

.btn-fav:hover {
  transform: scale(1.2);
  color: #f59e0b;
}

.btn-fav.active {
  color: #f59e0b;
}

.btn-swap-order {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 0.2rem 0.55rem;
  font-size: 0.72rem;
  color: #475569;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-swap-order:hover {
  background: #eef2ff;
  border-color: #c7d2fe;
  color: #4338ca;
}

.name-card-surname-preview {
  font-size: 0.8rem;
  color: #94a3b8;
  margin-top: -0.15rem;
  margin-bottom: 0.4rem;
}

/* Score Ring Banner & Score Tables */
.result-score-banner {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  background: #f8fafc;
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.85rem;
  margin-bottom: 0.85rem;
  border: 1px solid #f1f5f9;
}

.score-circle {
  width: 54px;
  height: 54px;
  min-width: 54px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.score-circle.score-green { background: #ecfdf5; border: 2px solid #10b981; color: #059669; }
.score-circle.score-blue { background: #eff6ff; border: 2px solid #3b82f6; color: #2563eb; }
.score-circle.score-amber { background: #fffbeb; border: 2px solid #f59e0b; color: #d97706; }

.score-num {
  font-size: 1rem;
  line-height: 1;
}

.score-lbl {
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
  margin-top: 1px;
}

.score-table-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
  font-size: 0.74rem;
}

.score-table-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.score-table-key {
  color: var(--color-text-secondary);
}

.score-table-val {
  font-weight: 700;
  color: var(--color-text-primary);
}

.score-table-val.highlight {
  color: #4f46e5;
}

/* Meaning */
.name-card-meaning {
  margin-bottom: 0.75rem;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--color-text-secondary);
}

.name-card-meaning-title {
  color: var(--color-text-primary);
  font-weight: 700;
}

.result-warning-box {
  background: #fffbeb;
  border: 1px solid #fef3c7;
  color: #92400e;
  border-radius: var(--radius-sm);
  padding: 0.45rem 0.65rem;
  font-size: 0.78rem;
  margin-bottom: 0.75rem;
}

/* How It Works Accordion */
.how-it-works-box {
  margin-top: 0.4rem;
}

.how-it-works-toggle {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-sm);
  padding: 0.38rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
  transition: all 0.15s ease;
}

.how-it-works-toggle:hover {
  background: #eef2ff;
  border-color: #c7d2fe;
  color: #4338ca;
}

.legacy-help-title {
  font-weight: 700;
  color: #4338ca;
  margin-bottom: 0.15rem;
}

.legacy-help-desc {
  color: #64748b;
  font-size: 0.74rem;
}

.how-it-works-content {
  display: none;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-top: none;
  border-bottom-left-radius: var(--radius-sm);
  border-bottom-right-radius: var(--radius-sm);
  padding: 0.65rem 0.85rem;
  font-size: 0.76rem;
}

.how-it-works-content.active {
  display: block;
}

.onomastic-table {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.onomastic-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.onomastic-row-full {
  flex-direction: column;
  align-items: flex-start;
  margin-top: 0.25rem;
  padding-top: 0.25rem;
  border-top: 1px dashed #f1f5f9;
}

.onomastic-key {
  color: #64748b;
  font-weight: 600;
}

.onomastic-val {
  font-weight: 700;
  color: #1e293b;
}

.onomastic-note {
  font-weight: 400;
  color: #475569;
  font-size: 0.74rem;
  line-height: 1.4;
  margin-top: 0.15rem;
}

/* Card Actions Footer */
.name-card-footer {
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.btn-card-action {
  font-size: 0.78rem;
}

/* No Results Card */
.no-results-card {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem;
  background: #ffffff;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.no-results-icon {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.no-results-title {
  color: var(--color-text-primary);
}

/* Loading Spinner */
.match-loading-spinner-wrap {
  display: none;
  text-align: center;
  padding: 4rem 0;
}

.match-spinner-margin {
  margin: 0 auto 1.5rem auto;
}

.match-loading-title {
  color: var(--color-text-primary);
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.match-loading-desc {
  color: var(--color-text-secondary);
  font-size: 0.95rem;
}

/* Share Canvas & Actions */

.share-canvas-wrap {
  background: #f8fafc;
  border-radius: var(--radius-md);
  padding: 1rem;
  text-align: center;
  margin-bottom: 1.25rem;
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.share-canvas-el {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.share-privacy-box {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.25rem;
  background: #f8fafc;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
}

.share-privacy-label {
  font-size: 0.88rem;
  color: var(--color-text-primary);
  margin: 0;
  cursor: pointer;
}

.share-actions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 0.75rem;
}

.btn-whatsapp-theme {
  border-color: #22c55e;
  color: #22c55e;
}
