/* =================== COOKIE BANNER V2 =================== */

@keyframes cookieSlideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.cookies-wrap {
  position: fixed;
  right: 20px;
  bottom: 20px;
  left: 20px;
  z-index: 7950;
  text-align: center;
  display: none;
  animation: cookieSlideUp 0.5s var(--ease) forwards;
}

.cookies {
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  padding: 20px 48px 20px 24px;
  position: relative;
  background: rgba(28, 25, 23, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--text-secondary);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(245, 166, 35, 0.04);
}

.cookies::before {
  display: none;
}

.cookies section {
  position: relative;
  text-align: left;
}

/* Kapatma Butonu */
.cookies-close {
  position: absolute;
  top: -10px;
  right: -10px;
  width: 28px;
  height: 28px;
}

.cookies-close span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  text-indent: -9999px;
  background: linear-gradient(135deg, var(--gold), var(--amber));
  cursor: pointer;
  border: 2px solid var(--surface-card);
  box-shadow: 0 2px 8px rgba(245, 166, 35, 0.3);
  transition: all 0.3s var(--ease);
  position: relative;
}

.cookies-close span::after {
  content: '';
  position: absolute;
  width: 12px;
  height: 12px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230C0A09' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M18 6L6 18M6 6l12 12'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
}

.cookies-close span:hover {
  transform: scale(1.15) rotate(90deg);
  box-shadow: 0 4px 16px rgba(245, 166, 35, 0.5);
}

/* Responsive */
@media (max-width: 640px) {
  .cookies-wrap {
    right: 12px;
    bottom: 12px;
    left: 12px;
  }

  .cookies {
    padding: 16px 40px 16px 16px;
    font-size: 0.8rem;
    border-radius: 12px;
  }

  .cookies-close {
    top: -8px;
    right: -8px;
    width: 24px;
    height: 24px;
  }

  .cookies-close span::after {
    width: 10px;
    height: 10px;
  }
}
