/* Çerez Onay Banner - KVKK Uyumlu */
.cookie-consent-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  padding: 20px;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
  z-index: 9999;
  border-top: 3px solid #e63946;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.cookie-consent-banner.show {
  transform: translateY(0);
  animation: slideUpBounce 0.6s ease-out;
}

@keyframes slideUpBounce {
  0% {
    transform: translateY(100%);
    opacity: 0;
  }
  60% {
    transform: translateY(-10px);
  }
  80% {
    transform: translateY(5px);
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

.cookie-consent-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.cookie-consent-content {
  flex: 1;
  min-width: 300px;
}

.cookie-consent-title {
  font-size: 18px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cookie-consent-title::before {
  content: "🍪";
  font-size: 20px;
}

.cookie-consent-text {
  font-size: 14px;
  color: #555;
  line-height: 1.6;
  margin: 0;
}

.cookie-consent-link {
  color: #e63946;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}

.cookie-consent-link:hover {
  color: #d62839;
  text-decoration: underline;
}

.cookie-consent-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.cookie-consent-btn {
  padding: 12px 24px;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.cookie-consent-btn:focus {
  outline: 3px solid #e63946;
  outline-offset: 2px;
}

.cookie-consent-btn:focus:not(:focus-visible) {
  outline: none;
}

.cookie-consent-btn:focus-visible {
  outline: 3px solid #e63946;
  outline-offset: 2px;
}

.cookie-consent-btn-accept {
  background: #e63946;
  color: white;
}

.cookie-consent-btn-accept:hover {
  background: #d62839;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(230, 57, 70, 0.3);
}

.cookie-consent-btn-reject {
  background: transparent;
  color: #555;
  border: 2px solid #ddd;
}

.cookie-consent-btn-reject:hover {
  background: #f5f5f5;
  border-color: #999;
}

.cookie-consent-btn-settings {
  background: transparent;
  color: #e63946;
  border: 2px solid #e63946;
}

.cookie-consent-btn-settings:hover {
  background: #e63946;
  color: white;
}

/* Çerez Ayarları Modal */
.cookie-settings-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 10000;
  overflow-y: auto;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.cookie-settings-modal.show {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.cookie-settings-content {
  background: white;
  border-radius: 12px;
  padding: 30px;
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.cookie-settings-modal.show .cookie-settings-content {
  transform: scale(1);
  animation: scaleUp 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes scaleUp {
  from {
    transform: scale(0.7);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.cookie-settings-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 2px solid #f0f0f0;
}

.cookie-settings-title {
  font-size: 22px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0;
}

.cookie-settings-close {
  background: transparent;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: #999;
  line-height: 1;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: all 0.2s;
}

.cookie-settings-close:hover {
  background: #f0f0f0;
  color: #e63946;
}

.cookie-settings-close:focus {
  outline: 3px solid #e63946;
  outline-offset: 2px;
}
  transition: color 0.2s;
}

.cookie-settings-close:hover {
  color: #333;
}

.cookie-category {
  margin-bottom: 20px;
  padding: 15px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  transition: border-color 0.2s;
}

.cookie-category:hover {
  border-color: #e63946;
}

.cookie-category-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.cookie-category-name {
  font-size: 16px;
  font-weight: 600;
  color: #1a1a1a;
  margin: 0;
}

.cookie-category-required {
  font-size: 12px;
  color: #999;
  font-style: italic;
}

.cookie-category-description {
  font-size: 13px;
  color: #666;
  line-height: 1.5;
  margin: 0;
}

.cookie-toggle {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 26px;
}

.cookie-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.cookie-toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: 0.3s;
  border-radius: 26px;
}

.cookie-toggle-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: 0.3s;
  border-radius: 50%;
}

.cookie-toggle input:checked + .cookie-toggle-slider {
  background-color: #e63946;
}

.cookie-toggle input:focus + .cookie-toggle-slider {
  box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.3);
}

.cookie-toggle input:checked + .cookie-toggle-slider:before {
  transform: translateX(24px);
}

.cookie-toggle input:disabled + .cookie-toggle-slider {
  opacity: 0.5;
  cursor: not-allowed;
}

.cookie-settings-footer {
  margin-top: 25px;
  padding-top: 20px;
  border-top: 2px solid #f0f0f0;
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

/* Responsive Design */
@media (max-width: 768px) {
  .cookie-consent-container {
    flex-direction: column;
    align-items: stretch;
  }

  .cookie-consent-actions {
    width: 100%;
  }

  .cookie-consent-btn {
    flex: 1;
    text-align: center;
  }

  .cookie-settings-content {
    padding: 20px;
    margin: 10px;
  }

  .cookie-settings-footer {
    flex-direction: column;
  }

  .cookie-consent-btn-accept,
  .cookie-consent-btn-reject {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .cookie-consent-banner {
    padding: 15px;
  }

  .cookie-consent-title {
    font-size: 16px;
  }

  .cookie-consent-text {
    font-size: 13px;
  }

  .cookie-consent-btn {
    padding: 10px 16px;
    font-size: 13px;
  }
}
