/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: all 0.25s var(--ease);
  border: 2px solid transparent;
  white-space: nowrap;
  line-height: 1;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: var(--primary);
  color: white;
}

.btn-primary:hover {
  background: var(--primary-dark);
  box-shadow: var(--shadow-md);
}

.btn-accent {
  background: var(--accent);
  color: white;
}

.btn-accent:hover {
  background: var(--accent-dark);
  box-shadow: var(--shadow-md);
}

.btn-ghost {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

.btn-ghost:hover {
  background: var(--primary-ghost);
}

.btn-outline {
  background: transparent;
  color: var(--dark-500);
  border-color: var(--light-300);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-white {
  background: white;
  color: var(--primary-dark);
}

.btn-white:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-1px);
}

.btn-lg {
  padding: 16px 32px;
  font-size: 16px;
  border-radius: var(--radius-md);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 13px;
}

.btn-icon {
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: var(--radius-sm);
}

.btn-full {
  width: 100%;
}

.btn-loading {
  position: relative;
  color: transparent !important;
  pointer-events: none;
}

.btn-loading::after {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ===== CARDS ===== */
.card {
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--light-200);
  overflow: hidden;
  transition: all 0.3s var(--ease);
}

.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.card-body {
  padding: 24px;
}

.card-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--light-200);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--light-200);
  background: var(--light-100);
}

.card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.card-flat {
  box-shadow: none;
  border: 1px solid var(--light-300);
}

.card-flat:hover {
  border-color: var(--primary);
}

/* ===== FORM ELEMENTS ===== */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--dark-700);
  margin-bottom: 6px;
}

.form-label .required {
  color: var(--danger);
  margin-left: 2px;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 12px 16px;
  background: white;
  border: 1.5px solid var(--light-300);
  border-radius: var(--radius-sm);
  font-size: 15px;
  color: var(--dark);
  transition: all 0.2s var(--ease);
  outline: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-ghost);
}

.form-input::placeholder {
  color: var(--dark-100);
}

.form-input.error {
  border-color: var(--danger);
}

.form-textarea {
  min-height: 100px;
  resize: vertical;
}

.form-select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23546E7A' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

.form-help {
  font-size: 12px;
  color: var(--dark-100);
  margin-top: 4px;
}

.form-error {
  font-size: 12px;
  color: var(--danger);
  margin-top: 4px;
}

.form-row {
  display: grid;
  gap: 16px;
}

.form-row-2 {
  grid-template-columns: 1fr 1fr;
}

.form-row-3 {
  grid-template-columns: 1fr 1fr 1fr;
}

.form-check {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.form-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
}

/* ===== BADGES ===== */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 600;
  border-radius: var(--radius-full);
  letter-spacing: 0.3px;
}

.badge-primary {
  background: var(--primary-ghost);
  color: var(--primary);
}

.badge-success {
  background: rgba(39, 174, 96, 0.1);
  color: var(--success);
}

.badge-warning {
  background: rgba(242, 153, 74, 0.1);
  color: var(--warning);
}

.badge-danger {
  background: rgba(235, 87, 87, 0.1);
  color: var(--danger);
}

.badge-info {
  background: rgba(45, 156, 219, 0.1);
  color: var(--info);
}

.badge-secondary {
  background: var(--light-200);
  color: var(--dark-300);
}

/* ===== STARS ===== */
.star {
  font-size: 16px;
}

.star.filled {
  color: #F2C94C;
}

.star.half {
  color: #F2C94C;
}

.star.empty {
  color: var(--light-300);
}

/* ===== TABS ===== */
.tabs {
  display: flex;
  gap: 4px;
  border-bottom: 2px solid var(--light-200);
  margin-bottom: 24px;
}

.tab-btn {
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--dark-300);
  background: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all 0.2s;
}

.tab-btn:hover {
  color: var(--primary);
}

.tab-btn.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

/* ===== STAT BOX ===== */
.stat-box {
  text-align: center;
  padding: 24px;
}

.stat-number {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 14px;
  color: var(--dark-300);
  font-weight: 500;
}

