/* Cookie Banner Styles */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(31, 41, 55, 0.95);
  backdrop-filter: blur(10px);
  color: white;
  padding: 1.5rem 0;
  z-index: 1000;
  transform: translateY(100%);
  transition: transform 0.3s ease-in-out;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

.cookie-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: start;
}

.cookie-text {
  padding-right: 1rem;
}

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

.cookie-actions {
  display: grid;
  grid-template-columns: repeat(3, auto) 1fr;
  gap: 1rem;
  align-items: center;
  justify-items: start;
}

.cookie-btn {
  padding: 8px 16px;
  border: none;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: var(--font-family);
  white-space: nowrap;
}

.cookie-accept {
  background: #4F46E5;
  color: white;
}

.cookie-accept:hover {
  background: #4338CA;
}

.cookie-decline {
  background: transparent;
  color: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.cookie-decline:hover {
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

.cookie-customize {
  background: transparent;
  color: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.cookie-customize:hover {
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

.cookie-link {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: underline;
  font-size: 0.875rem;
  transition: color 0.2s ease;
  justify-self: end;
}

.cookie-link:hover {
  color: white;
}

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

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

.cookie-modal-content {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  max-width: 500px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
}

.cookie-modal h3 {
  margin: 0 0 1.5rem 0;
  color: var(--text-primary);
  font-size: 1.25rem;
}

.cookie-option {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border-light);
}

.cookie-option:last-child {
  border-bottom: none;
}

.cookie-option-info h4 {
  margin: 0 0 0.5rem 0;
  color: var(--text-primary);
  font-size: 1rem;
}

.cookie-option-info p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.875rem;
  line-height: 1.4;
}

.cookie-toggle {
  position: relative;
  width: 50px;
  height: 24px;
  background: #ccc;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.3s;
}

.cookie-toggle.active {
  background: var(--primary-color);
}

.cookie-toggle.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.cookie-toggle::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  background: white;
  border-radius: 50%;
  transition: transform 0.3s;
}

.cookie-toggle.active::after {
  transform: translateX(26px);
}

.cookie-modal-actions {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  justify-content: flex-end;
}

.cookie-modal-btn {
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: var(--font-family);
}

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

.cookie-modal-save:hover {
  background: #4338CA;
}

.cookie-modal-cancel {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

.cookie-modal-cancel:hover {
  background: var(--surface);
}

/* Responsive design for cookie banner */
@media (max-width: 768px) {
  .cookie-content {
    grid-template-columns: 1fr;
    gap: 1rem;
    text-align: center;
  }
  
  .cookie-actions {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 0.75rem;
    justify-items: center;
  }
  
  .cookie-link {
    grid-column: 1 / -1;
    justify-self: center;
  }
  
  .cookie-text p {
    font-size: 0.85rem;
  }
  
  .cookie-modal {
    padding: 1rem;
  }
  
  .cookie-modal-content {
    padding: 1.5rem;
  }
}

@media (max-width: 480px) {
  .cookie-banner {
    padding: 0.75rem 0;
  }
  
  .cookie-content {
    padding: 0 16px;
  }
  
  .cookie-actions {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  
  .cookie-btn {
    padding: 6px 12px;
    font-size: 0.8rem;
    width: 100%;
  }
  
  .cookie-link {
    margin-top: 0.5rem;
  }
}