/* ===========================================
 * COOKIE CONSENT BANNER - DC NOTES THEME
 * Designed to match the elegant dark theme
 * =========================================== */

.cookie-consent__banner {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 28rem;
  background: rgba(26, 26, 26, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 165, 0, 0.2);
  border-radius: 1rem;
  padding: 2rem;
  z-index: 1000;
  opacity: 1;
  transition: all 0.4s ease;
  box-shadow: 0 20px 60px rgba(255, 165, 0, 0.1);
  font-family: 'Inter', sans-serif;
}

.cookie-consent__banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold-accent), var(--yellow-accent));
  border-radius: 1rem 1rem 0 0;
}

.cookie-consent__title {
  color: var(--white);
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  font-weight: 600;
  text-align: center;
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}

.cookie-consent__text {
  color: var(--grey-light);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0 0 1.5rem;
  text-align: center;
}

.cookie-consent__buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.cookie-consent__button {
  padding: 0.8rem 1.8rem;
  border: none;
  border-radius: 2rem;
  font-size: 0.9rem;
  font-weight: 500;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: all 0.3s ease;
  letter-spacing: 0.01em;
  min-width: 110px;
}

.cookie-consent__button--accept {
  background: linear-gradient(135deg, var(--gold-accent), var(--yellow-accent));
  color: var(--primary-black);
}

.cookie-consent__button--accept:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 165, 0, 0.3);
  background: linear-gradient(135deg, var(--yellow-accent), var(--gold-accent));
}

.cookie-consent__button--reject {
  background: transparent;
  color: var(--grey-light);
  border: 1px solid var(--grey-medium);
}

.cookie-consent__button--reject:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--grey-light);
  color: var(--white);
  transform: translateY(-1px);
}

.cookie-consent--hidden {
  display: none !important;
}

/* Mobile responsiveness for cookie banner */
@media (max-width: 768px) {
  .cookie-consent__banner {
    bottom: 1rem;
    width: 95%;
    max-width: none;
    padding: 1.5rem;
  }

  .cookie-consent__title {
    font-size: 1.1rem;
  }

  .cookie-consent__text {
    font-size: 0.9rem;
  }

  .cookie-consent__buttons {
    flex-direction: column;
    gap: 0.75rem;
  }

  .cookie-consent__button {
    width: 100%;
    padding: 0.9rem;
  }
}

@media (max-width: 480px) {
  .cookie-consent__banner {
    bottom: 0.5rem;
    border-radius: 0.75rem;
    padding: 1.25rem;
  }

  .cookie-consent__title {
    font-size: 1rem;
    margin-bottom: 0.75rem;
  }

  .cookie-consent__text {
    font-size: 0.85rem;
    margin-bottom: 1.25rem;
  }
}

/* Accessibility improvements */
.cookie-consent__button:focus {
  outline: 2px solid var(--gold-accent);
  outline-offset: 2px;
}

.cookie-consent__button--reject:focus {
  outline-color: var(--grey-light);
}

/* Animation for banner entrance */
@keyframes slideUpFade {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

.cookie-consent__banner:not(.cookie-consent--hidden) {
  animation: slideUpFade 0.5s ease-out;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .cookie-consent__banner {
    border-width: 2px;
    border-color: var(--gold-accent);
  }

  .cookie-consent__button {
    border-width: 2px;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .cookie-consent__banner {
    animation: none;
    transition: none;
  }

  .cookie-consent__button {
    transition: none;
  }

  .cookie-consent__button:hover {
    transform: none;
  }
}



/*  */
   /* Critical above-the-fold styles */
        .skip-link:focus {
            position: static !important;
            width: auto !important;
            height: auto !important;
            background: var(--gold-accent);
            color: var(--primary-black);
            padding: 0.5rem 1rem;
            z-index: 10000;
            text-decoration: none;
            font-weight: bold;
        }

        /* Ensure proper focus indicators */
        .nav-link:focus,
        .btn:focus,
        .footer-link:focus,
        button:focus {
            outline: 2px solid var(--gold-accent);
            outline-offset: 2px;
        }

        /* Reduce motion for users who prefer it */
        @media (prefers-reduced-motion: reduce) {

            *,
            *::before,
            *::after {
                animation-duration: 0.01ms !important;
                animation-iteration-count: 1 !important;
                transition-duration: 0.01ms !important;
            }
        }

        /* High contrast support */
        @media (prefers-contrast: high) {

            .product-card,
            .btn {
                border-width: 2px !important;
            }
        }