/* ===== SEARCH BAR ===== */
.search-bar {
  display: flex;
  align-items: center;
  background: white;
  border: 1.5px solid var(--light-300);
  border-radius: var(--radius-full);
  padding: 4px 6px 4px 20px;
  transition: all 0.3s var(--ease);
  max-width: 480px;
}

.search-bar:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-ghost);
}

.search-bar input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 15px;
  padding: 8px 0;
  background: transparent;
}

.search-bar .btn {
  border-radius: var(--radius-full);
}

/* ===== COMPANY CARD ===== */
.company-card {
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--light-200);
  padding: 24px;
  display: flex;
  gap: 20px;
  transition: all 0.3s var(--ease);
}

.company-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  border-color: var(--primary-light);
}

.company-avatar {
  width: 64px;
  height: 64px;
  background: var(--primary-ghost);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  flex-shrink: 0;
}

.company-info {
  flex: 1;
}

.company-name {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 4px;
}

.company-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--dark-300);
  margin-bottom: 8px;
}

.company-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.company-tag {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  background: var(--light-100);
  border-radius: var(--radius-full);
  color: var(--dark-300);
}

/* ===== STEP INDICATOR ===== */
.steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 40px;
}

.step {
  display: flex;
  align-items: center;
  gap: 10px;
}

.step-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--light-300);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  color: var(--dark-300);
  transition: all 0.3s;
}

.step.active .step-circle {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

.step.completed .step-circle {
  background: var(--success);
  border-color: var(--success);
  color: white;
}

.step-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--dark-300);
}

.step.active .step-label {
  color: var(--primary);
  font-weight: 600;
}

.step-line {
  width: 60px;
  height: 2px;
  background: var(--light-300);
  margin: 0 12px;
}

.step.completed+.step-line,
.step.completed~.step-line {
  background: var(--success);
}

/* ===== FEATURE CARD ===== */
.feature-card {
  text-align: center;
  padding: 32px 24px;
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--light-200);
  transition: all 0.3s var(--ease);
}

.feature-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: transparent;
}

.feature-icon {
  width: 64px;
  height: 64px;
  background: var(--primary-ghost);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 28px;
  transition: all 0.3s;
}

.feature-card:hover .feature-icon {
  background: var(--primary);
  transform: scale(1.1);
}

.feature-card:hover .feature-icon svg {
  color: white;
}

.feature-title {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
}

.feature-desc {
  font-size: 14px;
  color: var(--dark-300);
  line-height: 1.6;
}

/* ===== TABLE ===== */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 24px 0;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  background: white;
  border: 1px solid var(--light-200);
}

.svc-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
  background: white;
}

.svc-table thead {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
}

.svc-table th {
  padding: 18px 24px;
  text-align: left;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.svc-table td {
  padding: 16px 24px;
  font-size: 15px;
  border-bottom: 1px solid var(--light-200);
  color: var(--dark-500);
  line-height: 1.5;
}

.svc-table tr:last-child td {
  border-bottom: none;
}

.svc-table tr:hover td {
  background: var(--primary-ghost);
}

.svc-table .price-tag {
  font-weight: 800;
  color: var(--primary);
  font-size: 16px;
  background: var(--primary-ghost);
  padding: 4px 10px;
  border-radius: 6px;
}

.svc-table .badge {
  font-size: 12px;
  padding: 4px 12px;
}

/* ===== SERVICE PAGE SPECIFIC ===== */
.svc-detailed-content {
  margin-top: 32px;
}
.svc-section {
  margin-bottom: 48px;
}
.svc-h2 {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 800;
  color: var(--dark-700);
  margin-bottom: 24px;
  position: relative;
  padding-bottom: 12px;
  line-height: 1.3;
}
.svc-h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 4px;
  background: var(--primary);
  border-radius: 2px;
}
.svc-section p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--dark-400);
  margin-bottom: 16px;
}

/* ===== EMPTY STATE ===== */
.empty-state {
  text-align: center;
  padding: 60px 24px;
}

.empty-icon {
  font-size: 56px;
  margin-bottom: 16px;
  opacity: 0.4;
}

.empty-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}

.empty-desc {
  font-size: 15px;
  color: var(--dark-300);
  margin-bottom: 24px;
}

