/* Modern Cookie Consent Banner - Glassmorphism + Smooth Animations */
.js-cookie-consent {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10000;
  padding: 0;
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}
.js-cookie-consent.cookie-message {
  display: block;
  animation: slideUpFadeIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.modern-cookie-banner {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(250, 250, 255, 0.98) 100%);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-top: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.08), 0 -2px 10px rgba(0, 0, 0, 0.04);
}
.cookie-banner-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 24px 32px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
  position: relative;
}
.cookie-icon-wrapper {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #FFF3E0 0%, #FFE0B2 100%);
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(255, 152, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  animation: cookieBounce 2s ease-in-out infinite;
}
.cookie-icon { width: 40px; height: 40px; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1)); }
.cookie-content { display: flex; align-items: center; gap: 24px; flex: 1; }
.cookie-text { flex: 1; min-width: 0; }
.cookie-title { font-size: 16px; font-weight: 700; color: #1a1a1a; margin: 0 0 6px 0; line-height: 1.3; letter-spacing: -0.02em; }
.cookie-description { font-size: 14px; color: #666; margin: 0; line-height: 1.5; }
.cookie-description p { margin: 0; }
.cookie-actions { display: flex; gap: 12px; flex-shrink: 0; }
.cookie-btn-accept, .cookie-btn-reject, .cookie-btn-info {
  display: inline-flex; align-items: center; gap: 8px; padding: 12px 24px; font-size: 14px; font-weight: 600;
  border-radius: 12px; border: none; cursor: pointer; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none; white-space: nowrap; position: relative; overflow: hidden;
}
.cookie-btn-accept {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.cookie-btn-accept:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2); }
.cookie-btn-accept:active { transform: translateY(0); }
.cookie-btn-reject {
  background: rgba(100, 116, 139, 0.1); color: #475569; border: 1px solid rgba(100, 116, 139, 0.25);
}
.cookie-btn-reject:hover { background: rgba(239, 68, 68, 0.08); border-color: rgba(239, 68, 68, 0.25); color: #dc2626; transform: translateY(-1px); }
.cookie-btn-reject:active { transform: translateY(0); }
.cookie-btn-info {
  background: rgba(100, 116, 139, 0.08); color: #475569; border: 1px solid rgba(100, 116, 139, 0.2);
}
.cookie-btn-info:hover { background: rgba(100, 116, 139, 0.15); border-color: rgba(100, 116, 139, 0.3); transform: translateY(-1px); }
.btn-icon { flex-shrink: 0; }
.cookie-close {
  position: absolute; top: 16px; right: 16px; width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(100, 116, 139, 0.08); border: 1px solid rgba(100, 116, 139, 0.1);
  border-radius: 8px; cursor: pointer; transition: all 0.2s ease; padding: 0; color: #64748b;
}
.cookie-close:hover { background: rgba(239, 68, 68, 0.1); border-color: rgba(239, 68, 68, 0.2); color: #ef4444; }
@keyframes slideUpFadeIn { from { opacity: 0; transform: translateY(100%); } to { opacity: 1; transform: translateY(0); } }
@keyframes cookieBounce { 0%, 100% { transform: translateY(0) rotate(0deg); } 25% { transform: translateY(-4px) rotate(-5deg); } 50% { transform: translateY(0) rotate(0deg); } 75% { transform: translateY(-2px) rotate(5deg); } }
@media (max-width: 1024px) {
  .cookie-banner-container { padding: 20px 24px; gap: 20px; }
  .cookie-icon-wrapper { width: 48px; height: 48px; }
  .cookie-icon { width: 32px; height: 32px; }
}
@media (max-width: 768px) {
  .modern-cookie-banner { border-radius: 16px 16px 0 0; }
  .cookie-banner-container { grid-template-columns: auto 1fr; padding: 20px 16px 24px; gap: 16px; }
  .cookie-icon-wrapper { width: 40px; height: 40px; border-radius: 12px; }
  .cookie-icon { width: 28px; height: 28px; }
  .cookie-content { flex-direction: column; gap: 16px; align-items: stretch; }
  .cookie-title { font-size: 15px; }
  .cookie-description { font-size: 13px; }
  .cookie-actions { flex-direction: column; width: 100%; }
  .cookie-btn-accept, .cookie-btn-reject, .cookie-btn-info { width: 100%; justify-content: center; padding: 12px 20px; font-size: 13px; }
  .cookie-close { top: 12px; right: 12px; width: 28px; height: 28px; }
  .cookie-close svg { width: 16px; height: 16px; }
}
@media (max-width: 480px) {
  .cookie-banner-container { padding: 16px 12px 20px; gap: 12px; }
  .cookie-title { font-size: 14px; }
  .cookie-description { font-size: 12px; }
  .cookie-btn-accept, .cookie-btn-reject, .cookie-btn-info { padding: 10px 16px; font-size: 12px; }
  .btn-icon { width: 14px; height: 14px; }
}
@media (prefers-color-scheme: dark) {
  .modern-cookie-banner { background: linear-gradient(135deg, rgba(30, 30, 35, 0.98) 0%, rgba(25, 25, 30, 0.98) 100%); border-top-color: rgba(255, 255, 255, 0.1); box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.4), 0 -2px 10px rgba(0, 0, 0, 0.2); }
  .cookie-title { color: #f1f5f9; }
  .cookie-description { color: #cbd5e1; }
  .cookie-btn-info { background: rgba(148, 163, 184, 0.15); color: #e2e8f0; border-color: rgba(148, 163, 184, 0.3); }
  .cookie-btn-info:hover { background: rgba(148, 163, 184, 0.25); border-color: rgba(148, 163, 184, 0.4); }
  .cookie-btn-reject { background: rgba(148, 163, 184, 0.15); color: #e2e8f0; border-color: rgba(148, 163, 184, 0.3); }
  .cookie-btn-reject:hover { background: rgba(239, 68, 68, 0.15); border-color: rgba(239, 68, 68, 0.3); color: #f87171; }
  .cookie-close { background: rgba(148, 163, 184, 0.15); border-color: rgba(148, 163, 184, 0.2); color: #94a3b8; }
  .cookie-close:hover { background: rgba(239, 68, 68, 0.2); border-color: rgba(239, 68, 68, 0.3); color: #f87171; }
}
@media (prefers-reduced-motion: reduce) {
  .js-cookie-consent.cookie-message { animation: none; }
  .cookie-icon-wrapper { animation: none; }
  .cookie-btn-accept, .cookie-btn-reject, .cookie-btn-info, .cookie-close { transition: none; }
}
@media print { .js-cookie-consent { display: none !important; } }
