/* cookie-consent.css - Modern KVKK/GDPR Cookie Banner */

/* Cookie Banner */
.cookie-consent-banner {
  position: fixed;
  bottom: -500px;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  box-shadow: 0 -5px 30px rgba(0, 0, 0, 0.15);
  z-index: 99999;
  transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  border-top: 3px solid #667eea;
  backdrop-filter: blur(10px);
  max-height: 80vh;
  overflow-y: auto;
}

.cookie-consent-banner.show {
  bottom: 0;
}

.cookie-consent-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 30px 40px;
}

.cookie-consent-content {
  display: flex;
  align-items: flex-start;
  gap: 25px;
  margin-bottom: 25px;
}

.cookie-icon {
  font-size: 48px;
  color: #667eea;
  animation: cookieRotate 3s ease-in-out infinite;
}

@keyframes cookieRotate {
  0%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(15deg); }
}

.cookie-text {
  flex: 1;
}

.cookie-title {
  font-size: 22px;
  font-weight: bold;
  color: #2d3748;
  margin-bottom: 10px;
}

.cookie-description {
  font-size: 15px;
  color: #4a5568;
  line-height: 1.6;
  margin: 0;
}

.cookie-link {
  color: #667eea;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s ease;
}

.cookie-link:hover {
  color: #764ba2;
  text-decoration: underline;
}

/* Cookie Actions */
.cookie-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.cookie-btn {
  padding: 12px 28px;
  border-radius: 10px;
  border: none;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.cookie-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.cookie-btn-accept {
  background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
  color: white;
}

.cookie-btn-reject {
  background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
  color: white;
}

.cookie-btn-customize {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.cookie-btn-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.cookie-btn-secondary {
  background: #e2e8f0;
  color: #4a5568;
}

/* Cookie Settings Panel */
.cookie-settings {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 2px solid #e2e8f0;
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.cookie-settings-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.cookie-settings-header h4 {
  font-size: 18px;
  font-weight: bold;
  color: #2d3748;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.cookie-close-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: #e2e8f0;
  color: #4a5568;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cookie-close-btn:hover {
  background: #cbd5e0;
  transform: rotate(90deg);
}

.cookie-settings-body {
  display: grid;
  gap: 20px;
  margin-bottom: 20px;
}

.cookie-category {
  background: #f7fafc;
  padding: 20px;
  border-radius: 12px;
  border: 2px solid #e2e8f0;
  transition: all 0.2s ease;
}

.cookie-category:hover {
  border-color: #cbd5e0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.cookie-category-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.cookie-category-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cookie-category-info input[type="checkbox"] {
  width: 20px;
  height: 20px;
  cursor: pointer;
  accent-color: #667eea;
}

.cookie-category-info input[type="checkbox"]:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.cookie-category-info label {
  font-weight: 600;
  color: #2d3748;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.required-badge {
  background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
  color: white;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: bold;
  text-transform: uppercase;
}

.cookie-category-desc {
  font-size: 13px;
  color: #718096;
  margin: 0;
  padding-left: 32px;
}

.cookie-settings-footer {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  padding-top: 15px;
  border-top: 1px solid #e2e8f0;
}

/* Responsive */
@media (max-width: 768px) {
  .cookie-consent-container {
    padding: 20px;
  }
  
  .cookie-consent-content {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }
  
  .cookie-icon {
    font-size: 40px;
  }
  
  .cookie-actions {
    flex-direction: column;
    width: 100%;
  }
  
  .cookie-btn {
    width: 100%;
    justify-content: center;
  }
  
  .cookie-title {
    font-size: 20px;
  }
  
  .cookie-description {
    font-size: 14px;
  }
}

/* Cookie Settings Button (Footer'da göster) */
.cookie-settings-trigger {
  position: fixed;
  bottom: 20px;
  left: 20px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 12px 20px;
  border-radius: 30px;
  border: none;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
  transition: all 0.3s ease;
  z-index: 9998;
  display: none;
  align-items: center;
  gap: 8px;
}

.cookie-settings-trigger.show {
  display: inline-flex;
}

.cookie-settings-trigger:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

/* Blur efekti (banner açıkken) */
body.cookie-consent-active::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
  z-index: 99998;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

