/* Cookie Consent Module - Minimalist Design */

.cookie-consent-overlay {
  position: fixed;
  z-index: 999999;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: #333;
}

.cookie-consent-container {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
  padding: 24px;
  max-width: 450px;
  width: calc(100% - 32px);
  margin: 16px;
}

.cookie-consent-content {
  margin-bottom: 20px;
}

.cookie-consent-title {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 12px 0;
  color: #1a1a1a;
}

.cookie-consent-message {
  margin: 0;
  color: #666;
  line-height: 1.6;
}

.cookie-consent-message a {
  color: #0066cc;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.cookie-consent-message a:hover {
  border-bottom-color: #0066cc;
}

.cookie-consent-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.cookie-consent-button {
  flex: 1;
  min-width: 100px;
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.cookie-consent-button-accept {
  background: #0066cc;
  color: #ffffff;
}

.cookie-consent-button-accept:hover {
  background: #0052a3;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 102, 204, 0.3);
}

.cookie-consent-button-reject {
  background: #f5f5f5;
  color: #333;
  border: 1px solid #e0e0e0;
}

.cookie-consent-button-reject:hover {
  background: #ebebeb;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Position Classes */
.cookie-consent-bottom-left {
  bottom: 0;
  left: 0;
}

.cookie-consent-bottom-right {
  bottom: 0;
  right: 0;
}

.cookie-consent-bottom-center {
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}

.cookie-consent-top-left {
  top: 0;
  left: 0;
}

.cookie-consent-top-right {
  top: 0;
  right: 0;
}

.cookie-consent-top-center {
  top: 0;
  left: 50%;
  transform: translateX(-50%);
}

.cookie-consent-center {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* Animation Classes */
.cookie-consent-fade-in {
  animation: cookieConsentFadeIn 0.3s ease-out;
}

.cookie-consent-slide-up {
  animation: cookieConsentSlideUp 0.4s ease-out;
}

.cookie-consent-slide-down {
  animation: cookieConsentSlideDown 0.4s ease-out;
}

.cookie-consent-slide-left {
  animation: cookieConsentSlideLeft 0.4s ease-out;
}

.cookie-consent-slide-right {
  animation: cookieConsentSlideRight 0.4s ease-out;
}

.cookie-consent-scale {
  animation: cookieConsentScale 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Keyframes - Base animations (for corner positions) */
@keyframes cookieConsentFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes cookieConsentSlideUp {
  from {
    opacity: 0;
    transform: translateY(100%);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes cookieConsentSlideDown {
  from {
    opacity: 0;
    transform: translateY(-100%);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes cookieConsentSlideLeft {
  from {
    opacity: 0;
    transform: translateX(100%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes cookieConsentSlideRight {
  from {
    opacity: 0;
    transform: translateX(-100%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes cookieConsentScale {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Center position animations - preserve translate(-50%, -50%) */
.cookie-consent-center.cookie-consent-fade-in {
  animation: cookieConsentCenterFadeIn 0.3s ease-out;
}

.cookie-consent-center.cookie-consent-scale {
  animation: cookieConsentCenterScale 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.cookie-consent-center.cookie-consent-slide-up {
  animation: cookieConsentCenterSlideUp 0.4s ease-out;
}

.cookie-consent-center.cookie-consent-slide-down {
  animation: cookieConsentCenterSlideDown 0.4s ease-out;
}

.cookie-consent-center.cookie-consent-slide-left {
  animation: cookieConsentCenterSlideLeft 0.4s ease-out;
}

.cookie-consent-center.cookie-consent-slide-right {
  animation: cookieConsentCenterSlideRight 0.4s ease-out;
}

@keyframes cookieConsentCenterFadeIn {
  from {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

@keyframes cookieConsentCenterScale {
  from {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.8);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

@keyframes cookieConsentCenterSlideUp {
  from {
    opacity: 0;
    transform: translate(-50%, calc(-50% + 100px));
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}

@keyframes cookieConsentCenterSlideDown {
  from {
    opacity: 0;
    transform: translate(-50%, calc(-50% - 100px));
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}

@keyframes cookieConsentCenterSlideLeft {
  from {
    opacity: 0;
    transform: translate(calc(-50% + 100px), -50%);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}

@keyframes cookieConsentCenterSlideRight {
  from {
    opacity: 0;
    transform: translate(calc(-50% - 100px), -50%);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}

/* Bottom center animations - preserve translateX(-50%) */
.cookie-consent-bottom-center.cookie-consent-slide-up {
  animation: cookieConsentBottomCenterSlideUp 0.4s ease-out;
}

.cookie-consent-bottom-center.cookie-consent-slide-down {
  animation: cookieConsentBottomCenterSlideDown 0.4s ease-out;
}

.cookie-consent-bottom-center.cookie-consent-slide-left {
  animation: cookieConsentBottomCenterSlideLeft 0.4s ease-out;
}

.cookie-consent-bottom-center.cookie-consent-slide-right {
  animation: cookieConsentBottomCenterSlideRight 0.4s ease-out;
}

.cookie-consent-bottom-center.cookie-consent-fade-in {
  animation: cookieConsentBottomCenterFadeIn 0.3s ease-out;
}

.cookie-consent-bottom-center.cookie-consent-scale {
  animation: cookieConsentBottomCenterScale 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes cookieConsentBottomCenterSlideUp {
  from {
    opacity: 0;
    transform: translate(-50%, 100%);
  }
  to {
    opacity: 1;
    transform: translateX(-50%);
  }
}

@keyframes cookieConsentBottomCenterSlideDown {
  from {
    opacity: 0;
    transform: translate(-50%, -100px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%);
  }
}

@keyframes cookieConsentBottomCenterSlideLeft {
  from {
    opacity: 0;
    transform: translate(calc(-50% + 100px), 0);
  }
  to {
    opacity: 1;
    transform: translateX(-50%);
  }
}

@keyframes cookieConsentBottomCenterSlideRight {
  from {
    opacity: 0;
    transform: translate(calc(-50% - 100px), 0);
  }
  to {
    opacity: 1;
    transform: translateX(-50%);
  }
}

@keyframes cookieConsentBottomCenterFadeIn {
  from {
    opacity: 0;
    transform: translateX(-50%) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) scale(1);
  }
}

@keyframes cookieConsentBottomCenterScale {
  from {
    opacity: 0;
    transform: translateX(-50%) scale(0.8);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) scale(1);
  }
}

/* Top center animations - preserve translateX(-50%) */
.cookie-consent-top-center.cookie-consent-slide-up {
  animation: cookieConsentTopCenterSlideUp 0.4s ease-out;
}

.cookie-consent-top-center.cookie-consent-slide-down {
  animation: cookieConsentTopCenterSlideDown 0.4s ease-out;
}

.cookie-consent-top-center.cookie-consent-slide-left {
  animation: cookieConsentTopCenterSlideLeft 0.4s ease-out;
}

.cookie-consent-top-center.cookie-consent-slide-right {
  animation: cookieConsentTopCenterSlideRight 0.4s ease-out;
}

.cookie-consent-top-center.cookie-consent-fade-in {
  animation: cookieConsentTopCenterFadeIn 0.3s ease-out;
}

.cookie-consent-top-center.cookie-consent-scale {
  animation: cookieConsentTopCenterScale 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes cookieConsentTopCenterSlideUp {
  from {
    opacity: 0;
    transform: translate(-50%, 100px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%);
  }
}

@keyframes cookieConsentTopCenterSlideDown {
  from {
    opacity: 0;
    transform: translate(-50%, -100%);
  }
  to {
    opacity: 1;
    transform: translateX(-50%);
  }
}

@keyframes cookieConsentTopCenterSlideLeft {
  from {
    opacity: 0;
    transform: translate(calc(-50% + 100px), 0);
  }
  to {
    opacity: 1;
    transform: translateX(-50%);
  }
}

@keyframes cookieConsentTopCenterSlideRight {
  from {
    opacity: 0;
    transform: translate(calc(-50% - 100px), 0);
  }
  to {
    opacity: 1;
    transform: translateX(-50%);
  }
}

@keyframes cookieConsentTopCenterFadeIn {
  from {
    opacity: 0;
    transform: translateX(-50%) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) scale(1);
  }
}

@keyframes cookieConsentTopCenterScale {
  from {
    opacity: 0;
    transform: translateX(-50%) scale(0.8);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) scale(1);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .cookie-consent-overlay {
    width: 100%;
  }
  
  .cookie-consent-container {
    max-width: 100%;
    width: 100%;
    margin: 0;
    border-radius: 0;
    padding: 20px;
  }
  
  /* Bottom positions - full width, no centering transform */
  .cookie-consent-bottom-left,
  .cookie-consent-bottom-right,
  .cookie-consent-bottom-center {
    left: 0;
    right: 0;
    bottom: 0;
  }
  
  /* Top positions - full width, no centering transform */
  .cookie-consent-top-left,
  .cookie-consent-top-right,
  .cookie-consent-top-center {
    left: 0;
    right: 0;
    top: 0;
  }
  
  /* Remove centering transforms on mobile */
  .cookie-consent-bottom-center,
  .cookie-consent-top-center {
    transform: none;
  }
  
  /* Top positions get rounded bottom corners */
  .cookie-consent-top-left .cookie-consent-container,
  .cookie-consent-top-right .cookie-consent-container,
  .cookie-consent-top-center .cookie-consent-container {
    border-radius: 0 0 12px 12px;
  }
  
  /* Bottom positions get rounded top corners */
  .cookie-consent-bottom-left .cookie-consent-container,
  .cookie-consent-bottom-right .cookie-consent-container,
  .cookie-consent-bottom-center .cookie-consent-container {
    border-radius: 12px 12px 0 0;
  }
  
  /* Center position stays as modal but smaller padding */
  .cookie-consent-center .cookie-consent-container {
    border-radius: 12px;
    margin: 16px;
    width: calc(100% - 32px);
  }
  
  .cookie-consent-buttons {
    flex-direction: column;
  }
  
  .cookie-consent-button {
    width: 100%;
    min-width: auto;
  }
  
  .cookie-consent-title {
    font-size: 16px;
  }
  
  .cookie-consent-message {
    font-size: 13px;
  }
  
  /* Override desktop animations with mobile versions for bottom positions */
  .cookie-consent-bottom-left.cookie-consent-slide-up,
  .cookie-consent-bottom-right.cookie-consent-slide-up,
  .cookie-consent-bottom-center.cookie-consent-slide-up {
    animation: cookieConsentMobileSlideUp 0.4s ease-out;
  }
  
  .cookie-consent-bottom-left.cookie-consent-slide-down,
  .cookie-consent-bottom-right.cookie-consent-slide-down,
  .cookie-consent-bottom-center.cookie-consent-slide-down {
    animation: cookieConsentMobileSlideDown 0.4s ease-out;
  }
  
  .cookie-consent-bottom-left.cookie-consent-slide-left,
  .cookie-consent-bottom-right.cookie-consent-slide-left,
  .cookie-consent-bottom-center.cookie-consent-slide-left {
    animation: cookieConsentMobileSlideLeft 0.4s ease-out;
  }
  
  .cookie-consent-bottom-left.cookie-consent-slide-right,
  .cookie-consent-bottom-right.cookie-consent-slide-right,
  .cookie-consent-bottom-center.cookie-consent-slide-right {
    animation: cookieConsentMobileSlideRight 0.4s ease-out;
  }
  
  .cookie-consent-bottom-left.cookie-consent-fade-in,
  .cookie-consent-bottom-right.cookie-consent-fade-in,
  .cookie-consent-bottom-center.cookie-consent-fade-in {
    animation: cookieConsentMobileFadeIn 0.3s ease-out;
  }
  
  .cookie-consent-bottom-left.cookie-consent-scale,
  .cookie-consent-bottom-right.cookie-consent-scale,
  .cookie-consent-bottom-center.cookie-consent-scale {
    animation: cookieConsentMobileScale 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  }
  
  /* Override desktop animations with mobile versions for top positions */
  .cookie-consent-top-left.cookie-consent-slide-up,
  .cookie-consent-top-right.cookie-consent-slide-up,
  .cookie-consent-top-center.cookie-consent-slide-up {
    animation: cookieConsentMobileTopSlideUp 0.4s ease-out;
  }
  
  .cookie-consent-top-left.cookie-consent-slide-down,
  .cookie-consent-top-right.cookie-consent-slide-down,
  .cookie-consent-top-center.cookie-consent-slide-down {
    animation: cookieConsentMobileTopSlideDown 0.4s ease-out;
  }
  
  .cookie-consent-top-left.cookie-consent-slide-left,
  .cookie-consent-top-right.cookie-consent-slide-left,
  .cookie-consent-top-center.cookie-consent-slide-left {
    animation: cookieConsentMobileSlideLeft 0.4s ease-out;
  }
  
  .cookie-consent-top-left.cookie-consent-slide-right,
  .cookie-consent-top-right.cookie-consent-slide-right,
  .cookie-consent-top-center.cookie-consent-slide-right {
    animation: cookieConsentMobileSlideRight 0.4s ease-out;
  }
  
  .cookie-consent-top-left.cookie-consent-fade-in,
  .cookie-consent-top-right.cookie-consent-fade-in,
  .cookie-consent-top-center.cookie-consent-fade-in {
    animation: cookieConsentMobileFadeIn 0.3s ease-out;
  }
  
  .cookie-consent-top-left.cookie-consent-scale,
  .cookie-consent-top-right.cookie-consent-scale,
  .cookie-consent-top-center.cookie-consent-scale {
    animation: cookieConsentMobileScale 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  }
}

/* Mobile animation keyframes - no transform positioning needed */
@keyframes cookieConsentMobileSlideUp {
  from {
    opacity: 0;
    transform: translateY(100%);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes cookieConsentMobileSlideDown {
  from {
    opacity: 0;
    transform: translateY(-100px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes cookieConsentMobileTopSlideUp {
  from {
    opacity: 0;
    transform: translateY(100px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes cookieConsentMobileTopSlideDown {
  from {
    opacity: 0;
    transform: translateY(-100%);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes cookieConsentMobileSlideLeft {
  from {
    opacity: 0;
    transform: translateX(100%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes cookieConsentMobileSlideRight {
  from {
    opacity: 0;
    transform: translateX(-100%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

@keyframes cookieConsentMobileScale {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Dark theme support */
@media (prefers-color-scheme: dark) {
  .cookie-consent-container {
    background: #1e1e1e;
    color: #e0e0e0;
  }
  
  .cookie-consent-title {
    color: #ffffff;
  }
  
  .cookie-consent-message {
    color: #b0b0b0;
  }
  
  .cookie-consent-button-reject {
    background: #2a2a2a;
    color: #e0e0e0;
    border-color: #3a3a3a;
  }
  
  .cookie-consent-button-reject:hover {
    background: #333333;
  }
}
