/* =========================
   DARK MODE BUTTON
========================= */


/* wrapper */
.theme-toggle-wrapper {
  position: fixed;
  bottom: 70px;
  left: 20px;
  z-index: 9999;

}

/* button */
.theme-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(30, 30, 30, 0.6);
  backdrop-filter: blur(10px);
  color: #fff;
  cursor: pointer;
  transition: all 0.3s ease;
}

/* hover */
.theme-toggle:hover {
  transform: translateY(-2px);
  background: rgba(50, 50, 50, 0.75);
}

/* icon */
.theme-toggle .icon {
  font-size: 16px;
}

/* text */
.theme-toggle .text {
  font-size: 10px;
  font-weight: 500;
}

/* switch dot effect */
.theme-toggle::after {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #f1b562;
  margin-left: auto;
  box-shadow: 0 0 10px rgba(241,181,98,0.6);
  transition: all 0.3s ease;
}

/* DARK ACTIVE STATE */
body.dark .theme-toggle {
  background: rgba(241, 181, 98, 0.15);
  border: 1px solid rgba(241, 181, 98, 0.35);
}

body.dark .theme-toggle::after {
  background: #fff3df;
  box-shadow: 0 0 12px rgba(255,255,255,0.4);
}


/* =========================
   🌙 DARK MODE CORE
========================= */

body.dark-mode {
  background: #0f0f0f !important;
  color: #e5e5e5 !important;
}

/* Smooth transition */
body {
  transition: background 0.3s ease, color 0.3s ease;
}

::view-transition-old(root),
::view-transition-new(root) {
  animation: none;
  mix-blend-mode: normal;
}

::view-transition-old(root) {
  z-index: 1;
}

::view-transition-new(root) {
  z-index: 2;
}

body.dark-mode::view-transition-old(root) {
  z-index: 2;
}

body.dark-mode::view-transition-new(root) {
  z-index: 1;
}

@media (prefers-reduced-motion: reduce) {
  body {
    transition: none;
  }
}


/* =========================
   🔗 LINKS
========================= */

body.dark-mode a {
  color: #7ab8ff !important;
}

body.dark-mode a:hover {
  color: #9cc8ff !important;
}


