/**
 * GDPR Cookie Consent Styles
 * Matches Bold Munch brand design
 */

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(145deg, rgba(255, 249, 243, 0.98), rgba(255, 255, 255, 0.98));
  backdrop-filter: blur(12px);
  border-top: 3px solid #F1C40F;
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.15);
  padding: 24px;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  z-index: 10000;
}

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

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

.cookie-banner-text h3 {
  margin: 0 0 8px 0;
  font-family: 'Poppins', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #1A1A1A;
}

.cookie-banner-text p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: #8B4513;
  max-width: 600px;
}

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

/* Cookie Modal */
.cookie-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.cookie-modal-visible {
  opacity: 1;
}

.cookie-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
}

.cookie-modal-content {
  position: relative;
  background: linear-gradient(145deg, #FFF9F3, #FFFFFF);
  border-radius: 24px;
  max-width: 600px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  border: 2px solid rgba(241, 196, 15, 0.3);
  animation: modalSlideIn 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes modalSlideIn {
  from {
    transform: scale(0.8) translateY(40px);
    opacity: 0;
  }
  to {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

.cookie-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 24px 16px;
  border-bottom: 2px solid rgba(241, 196, 15, 0.2);
}

.cookie-modal-header h2 {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: #1A1A1A;
}

.cookie-modal-close {
  background: transparent;
  border: none;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
  color: #8B4513;
  padding: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.cookie-modal-close:hover {
  background: rgba(241, 196, 15, 0.2);
  transform: rotate(90deg);
}

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

.cookie-modal-intro {
  margin: 0 0 24px;
  font-size: 14px;
  line-height: 1.6;
  color: #8B4513;
}

.cookie-category {
  background: rgba(255, 255, 255, 0.6);
  border: 2px solid rgba(241, 196, 15, 0.2);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 16px;
  transition: all 0.3s ease;
}

.cookie-category:hover {
  border-color: rgba(241, 196, 15, 0.4);
  box-shadow: 0 4px 12px rgba(241, 196, 15, 0.1);
}

.cookie-category-header {
  margin-bottom: 8px;
}

.cookie-category-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cookie-category-title input[type="checkbox"] {
  width: 20px;
  height: 20px;
  cursor: pointer;
  accent-color: #E67E22;
}

.cookie-category-title input[type="checkbox"]:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.cookie-category-title label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 16px;
  color: #1A1A1A;
  margin: 0;
}

.cookie-category-title input[type="checkbox"]:disabled + label {
  cursor: not-allowed;
}

.cookie-badge {
  background: linear-gradient(145deg, #27AE60, #229954);
  color: white;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.cookie-category-description {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: #8B4513;
  padding-left: 32px;
}

.cookie-links {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 2px solid rgba(241, 196, 15, 0.2);
  text-align: center;
  font-size: 14px;
}

.cookie-links a {
  color: #E67E22;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.cookie-links a:hover {
  color: #D35400;
  text-decoration: underline;
}

.cookie-modal-footer {
  padding: 16px 24px 24px;
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  border-top: 2px solid rgba(241, 196, 15, 0.2);
}

/* Buttons */
.cookie-btn {
  padding: 12px 24px;
  border: none;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.cookie-btn-primary {
  background: linear-gradient(145deg, #E67E22, #D35400);
  color: white;
  box-shadow: 0 4px 12px rgba(230, 126, 34, 0.3);
}

.cookie-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(230, 126, 34, 0.4);
}

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

.cookie-btn-secondary:hover {
  background: #F1C40F;
  transform: translateY(-2px);
}

.cookie-btn-text {
  background: transparent;
  color: #8B4513;
  padding: 12px 16px;
}

.cookie-btn-text:hover {
  color: #1A1A1A;
  text-decoration: underline;
}

/* Floating Preferences Button */
.cookie-preferences-floating {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(145deg, #E67E22, #D35400);
  border: 3px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 8px 24px rgba(230, 126, 34, 0.4);
  font-size: 24px;
  cursor: pointer;
  z-index: 9999;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cookie-preferences-floating:hover {
  transform: scale(1.1) rotate(15deg);
  box-shadow: 0 12px 32px rgba(230, 126, 34, 0.5);
}

.cookie-preferences-floating:active {
  transform: scale(0.95);
}

/* Notification */
.cookie-notification {
  position: fixed;
  top: 24px;
  right: 24px;
  background: linear-gradient(145deg, #27AE60, #229954);
  color: white;
  padding: 16px 24px;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(39, 174, 96, 0.4);
  font-weight: 600;
  font-size: 14px;
  z-index: 10002;
  transform: translateX(400px);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.cookie-notification-visible {
  transform: translateX(0);
  opacity: 1;
}

/* Responsive Design */
@media (max-width: 768px) {
  .cookie-banner {
    padding: 16px;
  }

  .cookie-banner-content {
    flex-direction: column;
    align-items: stretch;
  }

  .cookie-banner-text h3 {
    font-size: 18px;
  }

  .cookie-banner-text p {
    font-size: 13px;
  }

  .cookie-banner-actions {
    flex-direction: column;
  }

  .cookie-btn {
    width: 100%;
    padding: 14px 20px;
  }

  .cookie-modal-content {
    width: 95%;
    max-height: 95vh;
  }

  .cookie-modal-header {
    padding: 20px 16px 12px;
  }

  .cookie-modal-header h2 {
    font-size: 20px;
  }

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

  .cookie-modal-footer {
    flex-direction: column;
    padding: 12px 16px 20px;
  }

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

  .cookie-preferences-floating {
    bottom: 16px;
    right: 16px;
    width: 48px;
    height: 48px;
    font-size: 20px;
  }

  .cookie-notification {
    top: 16px;
    right: 16px;
    left: 16px;
    font-size: 13px;
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  .cookie-banner,
  .cookie-modal,
  .cookie-btn,
  .cookie-preferences-floating,
  .cookie-notification {
    transition: none;
    animation: none;
  }
}

/* Focus styles for keyboard navigation */
.cookie-btn:focus,
.cookie-modal-close:focus,
.cookie-preferences-floating:focus,
input[type="checkbox"]:focus {
  outline: 3px solid #F1C40F;
  outline-offset: 2px;
}
