/* ============================================================
   GDPR-Compliant Cookie Banner Styles
   ============================================================ */

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(11, 26, 46, 0.98);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 20px 0;
  z-index: 1000;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 -4px 20px rgba(11, 26, 46, 0.3);
}

.cookie-banner.show {
  transform: translateY(0);
}

.cookie-content {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
}

.cookie-text {
  flex: 1;
  min-width: 0;
}

.cookie-text h3 {
  color: #ffffff;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
  line-height: 1.3;
}

.cookie-text p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.875rem;
  line-height: 1.5;
  margin: 0 0 12px 0;
}

.cookie-policy-link {
  color: #00AEEF;
  text-decoration: underline;
  font-weight: 500;
}

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

.cookie-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-shrink: 0;
  min-width: 280px;
}

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

.cookie-actions .btn {
  font-size: 0.8125rem;
  padding: 10px 16px;
  white-space: nowrap;
  border-radius: 6px;
  font-weight: 600;
  transition: all 0.2s ease;
  flex: 1;
  justify-content: center;
  min-height: 40px;
}

.btn-accept {
  background: #0057B8;
  color: #ffffff;
  border: 2px solid #0057B8;
}

.btn-accept:hover {
  background: #0078D4;
  border-color: #0078D4;
}

.btn-reject {
  background: transparent;
  color: rgba(255, 255, 255, 0.8);
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-reject:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.5);
}

.btn-customize {
  background: transparent;
  color: #00AEEF;
  border: 2px solid #00AEEF;
  width: 100%;
}

.btn-customize:hover {
  background: rgba(0, 174, 239, 0.1);
  color: #ffffff;
}

/* Cookie Customization Modal */
.cookie-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(4px);
  z-index: 1001;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.cookie-modal.show {
  display: flex;
}

.cookie-modal-content {
  background: #ffffff;
  border-radius: 12px;
  padding: 32px;
  max-width: 600px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.cookie-modal h3 {
  color: #0B1A2E;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.cookie-modal p {
  color: #4A5C6E;
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 24px;
}

.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 32px;
}

.cookie-category {
  border: 1px solid #D8E2EC;
  border-radius: 8px;
  padding: 20px;
}

.cookie-category-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.cookie-category h4 {
  color: #0B1A2E;
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
}

.cookie-toggle {
  position: relative;
  display: inline-block;
  width: 48px;
  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: #D8E2EC;
  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%;
}

.cookie-toggle input:checked + .cookie-slider {
  background-color: #0057B8;
}

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

.cookie-toggle input:disabled + .cookie-slider {
  background-color: #B0BEC9;
  cursor: not-allowed;
}

.cookie-category-desc {
  color: #4A5C6E;
  font-size: 0.875rem;
  line-height: 1.5;
  margin: 0;
}

.cookie-modal-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

.cookie-modal-actions .btn {
  padding: 12px 24px;
  font-size: 0.9rem;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s ease;
}

.btn-save-preferences {
  background: #0057B8;
  color: #ffffff;
  border-color: #0057B8;
}

.btn-save-preferences:hover {
  background: #0078D4;
  border-color: #0078D4;
}

.btn-cancel {
  background: transparent;
  color: #4A5C6E;
  border-color: #D8E2EC;
}

.btn-cancel:hover {
  background: #F4F7FB;
  border-color: #B0BEC9;
}

/* Responsive Design */
@media (max-width: 768px) {
  .cookie-content {
    flex-direction: column;
    gap: 20px;
  }
  
  .cookie-actions {
    min-width: auto;
    width: 100%;
  }
  
  .cookie-actions-row {
    flex-direction: column;
  }
  
  .cookie-modal-content {
    padding: 24px;
    margin: 10px;
  }
  
  .cookie-modal-actions {
    flex-direction: column;
  }
  
  .cookie-category-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

@media (max-width: 480px) {
  .cookie-banner {
    padding: 16px 0;
  }
  
  .cookie-content {
    padding: 0 16px;
  }
  
  .cookie-modal {
    padding: 10px;
  }
  
  .cookie-modal-content {
    padding: 20px;
  }
}