/* ===========================
   Cookie Consent Banner Styles
   =========================== */

@keyframes slideUp {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes slideDown {
  from {
    transform: translateY(0);
    opacity: 1;
  }
  to {
    transform: translateY(100%);
    opacity: 0;
  }
}

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #ffffff;
  border-top: 1px solid #e5e5e5;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
  z-index: 9999;
  animation: slideUp 0.4s ease-out;
}

.cookie-banner-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 40px;
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}

.cookie-banner-text {
  flex: 1;
  min-width: 300px;
}

.cookie-banner-text h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  color: #000000;
  font-family: 'DM Sans', sans-serif;
}

.cookie-banner-text p {
  font-size: 14px;
  line-height: 1.6;
  color: #666666;
  margin: 0;
}

.cookie-banner-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.cookie-btn {
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'DM Sans', sans-serif;
  white-space: nowrap;
}

.cookie-btn-primary {
  background: #000000;
  color: #ffffff;
}

.cookie-btn-primary:hover {
  background: #333333;
}

.cookie-btn-secondary {
  background: transparent;
  color: #000000;
  border: 1px solid #000000;
}

.cookie-btn-secondary:hover {
  background: #f5f5f5;
}

.cookie-policy-link {
  font-size: 13px;
  color: #666666;
  text-decoration: underline;
  white-space: nowrap;
}

.cookie-policy-link:hover {
  color: #000000;
}

/* Cookie Settings Modal */
.cookie-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.cookie-modal-content {
  background: #ffffff;
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  animation: slideInModal 0.3s ease;
}

@keyframes slideInModal {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.cookie-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px;
  border-bottom: 1px solid #e5e5e5;
}

.cookie-modal-header h3 {
  font-size: 20px;
  font-weight: 400;
  margin: 0;
  font-family: 'DM Serif Display', serif;
}

.cookie-modal-close {
  background: transparent;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #666666;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.3s ease;
}

.cookie-modal-close:hover {
  color: #000000;
}

.cookie-modal-body {
  padding: 24px;
}

.cookie-category {
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid #e5e5e5;
}

.cookie-category:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.cookie-category-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
}

.cookie-category-header h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  color: #000000;
}

.cookie-category-header p {
  font-size: 14px;
  line-height: 1.6;
  color: #666666;
  margin: 0;
}

/* Toggle Switch */
.cookie-switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 26px;
  flex-shrink: 0;
}

.cookie-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.cookie-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #cccccc;
  transition: 0.3s;
  border-radius: 26px;
}

.cookie-slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.3s;
  border-radius: 50%;
}

.cookie-switch input:checked + .cookie-slider {
  background-color: #000000;
}

.cookie-switch input:checked + .cookie-slider:before {
  transform: translateX(24px);
}

.cookie-switch input:disabled + .cookie-slider {
  opacity: 0.5;
  cursor: not-allowed;
}

.cookie-modal-footer {
  padding: 24px;
  border-top: 1px solid #e5e5e5;
  text-align: center;
}

.cookie-modal-footer .cookie-btn {
  width: 100%;
}

/* Responsive */
@media (max-width: 768px) {
  .cookie-banner-content {
    padding: 20px;
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
  }
  
  .cookie-banner-text {
    min-width: auto;
  }
  
  .cookie-banner-actions {
    flex-direction: column;
  }
  
  .cookie-btn {
    width: 100%;
  }
  
  .cookie-policy-link {
    text-align: center;
    display: block;
  }
  
  .cookie-category-header {
    flex-direction: column;
    gap: 12px;
  }
  
  .cookie-switch {
    align-self: flex-start;
  }
}

@media (max-width: 480px) {
  .cookie-banner-text h3 {
    font-size: 16px;
  }
  
  .cookie-banner-text p {
    font-size: 13px;
  }
  
  .cookie-btn {
    padding: 10px 20px;
    font-size: 13px;
  }
  
  .cookie-modal-content {
    max-height: 95vh;
  }
}
