/* KVKK Uyumlu Cookie Banner - PLAN.md'ye uygun */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--surface-color);
  border-top: 3px solid var(--primary-color);
  box-shadow: 0 -2px 10px rgba(42, 123, 163, 0.1);
  padding: 20px 0;
  z-index: 10000;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.cookie-banner.show {
  transform: translateY(0);
}

.cookie-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.cookie-text {
  flex: 1;
  min-width: 300px;
}

.cookie-text h6 {
  color: var(--text-primary);
  font-weight: 600;
  margin-bottom: 8px;
}

.cookie-text p {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 0;
  line-height: 1.5;
}

.cookie-buttons {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.cookie-btn {
  padding: 8px 16px;
  border-radius: var(--border-radius);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 2px solid transparent;
}

.cookie-btn-accept {
  background-color: var(--primary-color);
  color: #fff;
  border-color: var(--primary-color);
}

.cookie-btn-accept:hover {
  background-color: var(--secondary-color);
  border-color: var(--secondary-color);
  color: #fff;
}

.cookie-btn-settings {
  background-color: transparent;
  color: var(--primary-color);
  border-color: var(--border-color);
}

.cookie-btn-settings:hover {
  background-color: var(--border-color);
  color: var(--primary-color);
}

.cookie-btn-reject {
  background-color: transparent;
  color: var(--text-muted);
  border-color: var(--border-color);
}

.cookie-btn-reject:hover {
  background-color: var(--error-color);
  border-color: var(--error-color);
  color: #fff;
}

/* Cookie Settings Modal */
.cookie-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10001;
  padding: 20px;
}

.cookie-modal.show {
  display: flex;
}

.cookie-modal-content {
  background: var(--surface-color);
  border-radius: var(--border-radius);
  max-width: 600px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.cookie-modal-header {
  padding: 20px 20px 0;
  border-bottom: 1px solid var(--border-color);
}

.cookie-modal-header h5 {
  color: var(--text-primary);
  font-weight: 600;
  margin-bottom: 10px;
}

.cookie-modal-body {
  padding: 20px;
}

.cookie-category {
  margin-bottom: 20px;
  padding: 15px;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
}

.cookie-category-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.cookie-category h6 {
  color: var(--text-primary);
  font-weight: 600;
  margin: 0;
}

.cookie-toggle {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 24px;
}

.cookie-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.cookie-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--border-color);
  transition: 0.3s;
  border-radius: 24px;
}

.cookie-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.3s;
  border-radius: 50%;
}

input:checked + .cookie-slider {
  background-color: var(--primary-color);
}

input:checked + .cookie-slider:before {
  transform: translateX(26px);
}

.cookie-category p {
  color: var(--text-muted);
  font-size: 14px;
  margin: 0;
  line-height: 1.5;
}

.cookie-modal-footer {
  padding: 0 20px 20px;
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

/* Responsive */
@media (max-width: 768px) {
  .cookie-content {
    flex-direction: column;
    text-align: center;
  }
  
  .cookie-text {
    min-width: auto;
  }
  
  .cookie-buttons {
    justify-content: center;
  }
  
  .cookie-modal {
    padding: 10px;
  }
  
  .cookie-modal-content {
    max-height: 90vh;
  }
}
