/* 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;
  position: fixed;
  right: 1rem;
  bottom: calc(1rem + env(safe-area-inset-bottom));
  z-index: 1080;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.floating-actions__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 0.9rem;
  border-radius: 999px;
  background: var(--action-bg, #FFBA15);
  color: var(--action-fg, #fff);
  text-decoration: none;
  font-weight: 600;
  box-shadow: 0 0.4rem 1.2rem rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(0, 0, 0, 0.08);
  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(--action-fg, #fff);
}

.floating-actions__btn:focus-visible {
  outline: 3px solid #182C2E;
  outline-offset: 3px;
}

.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%;
}

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

.action-color-preview {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  border-radius: 999px;
  padding: .6rem 1rem;
  background: var(--action-bg);
  color: var(--action-fg);
  font-weight: 600;
}

.action-color-editor {
  padding: 1.1rem;
  border: 1px solid #dce4eb;
  border-radius: .75rem;
  background: #f8fafc;
}

.action-color-editor__fields,
.action-color-editor__result {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.action-color-editor__fields { align-items: flex-start; }
.action-color-editor__fields > div { min-width: 9rem; }
.action-color-preview { max-width: 100%; overflow-wrap: anywhere; }
.action-color-preview--small { padding: .4rem .7rem; font-size: .8rem; }

.action-color-swatch {
  display: inline-block;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, .2);
  vertical-align: middle;
}

/* 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;
  position: sticky;
  top: 0;
  align-self: flex-start;
  height: 100vh;
  height: 100dvh;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.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;
  width: 100%;
  aspect-ratio: 4 / 3;
}

.yapilan-is-card--compact .card-img-top {
  aspect-ratio: 4 / 3;
}

.yapilan-is-card__placeholder {
  aspect-ratio: 4 / 3;
}

.yapilan-is-card--compact .yapilan-is-card__placeholder {
  aspect-ratio: 4 / 3;
}

.yapilan-is-card .ratio { aspect-ratio: 4 / 3; --bs-aspect-ratio: 75%; }
.work-gallery__image { aspect-ratio: 4 / 3; }
.icon-picker__menu { width: min(24rem, calc(100vw - 2rem)); }
.icon-picker__search-wrap { position: sticky; top: 0; z-index: 1; background: white; padding: .25rem .25rem .5rem; }
.icon-picker__options { max-height: 19rem; overflow-y: auto; }
.icon-picker__option.icon-picker__hidden { display: none !important; }
.icon-picker__trigger { min-width: 12rem; text-align: left; }

.dashboard-header { display: flex; align-items: end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.dashboard-kicker { font-size: .7rem; font-weight: 800; letter-spacing: .13em; color: #4d78a6; }
.dashboard-stat { display: flex; flex-direction: column; min-height: 190px; padding: 1.25rem; background: #fff; border: 1px solid #e1e8ef; border-radius: .75rem; color: #173c60; text-decoration: none; transition: border-color .2s, transform .2s; }
.dashboard-stat:hover { color: #173c60; border-color: #7caee4; transform: translateY(-2px); }
.dashboard-stat--accent { background: #0b3d6b; color: #fff; border-color: #0b3d6b; }
.dashboard-stat--accent:hover { color: #fff; border-color: #0d6efd; }
.dashboard-stat__icon { display: inline-flex; align-items: center; justify-content: center; width: 2.5rem; height: 2.5rem; background: #eaf3ff; color: #0b62bc; border-radius: .6rem; margin-bottom: .8rem; font-size: 1.2rem; }
.dashboard-stat--accent .dashboard-stat__icon { background: rgba(255,255,255,.15); color: #fff; }
.dashboard-stat__label { font-size: .85rem; opacity: .75; }
.dashboard-stat strong { font-size: 2.25rem; line-height: 1.15; letter-spacing: -.04em; }
.dashboard-stat__foot { margin-top: auto; font-size: .78rem; opacity: .75; }
.dashboard-panel { background: #fff; border: 1px solid #e1e8ef; border-radius: .75rem; padding: 1.25rem; }
.dashboard-panel__head { display: flex; align-items: end; justify-content: space-between; gap: 1rem; padding-bottom: 1rem; border-bottom: 1px solid #e8edf2; }
.dashboard-panel__head a { font-size: .85rem; text-decoration: none; white-space: nowrap; }
.dashboard-message { display: flex; align-items: center; gap: .75rem; padding: .9rem 0; border-bottom: 1px solid #eef1f4; text-decoration: none; color: #1d354b; }
.dashboard-message:last-child { border-bottom: 0; }
.dashboard-message:hover { color: #0d6efd; }
.dashboard-message__avatar { width: 2.4rem; height: 2.4rem; border-radius: 50%; display: grid; place-items: center; background: #dcecff; color: #0b3d6b; font-weight: 700; flex: none; }
.dashboard-message__body { min-width: 0; flex: 1; }
.dashboard-message__body strong, .dashboard-message__body small { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.dashboard-message__body small { color: #677687; }
.dashboard-message__meta { display: flex; align-items: end; flex-direction: column; gap: .25rem; font-size: .75rem; color: #718195; white-space: nowrap; }
.dashboard-actions a { display: flex; align-items: center; gap: .75rem; padding: .9rem 0; border-bottom: 1px solid #eef1f4; color: #173c60; text-decoration: none; }
.dashboard-actions a:hover { color: #0d6efd; }
.dashboard-actions a > i:first-child { width: 2rem; height: 2rem; display: grid; place-items: center; background: #eaf3ff; border-radius: .4rem; }
.dashboard-actions a > i:last-child { color: #9cabb8; font-size: .8rem; }
.dashboard-publish-note { display: flex; gap: .6rem; padding: .8rem; background: #f0f6fc; border-radius: .5rem; color: #486680; font-size: .8rem; }
@media (max-width: 575.98px) { .dashboard-message__meta { display: none; } }
