/* ============================================
   AV. MEHMET AKSU — CUSTOM STYLES
   Tailwind CSS ile birlikte kullanılan
   özel stiller ve animasyonlar
   ============================================ */



/* --- Nav Link Underline --- */
.navbar__link {
  position: relative;
}

.navbar__link::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 16px;
  right: 16px;
  height: 2px;
  background: linear-gradient(90deg, #B2852E, #C99D4E);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.navbar__link:hover::after,
.navbar__link--active::after {
  transform: scaleX(1);
}

/* --- Smart Navbar Scroll --- */
.navbar-wrapper {
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.navbar-wrapper--hidden {
  transform: translateY(-100%);
}

.navbar-wrapper--scrolled .top-bar {
  height: 0;
  overflow: hidden;
  opacity: 0;
  border-bottom: none;
  padding: 0;
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.navbar-wrapper--scrolled .navbar {
  box-shadow: 0 4px 24px rgba(16, 24, 32, 0.10);
}

/* --- CTA Button Sweep Effect --- */
.btn-cta {
  position: relative;
  overflow: hidden;
}

.btn-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #101820, #152130);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.btn-cta:hover::before {
  opacity: 1;
}

.btn-cta i,
.btn-cta span {
  position: relative;
  z-index: 1;
}

.btn-cta:hover i {
  transform: rotate(12deg) scale(1.1);
}

/* --- Mobile Menu Slide --- */
.mobile-menu {
  transition: right 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

/* --- Footer Link Hover Effect --- */
.footer__link::before {
  content: '';
  display: inline-block;
  width: 0;
  height: 1px;
  background: #B2852E;
  transition: all 0.3s ease;
  margin-right: 0;
}

.footer__link:hover::before {
  width: 14px;
  margin-right: 8px;
}

.footer__link:hover {
  transform: translateX(6px);
}

/* --- Footer Gold Accent Gradient --- */
.footer__accent {
  height: 3px;
  background: linear-gradient(90deg,
    transparent 0%,
    #96701F 15%,
    #C99D4E 35%,
    #DEBB78 50%,
    #C99D4E 65%,
    #96701F 85%,
    transparent 100%
  );
}

/* --- Footer Heading Underline --- */
.footer__heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 24px;
  height: 2px;
  background: #B2852E;
  opacity: 0.4;
}

/* --- Map Grayscale Effect --- */
.footer__map iframe {
  filter: grayscale(50%) brightness(0.8) contrast(1.1);
  transition: filter 0.5s ease;
}

.footer__map iframe:hover {
  filter: grayscale(0%) brightness(1) contrast(1);
}

/* --- Hamburger Animation --- */
.navbar__hamburger--active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.navbar__hamburger--active span:nth-child(2) {
  opacity: 0;
  transform: translateX(-10px);
}

.navbar__hamburger--active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Scroll Animations --- */
.fade-in-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 { transition-delay: 100ms; }
.delay-2 { transition-delay: 200ms; }
.delay-3 { transition-delay: 300ms; }

/* --- Hero Keyframes --- */
@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeLeft {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.3); }
}

/* --- Mobile Menu Open States --- */
.mobile-menu--open {
  right: 0 !important;
}

.mobile-overlay--visible {
  opacity: 1 !important;
  visibility: visible !important;
}

/* --- Sidebar Custom Scrollbar --- */
.custom-scrollbar::-webkit-scrollbar {
  width: 3px;
}

.custom-scrollbar::-webkit-scrollbar-track {
  background: transparent;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
  background: #DEBB78;
  border-radius: 3px;
}

.custom-scrollbar {
  scrollbar-width: thin;
  scrollbar-color: #DEBB78 transparent;
}

/* --- Footer Heading Mobile Center --- */
@media (max-width: 768px) {
  .footer__heading::after {
    left: 50%;
    transform: translateX(-50%);
  }
}

/* --- Hero Search Bar --- */
.search-hero {
  position: relative;
  max-width: 520px;
  z-index: 20;
}

.search-hero__input {
  width: 100%;
  padding: 16px 20px 16px 52px;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 16px;
  background: white;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: #101820;
  box-shadow: 0 4px 24px rgba(16, 24, 32, 0.06);
  transition: all 0.3s ease;
  outline: none;
}

.search-hero__input::placeholder {
  color: #94a3b8;
  font-size: 13px;
}

.search-hero__input:focus {
  border-color: rgba(178, 133, 46, 0.4);
  box-shadow: 0 8px 32px rgba(16, 24, 32, 0.08), 0 0 0 3px rgba(178, 133, 46, 0.08);
}

.search-hero__icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: #B2852E;
  font-size: 14px;
  pointer-events: none;
  z-index: 2;
}

