/* Cookie Banner Styles - Modern Glassmorphism Design */
.cookie-consent-banner {
  position: fixed;
  z-index: 9999;
  width: 100%;
  max-width: 100%;
  padding: 0;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  color: var(--color-text);
  box-shadow: 
    0 -8px 32px rgba(0, 0, 0, 0.15),
    0 0 0 1px rgba(255, 255, 255, 0.2) inset;
  font-family: var(--font-family);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  bottom: 0;
  left: 0;
  right: 0;
  transform: translateY(100%);
  opacity: 0;
  border-top: 2px solid rgba(var(--primary-rgb), 0.3);
}

.cookie-consent-banner.active {
  transform: translateY(0);
  opacity: 1;
  animation: floatUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes floatUp {
  0% {
    transform: translateY(100%);
    opacity: 0;
  }
  60% {
    transform: translateY(-5px);
    opacity: 1;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

.cookie-consent-banner__content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 1.5rem 2rem;
  position: relative;
}

.cookie-consent-banner__content::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(var(--primary-rgb), 0.1) 50%, 
    transparent 100%);
  animation: shimmer 3s ease-in-out infinite 2s;
  pointer-events: none;
}

@keyframes shimmer {
  0% { left: -100%; }
  50% { left: 100%; }
  100% { left: 100%; }
}

.cookie-consent-banner__text {
  flex: 1;
}

.cookie-consent-banner__title {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cookie-consent-banner__title::before {
  content: '🍪';
  font-size: 1.5rem;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.cookie-consent-banner__description {
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  opacity: 0.9;
}

.cookie-consent-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.cookie-consent-banner__button {
  border: none;
  border-radius: 50px;
  padding: 12px 24px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.cookie-consent-banner__button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.cookie-consent-banner__button:hover::before {
  left: 100%;
}

.cookie-consent-banner__button--accept {
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  color: white;
  border: 2px solid transparent;
}

.cookie-consent-banner__button--accept:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(var(--primary-rgb), 0.3);
}

.cookie-consent-banner__button--reject {
  background: rgba(255, 255, 255, 0.8);
  color: var(--color-text);
  border: 2px solid rgba(var(--primary-rgb), 0.2);
  backdrop-filter: blur(10px);
}

.cookie-consent-banner__button--reject:hover {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(var(--primary-rgb), 0.3);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.cookie-consent-banner__button--settings {
  background: rgba(var(--primary-rgb), 0.1);
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
  backdrop-filter: blur(10px);
}

.cookie-consent-banner__button--settings:hover {
  background: rgba(var(--primary-rgb), 0.2);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(var(--primary-rgb), 0.2);
}

.cookie-consent-banner__link {
  color: var(--color-primary);
  text-decoration: none;
  margin-right: 1rem;
  font-size: 0.95rem;
  font-weight: 500;
  position: relative;
  transition: color 0.3s ease;
}

.cookie-consent-banner__link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  transition: width 0.3s ease;
}

.cookie-consent-banner__link:hover::after {
  width: 100%;
}

.cookie-consent-banner__link:hover {
  color: var(--color-accent);
}

/* Cookie Preferences Modal */
.cookie-preferences-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  font-family: var(--font-family);
}

.cookie-preferences-modal.active {
  display: flex;
}

.cookie-preferences-modal__backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  animation: fadeIn 0.3s ease;
}

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

.cookie-preferences-modal__container {
  position: relative;
  width: 90%;
  max-width: 800px;
  max-height: 90vh;
  overflow-y: auto;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  color: var(--color-text);
  border-radius: 20px;
  border: 1px solid rgba(var(--primary-rgb), 0.2);
  box-shadow: 
    0 20px 60px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.2) inset;
  display: flex;
  flex-direction: column;
  animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideUp {
  from { 
    opacity: 0; 
    transform: translateY(30px) scale(0.9); 
  }
  to { 
    opacity: 1; 
    transform: translateY(0) scale(1); 
  }
}

.cookie-preferences-modal__header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cookie-preferences-modal__title {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
}

.cookie-preferences-modal__close {
  background: none;
  border: none;
  font-size: 1.5rem;
  line-height: 1;
  padding: 0.25rem;
  cursor: pointer;
  color: var(--color-text-muted);
}

.cookie-preferences-modal__close:hover {
  color: var(--color-text);
}

.cookie-preferences-modal__content {
  padding: 1.5rem;
  flex: 1;
  overflow-y: auto;
}

.cookie-preferences-modal__description {
  margin-top: 0;
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.cookie-preferences-modal__categories {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.cookie-preferences-modal__category {
  border: 1px solid var(--color-border);
  border-radius: 6px;
  overflow: hidden;
}

.cookie-preferences-modal__category-header {
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--color-background-alt);
}

.cookie-preferences-modal__category-toggle {
  display: flex;
  align-items: center;
}

.cookie-preferences-modal__category-label {
  margin-left: 0.5rem;
  font-weight: 600;
  cursor: pointer;
}

.cookie-preferences-modal__required-badge {
  margin-left: 0.5rem;
  font-size: 0.8em;
  font-weight: normal;
  color: var(--color-text-muted);
}

.cookie-preferences-modal__category-description {
  padding: 0 1rem 1rem;
  margin: 0;
  line-height: 1.5;
  font-size: 0.9rem;
}

.cookie-preferences-modal__examples-title {
  margin: 1rem 0 0.5rem;
  font-weight: 600;
}

.cookie-preferences-modal__examples-list {
  margin: 0.5rem 0;
  padding-left: 1.5rem;
}

.cookie-preferences-modal__example-item {
  margin-bottom: 0.5rem;
}

.cookie-preferences-modal__footer {
  padding: 1.5rem;
  border-top: 1px solid var(--color-border);
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
}

.cookie-preferences-modal__button {
  border: none;
  border-radius: 4px;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s;
}

.cookie-preferences-modal__button--save {
  background-color: var(--color-primary);
  color: white;
}

.cookie-preferences-modal__button--save:hover {
  background-color: var(--color-primary-dark);
}

.cookie-preferences-modal__button--cancel {
  background-color: var(--color-background-alt);
  color: var(--color-text);
}

.cookie-preferences-modal__button--cancel:hover {
  background-color: var(--color-border);
}

/* Responsive styles */
@media (max-width: 768px) {
  .cookie-consent-banner__content {
    flex-direction: column;
    align-items: flex-start;
    padding: 1.5rem;
    gap: 1.5rem;
  }
  
  .cookie-consent-banner__actions {
    width: 100%;
    margin-top: 0;
    justify-content: space-between;
    gap: 0.5rem;
  }
  
  .cookie-consent-banner__button {
    flex: 1;
    text-align: center;
    min-width: 0;
    font-size: 0.9rem;
    padding: 10px 16px;
  }
  
  .cookie-consent-banner__title {
    font-size: 1.2rem;
  }
  
  .cookie-consent-banner__description {
    font-size: 0.95rem;
  }
  
  .cookie-preferences-modal__container {
    width: 95%;
    max-height: 95vh;
  }
  
  .cookie-preferences-modal__header,
  .cookie-preferences-modal__content,
  .cookie-preferences-modal__footer {
    padding: 1rem;
  }
  
  .cookie-preferences-modal__title {
    font-size: 1.2rem;
  }
  
  .cookie-preferences-modal__category-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .cookie-preferences-modal__footer {
    flex-direction: column-reverse;
  }
  
  .cookie-preferences-modal__button {
    width: 100%;
  }
}