/* ========================================
   COOKIE CONSENT BANNER STYLES
   ======================================== */

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--background);
  color: var(--text-primary);
  padding: 1.25rem;
  box-shadow: var(--shadow-hover);
  z-index: 10000;
  border-top: 3px solid var(--primary-color);
  font-family: var(--font-family);
  animation: slideUp 0.5s ease-out;
  border: 1px solid var(--border);
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.cookie-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.cookie-text {
  flex: 1;
  min-width: 300px;
}

.cookie-text p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-primary);
  font-weight: 500;
}

.cookie-text a {
  color: #ff6b6b;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.cookie-text a:hover {
  color: #ff5252;
  text-decoration: underline;
}

.cookie-buttons {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

.cookie-btn {
  padding: 0.6rem 1.25rem;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  letter-spacing: -0.01em;
  min-width: 120px;
}

.cookie-btn-accept {
  background: var(--gradient);
  color: white;
  box-shadow: var(--shadow-card);
}

.cookie-btn-accept:hover {
  background: var(--gradient);
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(254, 136, 135, 0.4);
}

.cookie-btn-decline {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

.cookie-btn-decline:hover {
  background: var(--background-hover);
  color: var(--text-primary);
  border-color: var(--border-hover);
  transform: translateY(-1px);
}

/* ========================================
   RESPONSIVE STYLES
   ======================================== */

/* Планшети */
@media (max-width: 768px) {
  .cookie-banner {
    padding: 16px;
  }
  
  .cookie-content {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }
  
  .cookie-text {
    min-width: auto;
  }
  
  .cookie-text p {
    font-size: 13px;
    color: var(--text-primary);
    font-weight: 500;
  }
  
  .cookie-buttons {
    width: 100%;
    justify-content: center;
  }
  
  .cookie-btn {
    flex: 1;
    max-width: 140px;
    padding: 10px 20px;
    font-size: 13px;
  }
}

/* Мобільні пристрої */
@media (max-width: 480px) {
  .cookie-banner {
    padding: 12px;
  }
  
  .cookie-content {
    gap: 12px;
  }
  
  .cookie-text p {
    font-size: 12px;
    line-height: 1.4;
    color: var(--text-primary);
    font-weight: 500;
  }
  
  .cookie-buttons {
    flex-direction: column;
    gap: 8px;
  }
  
  .cookie-btn {
    width: 100%;
    max-width: none;
    padding: 12px 16px;
    font-size: 12px;
  }
}

/* ========================================
   ACCESSIBILITY & ANIMATIONS
   ======================================== */

.cookie-btn:focus {
  outline: 2px solid #ff6b6b;
  outline-offset: 2px;
}

.cookie-btn:active {
  transform: translateY(0);
}

/* Smooth transitions for banner show/hide */
.cookie-banner.hide {
  animation: slideDown 0.3s ease-in forwards;
}

@keyframes slideDown {
  from {
    transform: translateY(0);
    opacity: 1;
  }
  to {
    transform: translateY(100%);
    opacity: 0;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .cookie-banner {
    background: #000000;
    border-top-color: #ffffff;
  }
  
  .cookie-text p {
    color: #ffffff;
  }
  
  .cookie-btn-decline {
    border-color: #ffffff;
    color: #ffffff;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .cookie-banner {
    animation: none;
  }
  
  .cookie-btn {
    transition: none;
  }
  
  .cookie-btn:hover {
    transform: none;
  }
}
