/* ============================================
   Canada Day Theme Styles for Urbex Planet
   Subtle red/white accents + gentle fireworks
   ============================================ */

:root {
  --canada-red: #FF0000;
  --canada-red-soft: #D8232A;
  --canada-white: #FFFFFF;
  --canada-glow: rgba(255, 0, 0, 0.18);
}

/* ============================================
   Canada Day Banner/Toast Notification
   ============================================ */
.canada-banner {
  position: fixed;
  top: 20px;
  right: 20px;
  background: linear-gradient(135deg, var(--canada-red-soft), #8c1116);
  border: 2px solid var(--canada-white);
  border-radius: 12px;
  padding: 12px 20px;
  color: white;
  z-index: 10000;
  box-shadow: 0 8px 32px rgba(216, 35, 42, 0.3);
  animation: canada-banner-appear 0.8s ease-out;
  max-width: 320px;
  text-align: left;
  font-weight: 500;
  pointer-events: auto;
}

.canada-banner .canada-icon {
  font-size: 1.2rem;
  margin-right: 6px;
}

.canada-banner .close-btn {
  background: transparent;
  border: none;
  color: white;
  font-size: 1.1rem;
  cursor: pointer;
  margin-left: 8px;
  opacity: 0.7;
  transition: opacity 0.2s;
  padding: 0;
  line-height: 1;
  vertical-align: middle;
}

.canada-banner .close-btn:hover {
  opacity: 1;
}

@keyframes canada-banner-appear {
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* ============================================
   Subtle top accent bar (red / white / red)
   ============================================ */
.canada-theme::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 9997;
  pointer-events: none;
  opacity: 0.55;
  background: linear-gradient(
    90deg,
    var(--canada-red) 0%,
    var(--canada-red) 25%,
    var(--canada-white) 25%,
    var(--canada-white) 75%,
    var(--canada-red) 75%,
    var(--canada-red) 100%
  );
}

/* ============================================
   Corner maple-leaf accents (static, decorative)
   ============================================ */
.canada-maple {
  position: fixed;
  pointer-events: none;
  z-index: 1;
  opacity: 0.15;
  font-size: 3rem;
  filter: drop-shadow(0 0 4px var(--canada-glow));
}

.canada-maple.top-left  { top: 8px;  left: 10px; }
.canada-maple.top-right { top: 8px;  right: 10px; }

/* ============================================
   Canvas particle fireworks (drawn by JS)
   Low overlay: above the opaque page background but below the
   navbar (z-2000), dropdowns and modals — so it never covers
   site chrome. pointer-events:none keeps everything clickable.
   Low opacity so it reads as a gentle glow, not a distraction.
   ============================================ */
#canada-fireworks-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  opacity: 0.55;
}

/* ============================================
   Subtle accents on existing elements
   ============================================ */
/* Hairline maple-red underline on the sticky navbar. */
.canada-theme .navbar {
  box-shadow: inset 0 -2px 0 0 rgba(216, 35, 42, 0.45), 0 4px 12px rgba(0, 0, 0, 0.25);
}

/* Gentle red accent under the active nav tab. */
.canada-theme .nav-btn-active {
  box-shadow: inset 0 -2px 0 0 var(--canada-red-soft);
}

/* ============================================
   Mobile adjustments — lighten the theme
   ============================================ */
@media (max-width: 768px) {
  .canada-banner {
    top: 10px;
    right: 10px;
    left: 10px;
    max-width: none;
  }
  .canada-maple { font-size: 2rem; opacity: 0.1; }
  #canada-fireworks-canvas { opacity: 0.4; }
}

/* ============================================
   Respect reduced-motion preference
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  .canada-banner {
    animation: none;
  }
  /* JS already skips the canvas under reduced motion; hide as a belt-and-braces. */
  #canada-fireworks-canvas { display: none; }
}