/* Auth tabs (email / phone login) */
.auth-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 20px;
  border: 2px solid var(--light-200);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.auth-tab {
  flex: 1;
  padding: 12px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  background: var(--light-100);
  color: var(--dark-300);
  cursor: pointer;
  border: none;
  transition: all 0.2s;
}

.auth-tab.active {
  background: var(--primary);
  color: white;
}

.auth-tab-content {
  display: none;
}

.auth-tab-content.active {
  display: block;
}

/* ===== FLOATING TEKLİF AL BUTONU ===== */
.fab-teklif {
  position: fixed;
  bottom: 28px;
  right: 24px;
  z-index: 8888;
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #f97316 0%, #ea6c0a 100%);
  color: white;
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  padding: 14px 22px;
  border-radius: 50px;
  box-shadow: 0 6px 24px rgba(249, 115, 22, 0.45), 0 2px 8px rgba(0, 0, 0, 0.15);
  animation: fabBounceIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) both, fabFloat 3.5s ease-in-out 1s infinite;
  transition: transform 0.2s, box-shadow 0.2s;
  white-space: nowrap;
}

.fab-teklif:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 10px 32px rgba(249, 115, 22, 0.55), 0 4px 12px rgba(0, 0, 0, 0.2);
}

.fab-teklif:active {
  transform: scale(0.97);
}

.fab-teklif-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.fab-teklif-pulse {
  position: absolute;
  inset: 0;
  border-radius: 50px;
  animation: fabPulse 2.5s ease-out 2s infinite;
  pointer-events: none;
}

@keyframes fabBounceIn {
  0% {
    opacity: 0;
    transform: translateY(60px) scale(0.7);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes fabFloat {

  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-6px);
  }
}

@keyframes fabPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(249, 115, 22, 0.5);
  }

  70% {
    box-shadow: 0 0 0 14px rgba(249, 115, 22, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(249, 115, 22, 0);
  }
}

/* Panel modunda ve teklif al sayfasında gizle */
.panel-mode .fab-teklif,
body.hide-fab .fab-teklif {
  display: none !important;
}

/* Mobil - biraz küçük */
@media (max-width: 768px) {
  .fab-teklif {
    bottom: 20px;
    right: 16px;
    padding: 12px 18px;
    font-size: 14px;
    gap: 8px;
  }
}

/* ===== NAV DROPDOWN (Hizmet Bölgeleri) ===== */
.nav-dropdown {
  position: relative;
  display: inline-block;
}

.nav-dropdown-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 4px;
  color: inherit;
}

.dropdown-arrow {
  font-size: 11px;
  transition: transform 0.25s var(--ease);
  display: inline-block;
}

.nav-dropdown-btn[aria-expanded="true"] .dropdown-arrow {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 200px;
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 40px rgba(0,0,0,0.14), 0 2px 8px rgba(0,0,0,0.08);
  border: 1px solid var(--light-200);
  padding: 8px 0;
  z-index: 9000;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transform: translateX(-50%) translateY(-8px);
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0.2s;
  max-height: 70vh;
  overflow-y: auto;
}

.nav-dropdown-menu::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 12px;
  height: 12px;
  background: white;
  border-left: 1px solid var(--light-200);
  border-top: 1px solid var(--light-200);
  rotate: 45deg;
}

.nav-dropdown-menu.open {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.dropdown-item {
  display: block;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 500;
  color: var(--dark-500);
  white-space: nowrap;
  transition: background 0.15s, color 0.15s, padding-left 0.15s;
  text-decoration: none;
}

.dropdown-item:hover {
  background: var(--primary-ghost);
  color: var(--primary);
  padding-left: 26px;
}

/* Mobile: dropdown açılınca sayfada görünsün */
@media (max-width: 900px) {
  .nav-dropdown-menu {
    position: static;
    transform: none;
    box-shadow: none;
    border: 1px solid var(--light-200);
    border-radius: var(--radius-md);
    margin: 8px 0;
    max-height: 300px;
  }
  .nav-dropdown-menu.open {
    transform: none;
  }
  .nav-dropdown-menu::before {
    display: none;
  }
}