.search-hero__shortcut {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 3px;
  pointer-events: none;
}

.search-hero__shortcut kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 5px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 5px;
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  color: #94a3b8;
  line-height: 1;
}

/* --- Search Results Dropdown --- */
.search-results {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: white;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(16, 24, 32, 0.12), 0 0 0 1px rgba(0,0,0,0.04);
  max-height: 420px;
  overflow-y: auto;
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.25s cubic-bezier(0.22, 1, 0.36, 1);
  scrollbar-width: thin;
  scrollbar-color: #DEBB78 transparent;
}

.search-results--visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.search-results__empty {
  padding: 40px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.search-results__group {
  padding: 6px 0;
}

.search-results__group + .search-results__group {
  border-top: 1px solid #f1f5f9;
}

.search-results__group-label {
  padding: 8px 16px 4px;
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #94a3b8;
}

/* --- Result Item --- */
.search-result-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  text-decoration: none;
  transition: all 0.15s ease;
  cursor: pointer;
  border-radius: 10px;
  margin: 2px 6px;
}

.search-result-item:hover,
.search-result-item--active {
  background: rgba(178, 133, 46, 0.04);
}

.search-result-item__content {
  flex: 1;
  min-width: 0;
}

.search-result-item__title {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: #101820;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-result-item__category {
  font-size: 11px;
  color: #94a3b8;
  margin-top: 1px;
}

.search-result-item__arrow {
  font-size: 10px;
  color: #cbd5e1;
  opacity: 0;
  transform: translateX(-4px);
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.search-result-item:hover .search-result-item__arrow {
  opacity: 1;
  transform: translateX(0);
  color: #B2852E;
}

/* --- Search Badges --- */
.search-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 6px;
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 600;
  flex-shrink: 0;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.search-badge--service { background: rgba(178, 133, 46, 0.08); color: #96701F; }
.search-badge--sub { background: rgba(100, 116, 139, 0.08); color: #64748b; }
.search-badge--blog { background: rgba(16, 24, 32, 0.06); color: #354C6B; }
.search-badge--page { background: rgba(16, 185, 129, 0.08); color: #047857; }

/* --- Search Highlight --- */
.search-highlight {
  background: rgba(178, 133, 46, 0.15);
  color: #96701F;
  border-radius: 2px;
  padding: 0 1px;
}

/* --- Fullscreen Search Modal --- */
.search-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 12vh;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.search-modal--open {
  opacity: 1;
  visibility: visible;
}

.search-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(16, 24, 32, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.search-modal__container {
  position: relative;
  width: 100%;
  max-width: 600px;
  margin: 0 20px;
  transform: translateY(-20px) scale(0.98);
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.search-modal--open .search-modal__container {
  transform: translateY(0) scale(1);
}

.search-modal__header {
  position: relative;
  background: white;
  border-radius: 20px 20px 0 0;
  border: 1px solid rgba(0,0,0,0.08);
  border-bottom: none;
}

.search-modal__input {
  width: 100%;
  padding: 22px 60px 22px 56px;
  border: none;
  border-radius: 20px 20px 0 0;
  background: transparent;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  color: #101820;
  outline: none;
}

.search-modal__input::placeholder {
  color: #94a3b8;
}

.search-modal__search-icon {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: #B2852E;
  font-size: 16px;
  pointer-events: none;
}

.search-modal__close {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
  color: #64748b;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.search-modal__close:hover {
  background: #101820;
  color: white;
  border-color: #101820;
}

.search-modal__results {
  background: white;
  border: 1px solid rgba(0,0,0,0.08);
  border-top: 1px solid #f1f5f9;
  border-radius: 0 0 20px 20px;
  max-height: 420px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #DEBB78 transparent;
}

.search-modal__results:empty {
  display: none;
}

.search-modal__hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 12px;
  color: #94a3b8;
  font-size: 11px;
  background: white;
  border: 1px solid rgba(0,0,0,0.08);
  border-top: none;
  border-radius: 0 0 20px 20px;
}

.search-modal__hint kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  color: #94a3b8;
}

/* --- Navbar Search Trigger --- */
.navbar-search-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  color: #64748b;
  font-size: 14px;
  cursor: pointer;
  background: transparent;
  transition: all 0.2s ease;
}

.navbar-search-btn:hover {
  border-color: rgba(178, 133, 46, 0.4);
  color: #B2852E;
  background: rgba(178, 133, 46, 0.04);
}

/* --- Responsive --- */
@media (max-width: 640px) {
  .search-hero__shortcut { display: none; }
  .search-modal__hint { display: none; }
  .search-modal__container { margin: 0 12px; }
  .search-modal { padding-top: 6vh; }
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
