/* ============================================
   Cookie Consent Banner Styles
   GDPR & AdSense Compliant
   ============================================ */

.cookie-consent-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 99999;
  background: linear-gradient(135deg, rgba(8, 16, 26, 0.98), rgba(10, 20, 32, 0.98));
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border, rgba(103, 240, 169, 0.12));
  padding: 1.25rem 1.5rem;
  transform: translateY(100%);
  opacity: 0;
  transition: transform 0.3s ease-out, opacity 0.3s ease-out;
  box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.3);
}

.cookie-consent-banner.cookie-consent-visible {
  transform: translateY(0);
  opacity: 1;
}

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

.cookie-consent-text {
  flex: 1;
  min-width: 280px;
}

.cookie-consent-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text, #e8f0f2);
  margin: 0 0 0.5rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cookie-consent-title::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 20px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2367f0a9'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M12 15v2m-6 4h12a2 2 0 002-2v-6a2 2 0 00-2-2H6a2 2 0 00-2 2v6a2 2 0 002 2zm10-10V7a4 4 0 00-8 0v4h8z'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
}

.cookie-consent-description {
  font-size: 0.9375rem;
  color: var(--muted, rgba(232, 240, 242, 0.7));
  margin: 0;
  line-height: 1.6;
}

.cookie-consent-link {
  color: var(--green, #67f0a9);
  text-decoration: none;
  font-weight: 500;
  transition: opacity 0.2s ease;
}

.cookie-consent-link:hover {
  opacity: 0.8;
  text-decoration: underline;
}

.cookie-consent-actions {
  display: flex;
  gap: 0.75rem;
  flex-shrink: 0;
}

.cookie-consent-btn {
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  white-space: nowrap;
}

.cookie-consent-btn-primary {
  background: var(--green, #67f0a9);
  color: #020508;
}

.cookie-consent-btn-primary:hover {
  background: #5dd99a;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(103, 240, 169, 0.3);
}

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

.cookie-consent-btn-secondary {
  background: transparent;
  color: var(--text, #e8f0f2);
  border: 1px solid var(--border, rgba(103, 240, 169, 0.12));
}

.cookie-consent-btn-secondary:hover {
  background: rgba(103, 240, 169, 0.08);
  border-color: rgba(103, 240, 169, 0.3);
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .cookie-consent-banner {
    padding: 1rem;
  }

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

  .cookie-consent-text {
    text-align: center;
  }

  .cookie-consent-title {
    justify-content: center;
    font-size: 1rem;
  }

  .cookie-consent-description {
    font-size: 0.875rem;
  }

  .cookie-consent-actions {
    justify-content: center;
    flex-wrap: wrap;
  }

  .cookie-consent-btn {
    flex: 1;
    min-width: 140px;
    padding: 0.875rem 1rem;
  }
}

@media (max-width: 480px) {
  .cookie-consent-actions {
    flex-direction: column;
  }

  .cookie-consent-btn {
    width: 100%;
  }
}

/* Accessibility - Focus states */
.cookie-consent-btn:focus-visible {
  outline: 2px solid var(--green, #67f0a9);
  outline-offset: 2px;
}

.cookie-consent-link:focus-visible {
  outline: 2px solid var(--green, #67f0a9);
  outline-offset: 2px;
  border-radius: 2px;
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  .cookie-consent-banner {
    transition: none;
  }

  .cookie-consent-btn {
    transition: none;
  }
}

/* Print - hide banner */
@media print {
  .cookie-consent-banner {
    display: none !important;
  }
}
