/**
 * Subtle Cookie Banner Styles
 * Matches the warm, minimalist aesthetic of sklep.ponadmyslami.pl
 */

#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9998;
  display: none;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
              transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#cookie-banner-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
  background: linear-gradient(to top, 
    rgba(250, 247, 242, 0.98) 0%, 
    rgba(250, 247, 242, 0.95) 100%
  );
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(87, 83, 79, 0.12);
  box-shadow: 
    0 -4px 12px -2px rgba(67, 56, 50, 0.08),
    0 -8px 24px -4px rgba(67, 56, 50, 0.06);
}

#cookie-banner-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

#cookie-banner-text {
  flex: 1;
  min-width: 280px;
  color: #44403c;
  font-size: 1rem;
  line-height: 1.6;
  font-weight: 400;
  letter-spacing: -0.01em;
}

#cookie-banner-text a {
  color: #0a2b57;
  text-decoration: underline;
  text-decoration-color: rgba(10, 43, 87, 0.25);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  transition: text-decoration-color 0.2s ease;
}

#cookie-banner-text a:hover {
  text-decoration-color: rgba(10, 43, 87, 0.5);
}

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

.cookie-btn {
  padding: 0.625rem 1.25rem;
  font-size: 0.9375rem;
  font-weight: 500;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  letter-spacing: -0.01em;
  line-height: 1.4;
}

#cookie-accept {
  background-color: #1A2C42;
  color: #ffffff;
  box-shadow: 
    0 1px 2px rgba(67, 56, 50, 0.08),
    0 2px 6px -1px rgba(26, 44, 66, 0.12);
}

#cookie-accept:hover {
  background-color: #142236;
  transform: translateY(-1px);
  box-shadow: 
    0 2px 4px rgba(67, 56, 50, 0.1),
    0 6px 12px -2px rgba(26, 44, 66, 0.18);
}

#cookie-accept:active {
  transform: translateY(0);
  box-shadow: 
    0 1px 2px rgba(67, 56, 50, 0.08),
    0 2px 4px -1px rgba(26, 44, 66, 0.1);
}

#cookie-reject {
  background-color: transparent;
  color: #57534f;
  border: 1px solid rgba(87, 83, 79, 0.25);
}

#cookie-reject:hover {
  background-color: rgba(87, 83, 79, 0.05);
  border-color: rgba(87, 83, 79, 0.35);
  color: #44403c;
}

#cookie-reject:active {
  background-color: rgba(87, 83, 79, 0.08);
}

/* Mobile responsiveness */
@media (max-width: 640px) {
  #cookie-banner-inner {
    padding: 1rem 1.25rem;
  }

  #cookie-banner-content {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }

  #cookie-banner-text {
    font-size: 0.9375rem;
    min-width: 100%;
  }

  #cookie-banner-actions {
    width: 100%;
    gap: 0.5rem;
  }

  .cookie-btn {
    flex: 1;
    text-align: center;
    padding: 0.75rem 1rem;
  }
}

@media (min-width: 641px) and (max-width: 1024px) {
  #cookie-banner-inner {
    padding: 1.125rem 2rem;
  }
}

@media (min-width: 1025px) {
  #cookie-banner-inner {
    padding: 1.25rem 3rem;
  }
}

/* Animation for initial display */
@keyframes slideUpFade {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#cookie-banner[data-visible="true"] {
  animation: slideUpFade 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
