/**
 * Lolos Ski Center - Cookie Consent Banner Styles
 */

.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  padding: 1rem;
  z-index: 9998;
  transform: translateY(100%);
  transition: transform 0.4s ease-in-out;
  border-top: 3px solid var(--primary-color);
}

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

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

.cookie-content {
  flex: 1 1 60%;
}

.cookie-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--primary-color);
  margin: 0 0 0.5rem 0;
  display: flex;
  align-items: center;
}

.cookie-title svg {
  width: 20px;
  height: 20px;
  margin-right: 8px;
  fill: var(--primary-color);
}

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

.cookie-text a {
  color: var(--primary-color);
  text-decoration: underline;
  transition: color 0.2s ease;
}

.cookie-text a:hover {
  color: var(--secondary-color);
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.cookie-btn {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
}

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

.cookie-btn-primary:hover {
  background-color: #006da5;
}

.cookie-btn-secondary {
  background-color: #f1f1f1;
  color: #333;
}

.cookie-btn-secondary:hover {
  background-color: #e0e0e0;
}

.cookie-btn-text {
  background: transparent;
  color: var(--primary-color);
  text-decoration: underline;
  padding: 0.6rem;
}

.cookie-btn-text:hover {
  color: var(--secondary-color);
}

.cookie-preferences {
  display: none;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #eee;
}

.cookie-preferences.active {
  display: block;
}

.cookie-types {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1rem;
  margin-top: 0.75rem;
}

.cookie-type {
  display: flex;
  align-items: flex-start;
}

.cookie-checkbox {
  margin-top: 0.25rem;
  margin-right: 0.5rem;
}

.cookie-label {
  font-size: 0.85rem;
  line-height: 1.4;
}

.cookie-essential {
  opacity: 0.7;
}

/* Water-themed animation */
@keyframes wave {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.cookie-consent::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--primary-color));
  background-size: 200% 200%;
  animation: wave 3s ease infinite;
}

/* Responsive styles */
@media (max-width: 768px) {
  .cookie-consent {
    padding: 1rem;
  }
  
  .cookie-content {
    flex: 1 1 100%;
  }
  
  .cookie-actions {
    flex: 1 1 100%;
    justify-content: flex-start;
    margin-top: 0.5rem;
  }
  
  .cookie-types {
    grid-template-columns: 1fr;
  }
}
