/**
 * GDPR Compliance Styles
 * Cookie Banner, Badge, and Privacy Components
 */

/* ==================== COOKIE CONSENT BANNER ==================== */
.cookie-consent-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #FFFFFF;
  color: #4A5568;
  padding: 20px;
  z-index: 99999;
  box-shadow: 0 -4px 20px rgba(90, 107, 123, 0.15);
  transform: translateY(100%);
  transition: transform 0.4s ease;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  border-top: 1px solid #E8ECF1;
}

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

.cookie-consent-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.cookie-consent-content {
  flex: 1;
  min-width: 300px;
}

.cookie-consent-content h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 8px 0;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
}

.cookie-consent-content h4 i {
  font-size: 1.3rem;
  color: #60A5FA;
}

.cookie-consent-content p {
  font-size: 0.9rem;
  color: #94A3B8;
  margin: 0;
  line-height: 1.6;
}

.cookie-consent-content a {
  color: #60A5FA;
  text-decoration: underline;
}

.cookie-consent-content a:hover {
  color: #93C5FD;
}

.cookie-consent-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.cookie-btn {
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  font-family: inherit;
}

.cookie-btn-accept {
  background: linear-gradient(135deg, #5B9BD5, #4A8BC4);
  color: #fff;
}

.cookie-btn-accept:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(91, 155, 213, 0.4);
}

.cookie-btn-settings {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.cookie-btn-settings:hover {
  background: rgba(255, 255, 255, 0.15);
}

.cookie-btn-reject {
  background: transparent;
  color: #94A3B8;
  padding: 12px 16px;
}

.cookie-btn-reject:hover {
  color: #fff;
}

/* Cookie Settings Modal */
.cookie-settings-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 100000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

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

.cookie-settings-content {
  background: #fff;
  border-radius: 16px;
  max-width: 500px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.cookie-settings-header {
  padding: 24px;
  border-bottom: 1px solid #E2E8F0;
}

.cookie-settings-header h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #4A5568;
  margin: 0 0 8px 0;
}

.cookie-settings-header p {
  font-size: 0.9rem;
  color: #64748B;
  margin: 0;
}

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

.cookie-category {
  padding: 16px;
  background: #F8FAFC;
  border-radius: 10px;
  margin-bottom: 12px;
}

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

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

.cookie-category-header h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: #4A5568;
  margin: 0;
}

.cookie-category p {
  font-size: 0.85rem;
  color: #64748B;
  margin: 0;
  line-height: 1.5;
}

/* Toggle Switch */
.cookie-toggle {
  position: relative;
  width: 44px;
  height: 24px;
}

.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: #CBD5E1;
  transition: 0.3s;
  border-radius: 24px;
}

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

.cookie-toggle input:checked + .cookie-toggle-slider {
  background-color: #5B9BD5;
}

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

.cookie-toggle input:disabled + .cookie-toggle-slider {
  opacity: 0.6;
  cursor: not-allowed;
}

.cookie-settings-footer {
  padding: 20px 24px;
  border-top: 1px solid #E2E8F0;
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

.cookie-settings-footer .cookie-btn {
  padding: 10px 20px;
}

.cookie-btn-save {
  background: linear-gradient(135deg, #5B9BD5, #4A8BC4);
  color: #fff;
}

.cookie-btn-cancel {
  background: #F1F5F9;
  color: #475569;
}

/* ==================== GDPR COMPLIANCE BADGE ==================== */
.gdpr-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: 8px;
  color: #22C55E;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.gdpr-badge:hover {
  background: rgba(34, 197, 94, 0.25);
  color: #22C55E;
  transform: translateY(-2px);
}

.gdpr-badge i {
  font-size: 1rem;
}

.gdpr-badge-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.gdpr-badge-text small {
  font-size: 0.65rem;
  opacity: 0.8;
  font-weight: 400;
}

/* ==================== CCPA COMPLIANCE BADGE ==================== */
.ccpa-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 8px;
  color: #F59E0B;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.ccpa-badge:hover {
  background: rgba(245, 158, 11, 0.25);
  color: #F59E0B;
  transform: translateY(-2px);
}

.ccpa-badge i {
  font-size: 1rem;
}

.ccpa-badge-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.ccpa-badge-text small {
  font-size: 0.65rem;
  opacity: 0.8;
  font-weight: 400;
}

/* Compliance Badges Container */
.compliance-badges {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* Footer GDPR Section */
.footer-gdpr-section {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 16px;
}

/* ==================== PRIVACY CONSENT CHECKBOX ==================== */
.privacy-consent-group {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 12px;
  padding: 12px;
  background: rgba(91, 155, 213, 0.05);
  border-radius: 8px;
  border: 1px solid rgba(91, 155, 213, 0.1);
}

.privacy-consent-group input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  cursor: pointer;
  accent-color: #5B9BD5;
}

.privacy-consent-group label {
  font-size: 0.8rem;
  color: #64748B;
  line-height: 1.5;
  cursor: pointer;
}

.privacy-consent-group label a {
  color: #5B9BD5;
  text-decoration: underline;
}

.privacy-consent-group label a:hover {
  color: #4A8BC4;
}

/* ==================== DATA DELETION SECTION ==================== */
.data-deletion-section {
  background: #F8FAFC;
  border-radius: 12px;
  padding: 24px;
  margin: 24px 0;
  border: 1px solid #E2E8F0;
}

.data-deletion-section h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #4A5568;
  margin: 0 0 12px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.data-deletion-section h4 i {
  color: #E57373;
}

.data-deletion-section p {
  font-size: 0.9rem;
  color: #64748B;
  margin: 0 0 16px 0;
  line-height: 1.6;
}

.data-deletion-form {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.data-deletion-form input {
  flex: 1;
  min-width: 200px;
  padding: 12px 16px;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  font-size: 0.9rem;
}

.data-deletion-form input:focus {
  outline: none;
  border-color: #5B9BD5;
  box-shadow: 0 0 0 3px rgba(91, 155, 213, 0.1);
}

.data-deletion-form button {
  padding: 12px 24px;
  background: #E57373;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.data-deletion-form button:hover {
  background: #DC2626;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
  .cookie-consent-container {
    flex-direction: column;
    text-align: center;
  }

  .cookie-consent-buttons {
    justify-content: center;
    width: 100%;
  }

  .cookie-btn {
    flex: 1;
    min-width: 100px;
  }

  .footer-gdpr-section {
    justify-content: center;
    flex-wrap: wrap;
  }

  .data-deletion-form {
    flex-direction: column;
  }

  .data-deletion-form input {
    min-width: 100%;
  }
}
