/* Genel tema: mavi tonları, sade tipografi */
:root {
  --site-primary: #0d6efd;
  --site-primary-dark: #084298;
  --site-muted: #6c757d;
}

html {
  font-size: 16px;
}

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: #212529;
  background-color: #f8f9fb;
}

.site-header .navbar-brand {
  letter-spacing: 0.02em;
}

/* Yalnızca logo; site adı metni aynı kalır */
.site-header .navbar-brand .navbar-brand-logo {
  height: auto;
  width: auto;
  max-height: 68px;
  object-fit: contain;
}

@media (min-width: 992px) {
  .site-header .navbar-brand .navbar-brand-logo {
    max-height: 82px;
  }
}

.hero {
  background: linear-gradient(120deg, var(--site-primary-dark) 0%, var(--site-primary) 55%, #3d8bfd 100%);
  color: #fff;
  padding: 4rem 0;
}

.hero .lead {
  max-width: 36rem;
  color: rgba(255, 255, 255, 0.92);
}

.feature-card {
  border: none;
  border-radius: 0.75rem;
  box-shadow: 0 0.35rem 1.25rem rgba(13, 110, 253, 0.08);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.feature-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 0.5rem 1.5rem rgba(13, 110, 253, 0.12);
}

.section-title {
  font-weight: 600;
  color: #0b3d6b;
}

.site-footer {
  background: linear-gradient(180deg, #0b3d6b 0%, #062a4a 100%);
}

.site-footer .footer-nav__link:hover {
  color: #fff !important;
  text-decoration: underline !important;
}

.fmg-credit {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.5rem;
  padding: 0.35rem 0.75rem;
  color: rgba(255, 255, 255, 0.75);
  transition: background 0.15s ease, border-color 0.15s ease;
}

.fmg-credit:hover {
  background: rgba(255, 255, 255, 0.13);
  border-color: rgba(255, 255, 255, 0.25);
  color: #fff;
}

.fmg-credit__logo {
  width: 28px;
  height: 28px;
  object-fit: contain;
  border-radius: 6px;
}

/* Sabit aksiyon düğmeleri — konum inline style ile belirlenir */
.floating-actions {
  align-items: flex-end;
}

.floating-actions__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 0.9rem;
  border-radius: 999px;
  background: #fff;
  color: var(--site-primary-dark);
  text-decoration: none;
  font-weight: 600;
  box-shadow: 0 0.4rem 1.2rem rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(13, 110, 253, 0.15);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.floating-actions__btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 0.55rem 1.35rem rgba(0, 0, 0, 0.22);
  color: var(--site-primary);
}

.floating-actions__btn i {
  font-size: 1.25rem;
}

.floating-actions__label {
  max-width: 10rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Mobil + tablet: yalnızca yuvarlak ikon */
@media (max-width: 991.98px) {
  .floating-actions__label {
    display: none;
  }

  .floating-actions__btn {
    padding: 0;
    width: 3rem;
    height: 3rem;
    justify-content: center;
    border-radius: 50%;
  }
}

/* Masaüstünde admin "yalnızca ikon" seçeneği aktifken */
.floating-actions--icons-only .floating-actions__label {
  display: none;
}

.floating-actions--icons-only .floating-actions__btn {
  padding: 0;
  width: 3rem;
  height: 3rem;
  justify-content: center;
  border-radius: 50%;
}

/* Admin panel — sade arayüz; mobilde hamburger + kayan yan menü */
.admin-shell {
  min-height: 100vh;
  display: flex;
  background: #f5f6f8;
  overflow: visible;
}

.admin-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.admin-sidebar {
  width: 260px;
  background: #0b3d6b;
  color: #fff;
  flex-shrink: 0;
}

.admin-sidebar a {
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  display: block;
  padding: 0.55rem 1rem;
  border-radius: 0.35rem;
}

.admin-sidebar a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.admin-content {
  flex: 1;
  padding: 1.5rem;
}

.admin-backdrop {
  display: none;
}

.admin-mobile-topbar {
  display: none;
  padding: 0.65rem 1rem;
  background: #fff;
  border-bottom: 1px solid #dee2e6;
  box-shadow: 0 0.125rem 0.35rem rgba(0, 0, 0, 0.06);
  position: sticky;
  top: 0;
  z-index: 1020;
}

@media (max-width: 991.98px) {
  .admin-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 1040;
    background: rgba(0, 0, 0, 0.45);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
  }

  .admin-backdrop.is-active {
    opacity: 1;
    visibility: visible;
  }

  .admin-shell {
    display: block;
  }

  .admin-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(288px, 88vw);
    max-height: 100vh;
    overflow-y: auto;
    z-index: 1050;
    transform: translateX(-100%);
    transition: transform 0.25s ease;
    box-shadow: none;
    -webkit-overflow-scrolling: touch;
  }

  .admin-sidebar.is-open {
    transform: translateX(0);
    box-shadow: 0.5rem 0 1.5rem rgba(0, 0, 0, 0.2);
  }

  .admin-mobile-topbar {
    display: flex;
  }

  .admin-content {
    padding: 1rem;
  }

  body.admin-menu-open {
    overflow: hidden;
  }
}

@media (min-width: 992px) {
  .admin-backdrop {
    display: none !important;
  }

  .admin-sidebar.is-open {
    transform: none;
    box-shadow: none;
  }
}

.admin-content .table-responsive {
  -webkit-overflow-scrolling: touch;
}

/* jQuery unobtrusive: geçerli özet gizli; admin uyarı kutusu yalnızca hata varken görünür */
.validation-summary-valid {
  display: none;
}

.admin-form-error-panel:has(.validation-summary-valid) {
  display: none !important;
}

.admin-form-error-panel .validation-summary-errors ul {
  margin-bottom: 0;
  padding-left: 1.25rem;
}

/* Summernote (yönetim paneli) — açılır menü / tablo ızgarası kesilmesin, üstte kalsın */
.admin-content form.bg-white,
.admin-content .card {
  overflow: visible !important;
}

.admin-content .note-editor.note-frame {
  border-radius: 0.375rem;
  border-color: #dee2e6;
  overflow: visible !important;
}

.admin-content .note-toolbar {
  background: #f8f9fa;
  overflow: visible !important;
  position: relative;
  z-index: 20;
  flex-wrap: wrap;
}

.admin-content .note-toolbar .note-btn-group {
  position: relative;
}

/* Summernote + Bootstrap 5 birlikte: menüler üst katmanda */
.admin-content .note-toolbar .note-dropdown-menu,
.admin-content .note-toolbar .dropdown-menu {
  z-index: 2050 !important;
}

.admin-content .note-popover {
  z-index: 2050 !important;
}

.admin-content .note-modal-backdrop {
  z-index: 2055 !important;
}

.admin-content .note-modal {
  z-index: 2060 !important;
}

.admin-content .note-handle {
  z-index: 2040 !important;
}

/* Hizmet detayında admin’den gelen HTML gövdesi */
.service-detail-body ul,
.service-detail-body ol {
  padding-left: 1.25rem;
}

.service-detail-body p:last-child {
  margin-bottom: 0;
}

/* Yapılan işler kartları */
.yapilan-is-card .card-img-top {
  object-fit: cover;
  max-height: 200px;
}

.yapilan-is-card--compact .card-img-top {
  max-height: 160px;
}

.yapilan-is-card__placeholder {
  min-height: 140px;
}

.yapilan-is-card--compact .yapilan-is-card__placeholder {
  min-height: 120px;
}
