/* Sağ alt hızlı işlem menüsü */

.quick-actions {
  position: fixed;
  right: 1.25rem;
  bottom: calc(var(--site-bottom-nav-h, 4.5rem) + 0.85rem);
  z-index: 72;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.55rem;
  pointer-events: none;
}

@media (min-width: 1024px) {
  .quick-actions {
    right: 1.5rem;
    bottom: 1.5rem;
  }
}

.quick-actions__fab,
.quick-actions__item,
.quick-actions__panel {
  pointer-events: auto;
}

.quick-actions__fab {
  position: relative;
  display: inline-flex;
  width: 3.15rem;
  height: 3.15rem;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1.5px solid rgba(110, 168, 232, 0.72);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, transparent 50%),
    #121a2a;
  color: #f8fafc;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 10px 28px -14px rgba(0, 0, 0, 0.75);
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    transform 0.18s ease,
    box-shadow 0.2s ease;
}

.quick-actions__fab:hover {
  border-color: rgba(142, 190, 245, 0.9);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, transparent 50%),
    #172234;
  transform: translateY(-1px);
}

.quick-actions__fab:active {
  transform: translateY(0) scale(0.97);
}

.quick-actions__fab:focus-visible {
  outline: 2px solid var(--site-accent, #4a7fd4);
  outline-offset: 3px;
}

.quick-actions__fab-icon {
  position: absolute;
  width: 1.2rem;
  height: 1.2rem;
  transition:
    opacity 0.18s ease,
    transform 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}

.quick-actions__fab-icon--close {
  opacity: 0;
  transform: rotate(-90deg) scale(0.7);
}

.quick-actions--open .quick-actions__fab-icon--dots {
  opacity: 0;
  transform: rotate(90deg) scale(0.7);
}

.quick-actions--open .quick-actions__fab-icon--close {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

.quick-actions__panel {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.45rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(10px) scale(0.96);
  transform-origin: bottom right;
  transition:
    opacity 0.18s ease,
    transform 0.22s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0.18s ease;
}

.quick-actions--open .quick-actions__panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.quick-actions__item {
  display: inline-flex;
  min-width: 10.75rem;
  align-items: center;
  gap: 0.7rem;
  padding: 0.55rem 0.85rem 0.55rem 0.55rem;
  border-radius: 0.85rem;
  border: 1px solid rgba(110, 168, 232, 0.42);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, transparent 55%),
    #141c2c;
  color: #f1f5f9;
  text-decoration: none;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 10px 22px -16px rgba(0, 0, 0, 0.7);
  cursor: pointer;
  transition:
    border-color 0.18s ease,
    background 0.18s ease,
    transform 0.15s ease,
    box-shadow 0.18s ease;
}

.quick-actions__item:hover {
  border-color: rgba(142, 190, 245, 0.7);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, transparent 55%),
    #1a2538;
  transform: translateY(-1px);
}

.quick-actions__item:active {
  transform: translateY(0) scale(0.99);
}

.quick-actions__item:focus-visible {
  outline: 2px solid var(--site-accent, #4a7fd4);
  outline-offset: 2px;
}

.quick-actions__item-icon {
  display: inline-flex;
  width: 2rem;
  height: 2rem;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border-radius: 0.55rem;
  border: 1px solid rgba(110, 168, 232, 0.35);
  background: rgba(10, 16, 28, 0.75);
  color: #8ec0f5;
}

.quick-actions__item-icon svg {
  width: 1.05rem;
  height: 1.05rem;
}

.quick-actions__item-label {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.quick-actions__item--register .quick-actions__item-icon {
  border-color: rgba(232, 121, 140, 0.45);
  background: rgba(56, 24, 32, 0.55);
  color: #f0a8b4;
}

.quick-actions__item--register:hover {
  border-color: rgba(232, 121, 140, 0.55);
}

/* Back-to-top: FAB'ın üstünde kalsın */
.site-back-to-top {
  bottom: calc(var(--site-bottom-nav-h, 4.5rem) + 0.85rem + 3.85rem) !important;
  right: 1.25rem !important;
  z-index: 71 !important;
}

@media (min-width: 1024px) {
  .site-back-to-top {
    bottom: calc(1.5rem + 3.85rem) !important;
    right: 1.5rem !important;
  }
}

[data-theme="light"] .quick-actions__fab {
  border-color: rgba(74, 127, 212, 0.45);
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 10px 24px -14px rgba(15, 23, 42, 0.35);
}

[data-theme="light"] .quick-actions__item {
  border-color: rgba(74, 127, 212, 0.28);
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 10px 22px -16px rgba(15, 23, 42, 0.28);
}

[data-theme="light"] .quick-actions__item:hover {
  background: #f4f8fd;
}

[data-theme="light"] .quick-actions__item-icon {
  border-color: rgba(74, 127, 212, 0.28);
  background: #eef4fb;
  color: #3b82c4;
}

[data-theme="light"] .quick-actions__item--register .quick-actions__item-icon {
  border-color: rgba(220, 100, 120, 0.35);
  background: #fdecee;
  color: #c24157;
}

@media (prefers-reduced-motion: reduce) {
  .quick-actions__fab,
  .quick-actions__fab-icon,
  .quick-actions__panel,
  .quick-actions__item {
    transition-duration: 0.01ms !important;
  }
}
