/* Ölçülü hareket — site + panel (addons) */
@media (prefers-reduced-motion: reduce) {
  .reveal, .admin-content, .stay-card, .addon-pack, .addon-service, .why-card {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .55s ease, transform .55s cubic-bezier(.22, 1, .36, 1);
  will-change: opacity, transform;
}
.reveal.is-in {
  opacity: 1;
  transform: none;
}

.site-header.is-scrolled {
  box-shadow: 0 10px 32px rgba(16, 39, 30, .12) !important;
}
.site-header .header-inner {
  transition: min-height .25s ease;
}
.site-header.is-scrolled .header-inner {
  min-height: 68px;
}

.stay-card,
.addon-pack,
.addon-service,
.why-card,
.social-post-card {
  transition: transform .28s cubic-bezier(.22, 1, .36, 1), box-shadow .28s ease;
}

.hero-stay-search form,
.stay-search {
  transition: box-shadow .3s ease, transform .3s ease;
}
.hero-stay-search form:focus-within,
.stay-search:focus-within {
  box-shadow: 0 22px 52px rgba(20, 25, 20, .2);
}

.main-nav a:not(.btn-call-header) {
  position: relative;
}
.main-nav a:not(.btn-call-header)::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 6px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  opacity: 0;
  transform: scaleX(.4);
  transition: opacity .2s ease, transform .25s ease;
}
.main-nav a:not(.btn-call-header):hover::after,
.main-nav a.active:not(.btn-call-header)::after {
  opacity: .35;
  transform: scaleX(1);
}
@media (max-width: 900px) {
  .main-nav a:not(.btn-call-header)::after { display: none; }
}

/* Panel sayfa girişi */
.admin-content {
  animation: adminIn .35s ease both;
}
@keyframes adminIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
.admin-hnav a {
  transition: background .18s ease, color .18s ease, transform .18s ease;
}
.admin-hnav a:hover {
  transform: translateY(-1px);
}

/* —— Panel üst menü animasyonları —— */
@keyframes adminChromeIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: none; }
}
@keyframes adminNavStagger {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}
@keyframes licPulse {
  0%, 100% {
    background: #f7ecea;
    border-color: #e8b4aa;
    box-shadow: 0 0 0 0 rgba(196, 92, 74, .45);
    transform: scale(1);
  }
  50% {
    background: #f3d0c8;
    border-color: #c45c4a;
    box-shadow: 0 0 0 8px rgba(196, 92, 74, 0);
    transform: scale(1.04);
  }
}
@keyframes licBlink {
  0%, 100% { opacity: 1; }
  45% { opacity: 1; }
  50% { opacity: .35; }
  55% { opacity: 1; }
}
@keyframes licDot {
  0%, 100% { transform: scale(1); opacity: 1; box-shadow: 0 0 0 0 rgba(196, 92, 74, .55); }
  50% { transform: scale(1.15); opacity: .85; box-shadow: 0 0 0 6px rgba(196, 92, 74, 0); }
}
@keyframes toolShine {
  0% { left: -60%; }
  100% { left: 120%; }
}
@keyframes badgePop {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.12); }
}
@keyframes navActiveGlow {
  0%, 100% { box-shadow: inset 0 0 0 1px #c5d9cd; }
  50% { box-shadow: inset 0 0 0 1px #9fc4ae, 0 4px 12px rgba(47, 107, 79, .12); }
}

.admin-layout--top .admin-chrome {
  animation: adminChromeIn .4s ease both;
}
.admin-layout--top .admin-hnav a {
  animation: adminNavStagger .35s ease both;
}
.admin-layout--top .admin-hnav .nav-group:nth-child(1) a:nth-child(1) { animation-delay: .02s; }
.admin-layout--top .admin-hnav .nav-group:nth-child(1) a:nth-child(2) { animation-delay: .04s; }
.admin-layout--top .admin-hnav .nav-group:nth-child(1) a:nth-child(3) { animation-delay: .06s; }
.admin-layout--top .admin-hnav .nav-group:nth-child(1) a:nth-child(4) { animation-delay: .08s; }
.admin-layout--top .admin-hnav .nav-group:nth-child(1) a:nth-child(5) { animation-delay: .1s; }
.admin-layout--top .admin-hnav .nav-group:nth-child(2) a { animation-delay: .12s; }
.admin-layout--top .admin-hnav .nav-group:nth-child(3) a { animation-delay: .16s; }
.admin-layout--top .admin-hnav .nav-group:nth-child(4) a { animation-delay: .2s; }

.admin-lic-chip {
  position: relative;
  overflow: hidden;
  text-decoration: none !important;
  transition: transform .18s ease, box-shadow .18s ease;
}
.admin-lic-chip.is-ok {
  background: #e8f0eb;
  color: #2f6b4f;
  border: 1px solid #cfe0d6;
}
.admin-lic-chip.is-bad,
a.admin-lic-chip.is-bad {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 900;
  letter-spacing: .06em;
  background: #f7ecea;
  color: #8a4036 !important;
  border: 1px solid #edd7d2;
  cursor: pointer;
}
.admin-lic-chip.is-pulse {
  animation: licPulse 1.4s ease-in-out infinite, licBlink 2.2s ease-in-out infinite;
}
.admin-lic-chip.is-pulse:hover {
  animation: licPulse .9s ease-in-out infinite;
  filter: brightness(1.03);
}
.admin-lic-chip .lic-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #c45c4a;
  flex: 0 0 auto;
  animation: licDot 1.2s ease-in-out infinite;
}
.admin-tool {
  position: relative;
  overflow: hidden;
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease !important;
}
.admin-tool:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(16, 39, 30, .1);
}
.admin-tool:active {
  transform: translateY(0) scale(.97);
}
.admin-tool-shine::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 40%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .55), transparent);
  transform: skewX(-18deg);
  left: -60%;
  pointer-events: none;
}
.admin-tool-shine:hover::after {
  animation: toolShine .65s ease;
}
.admin-layout--top .admin-hnav a.active {
  animation: navActiveGlow 2.4s ease-in-out infinite;
}
.admin-layout--top .nav-badge:not([style*="display:none"]) {
  animation: badgePop 1.6s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  .admin-layout--top .admin-chrome,
  .admin-layout--top .admin-hnav a,
  .admin-lic-chip.is-pulse,
  .admin-lic-chip .lic-pulse-dot,
  .admin-layout--top .admin-hnav a.active,
  .admin-layout--top .nav-badge,
  .admin-tool-shine:hover::after {
    animation: none !important;
  }
  .admin-lic-chip.is-pulse {
    outline: 2px solid #c45c4a;
  }
}
