/* Navbar styles - using theme.json tokens only */

/* Reset and base styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--wp--preset--font-family--poppins);
  background-color: var(--wp--preset--color--cape-cod-lightest);
  color: var(--wp--preset--color--neutral-darkest);
  line-height: 1.5;
}

/* Navbar Styles */
.navbar {
  background-color: var(--wp--preset--color--neutral-white);
  position: relative;
  width: 100%;
  z-index: 1000;
}

.navbar-container {
  max-width: 100%;
  margin: 0 auto;
  padding: 0 4rem;
}

.navbar-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4.5rem;
  width: 100%;
}

.navbar-left {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex: 1;
}

.logo-container {
  height: 2.25rem;
  width: 5.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo {
  height: 100%;
  width: auto;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  padding: 8px 0;
  position: relative;
  transition: all 0.2s ease;
}

.nav-item:hover .nav-link {
  color: var(--wp--preset--color--cerise-red);
}

.nav-item:hover .chevron {
  filter: brightness(0) saturate(100%) invert(22%) sepia(65%) saturate(3026%) hue-rotate(333deg) brightness(91%) contrast(94%);
}

.nav-link {
  font-size: var(--wp--preset--font-size--medium);
  font-weight: 400;
  color: #010305;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s ease;
  font-family: var(--wp--preset--font-family--poppins);
}

.chevron {
  width: 1.5rem;
  height: 1.5rem;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.nav-item.active .chevron {
  transform: rotate(180deg);
}

/* About nav item should look like plain text, not a button */
.nav-item[aria-label="About"] {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Button Styles */
.btn {
  font-family: var(--wp--preset--font-family--poppins);
  font-weight: 500;
  border: none;
  border-radius: 0.75rem;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-donate {
  background-color: var(--wp--preset--color--cerise-red);
  color: var(--wp--preset--color--neutral-white);
  font-size: 1.125rem;
  font-weight: 500;
  font-family: var(--wp--preset--font-family--poppins);
  padding: 0.75rem 0.9375rem;
  height: 3rem;
}

.btn-donate:hover {
  background-color: var(--wp--preset--color--cerise-red-dark);
  transform: translateY(-1px);
}

.btn-login {
  background-color: var(--wp--preset--color--biscay);
  color: var(--wp--preset--color--neutral-white);
  font-size: 1rem;
  font-weight: 500;
  font-family: var(--wp--preset--font-family--poppins);
  padding: 8px 10px;
  height: 2.5rem;
}

.btn-login:hover {
  background-color: var(--wp--preset--color--biscay-dark);
  transform: translateY(-1px);
}

/* Dropdown Menu Styles */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: transparent;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 999;
}

.dropdown-menu.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-container {
  display: flex;
  width: 100%;
  height: 17.4375rem;
  overflow: hidden;
}

.dropdown-content {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: stretch;
}

/* Left Menu Columns Section */
.menu-columns {
  background-color: var(--wp--preset--color--cape-cod);
  display: flex;
  gap: 2rem;
  padding: 2rem 2rem 2rem 4rem;
  flex: 1;
  align-items: flex-start;
  justify-content: flex-end;
}

.menu-column {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.menu-section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.menu-item {
  display: flex;
  gap: 0.75rem;
  padding: 8px 0;
  cursor: pointer;
  transition: all 0.2s ease;
}

.menu-item:hover .menu-title {
  color: var(--wp--preset--color--neutral-white);
}

.menu-icon {
  width: 1.5rem;
  height: 1.5rem;
  flex-shrink: 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 2px;
}

.menu-icon svg {
  width: 1.125rem;
  height: 1.25rem;
}

.menu-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.menu-title {
  font-size: 1rem;
  font-weight: 600;
  font-family: var(--wp--preset--font-family--poppins);
  color: var(--wp--preset--color--saffron);
  line-height: 1.5;
  transition: color 0.2s ease;
}

.menu-description {
  font-size: 0.875rem;
  font-weight: 400;
  font-family: var(--wp--preset--font-family--poppins);
  color: var(--wp--preset--color--cape-cod-lightest);
  line-height: 1.5;
}

/* Remove underlines from menu item links and ensure consistent flex layout */
.menu-item a {
  text-decoration: none;
  display: flex;
  gap: 0.75rem;
  width: 100%;
  align-items: flex-start;
}

.menu-item a:hover,
.menu-item a:focus {
  text-decoration: none;
}

/* Spotlight Section */
.spotlight-section {
  background-color: var(--wp--preset--color--cape-cod-light);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.25rem;
  min-width: 280px;
  max-width: 320px;
  flex: 0 0 auto;
  align-items: flex-start;
  justify-content: flex-start;
  height: 100%;
}

.spotlight-title {
  font-size: 0.875rem;
  font-weight: 600;
  font-family: var(--wp--preset--font-family--poppins);
  color: var(--wp--preset--color--neutral-darkest);
  line-height: 1.5;
  white-space: nowrap;
}

.spotlight-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.spotlight-item {
  display: flex;
  gap: 1.5rem;
  padding: 8px 0;
}

.spotlight-image {
  width: 10rem;
  height: 6.6875rem;
  background-color: var(--wp--preset--color--neutral-lightest);
  background-image: url('/wp-content/themes/rcvmd/assets/images/8bd42e66f02cde53e4b12620d616064c776c8f9f.png');
  background-size: cover;
  background-position: center;
  border-radius: 1.5rem;
  flex-shrink: 0;
}

.spotlight-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--wp--preset--color--neutral-darkest);
}

.spotlight-text-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.spotlight-article-title {
  font-size: 1rem;
  font-weight: 600;
  font-family: var(--wp--preset--font-family--poppins);
  line-height: 1.5;
}

.spotlight-description {
  font-size: 0.875rem;
  font-weight: 400;
  font-family: var(--wp--preset--font-family--poppins);
  line-height: 1.5;
}

.spotlight-link {
  font-size: 0.875rem;
  font-weight: 400;
  font-family: var(--wp--preset--font-family--poppins);
  color: var(--wp--preset--color--neutral-darkest);
  text-decoration: none;
  line-height: 1.5;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.spotlight-link:hover {
  color: var(--wp--preset--color--cerise-red);
}

/* Spotlight Nav Card - Figma Design Match */
.spotlight-nav-card {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 0.75rem;
    background-color: var(--wp--preset--color--neutral-white);
    padding: 0.75rem;
    border-radius: 0.5rem;
    width: 100%;
}

.spotlight-card-image-wrapper {
    width: 6.25rem;
    height: 6.25rem;
    flex-shrink: 0;
    border-radius: 0.25rem;
    overflow: hidden;
}

.spotlight-card-image-wrapper a {
    display: block;
    width: 100%;
    height: 100%;
}

.spotlight-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.spotlight-card-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex: 1;
    min-width: 0;
}

.spotlight-card-title {
    font-size: var(--wp--preset--font-size--medium);
    font-weight: 600;
    font-family: var(--wp--preset--font-family--poppins);
    color: var(--wp--preset--color--neutral-darkest);
    line-height: 1.3;
    margin: 0;
}

.spotlight-card-title a {
    color: inherit;
    text-decoration: none;
}

.spotlight-card-title a:hover {
    color: var(--wp--preset--color--cerise-red);
}

.spotlight-card-excerpt {
    font-size: var(--wp--preset--font-size--small);
    color: var(--wp--preset--color--neutral-dark);
    margin: 0;
    line-height: 1.4;
    font-family: var(--wp--preset--font-family--poppins);
}

.spotlight-card-read-more {
    font-size: var(--wp--preset--font-size--small);
    color: var(--wp--preset--color--cerise-red);
    text-decoration: none;
    margin-top: 0.25rem;
    font-family: var(--wp--preset--font-family--poppins);
    font-weight: 500;
}

.spotlight-card-read-more:hover {
    text-decoration: underline;
    color: var(--wp--preset--color--cerise-red-dark);
}

/* Empty state for spotlight */
.spotlight-nav-empty {
    font-size: var(--wp--preset--font-size--small);
    color: var(--wp--preset--color--neutral-light);
    font-style: italic;
    padding: 0.5rem 0;
    font-family: var(--wp--preset--font-family--poppins);
}

/* Spotlight explore link - hidden by default, shows as fallback */
.spotlight-explore-link {
    display: none;
}


/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 2rem;
  height: 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  position: relative;
  z-index: 1002;
}

.hamburger-line {
  display: block;
  width: 100%;
  height: 3px;
  background-color: var(--wp--preset--color--neutral-darkest);
  transition: all 0.3s ease;
  transform-origin: center;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* Mobile Navigation Overlay */
@media (max-width: 48rem) {
  .mobile-menu-toggle {
    display: flex;
    margin-left: auto;
  }

  .navbar-content {
    height: 4.5rem;
    padding: 0;
    flex-direction: row;
    align-items: center;
  }

  .navbar-left {
    width: 100%;
    justify-content: space-between;
    gap: 1rem;
  }

  .nav-links {
    position: fixed;
    top: 4.5rem;
    left: 0;
    right: 0;
    background-color: var(--wp--preset--color--neutral-white);
    flex-direction: column;
    gap: 0;
    padding: 1rem;
    max-height: calc(100vh - 4.5rem);
    overflow-y: auto;
    transform: translateX(100%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 999;
  }

  .nav-links.mobile-menu-open {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-item {
    width: 100%;
    padding: 1rem;
    border-bottom: 1px solid var(--wp--preset--color--neutral-lightest);
    justify-content: space-between;
  }

  .navbar-actions {
    display: none;
  }

  .navbar-actions.mobile-menu-open {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--wp--preset--color--neutral-white);
    padding: 1rem;
    border-top: 1px solid var(--wp--preset--color--neutral-lightest);
    gap: 0.5rem;
    z-index: 1000;
    animation: slideUp 0.3s ease;
  }

  @keyframes slideUp {
    from {
      transform: translateY(100%);
      opacity: 0;
    }
    to {
      transform: translateY(0);
      opacity: 1;
    }
  }

  /* Prevent body scroll when menu is open */
  body.mobile-menu-active {
    overflow: hidden;
  }

  /* Dropdown adjustments for mobile */
  .dropdown-menu {
    position: static;
    transform: none;
    background-color: var(--wp--preset--color--cape-cod-lightest);
    margin: 0.5rem 0;
    padding: 1rem;
    border-radius: 0.5rem;
  }

  .dropdown-container {
    height: auto;
    min-height: auto;
  }

  .menu-columns {
    padding: 1rem;
    background-color: transparent;
  }

  .spotlight-section {
    display: none; /* Hide spotlight on mobile for now */
  }
}

/* Responsive Design */
@media (max-width: 75rem) {
  :root {
    --padding-global: 2rem;
  }
  
  .dropdown-content {
    padding-left: var(--padding-global);
    padding-right: var(--gap-xl);
  }
}

/* Already handled in the Mobile Navigation Overlay section above */

/* Small mobile styles handled in main mobile section */

/* Focus and accessibility */
.nav-item:focus-visible,
.btn:focus-visible,
.menu-item:focus-visible,
.spotlight-link:focus-visible {
  outline: 2px solid var(--wp--preset--color--cerise-red);
  outline-offset: 2px;
}

/* Ensure high contrast for better accessibility - using theme.json colors */
@media (prefers-contrast: high) {
  .navbar {
    border-bottom-color: var(--wp--preset--color--neutral-darkest);
  }
  
  body {
    color: var(--wp--preset--color--neutral-darkest);
    background-color: var(--wp--preset--color--neutral-white);
  }
}

/* User Authentication Styles */
.auth-container {
  display: flex;
  align-items: center;
  position: relative;
}

.user-menu-container {
  position: relative;
}

.btn-user-menu {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  background-color: transparent;
  border: 1px solid rgba(1, 3, 5, 0.1);
  border-radius: 0.375rem;
  color: var(--wp--preset--color--neutral-darkest);
  font-family: var(--wp--preset--font-family--poppins);
  font-size: var(--wp--preset--font-size--small);
  cursor: pointer;
  transition: all var(--wp--custom--effects--transitions--fast);
  min-width: 6rem;
  min-height: 2.5rem;
}

.btn-user-menu:hover {
  background-color: rgba(1, 3, 5, 0.05);
  border-color: var(--wp--preset--color--cerise-red);
}

.btn-user-menu:focus-visible {
  outline: 2px solid var(--wp--preset--color--cerise-red);
  outline-offset: 2px;
}

/* Prevent loading states from affecting user menu button */
.btn-user-menu.loading {
  opacity: 1 !important;
  cursor: pointer !important;
}

.btn-user-menu.loading .user-name,
.btn-user-menu.loading .dropdown-icon {
  display: inline-block !important;
  visibility: visible !important;
}

/* Avatar removed - no longer needed */

.user-name {
  font-weight: 500;
  max-width: 8rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dropdown-icon {
  transition: transform 0.25s ease;
  flex-shrink: 0;
  color: var(--wp--preset--color--neutral-dark);
  opacity: 0.8;
  display: inline-block !important;
  visibility: visible !important;
}

.btn-user-menu[aria-expanded="true"] .dropdown-icon,
.btn-user-menu.dropdown-open .dropdown-icon {
  transform: rotate(180deg);
  color: var(--wp--preset--color--cerise-red);
  opacity: 1;
}


/* User Dropdown Menu */
.user-dropdown {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  background-color: var(--wp--preset--color--neutral-white);
  border: 1px solid rgba(1, 3, 5, 0.1);
  border-radius: 0.5rem;
  box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.1);
  min-width: 12rem;
  z-index: 1001;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-0.5rem);
  transition: all 0.2s ease;
  padding: 0.5rem 0;
}

.user-dropdown[aria-hidden="false"],
.user-dropdown.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  color: var(--wp--preset--color--neutral-darkest);
  text-decoration: none;
  font-family: var(--wp--preset--font-family--poppins);
  font-size: var(--wp--preset--font-size--small);
  transition: background-color 0.2s ease;
}

.dropdown-item:hover {
  background-color: rgba(1, 3, 5, 0.05);
}

.dropdown-item:focus-visible {
  background-color: rgba(1, 3, 5, 0.05);
  outline: 2px solid var(--wp--preset--color--cerise-red);
  outline-offset: -2px;
}

.dropdown-item svg {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  color: rgba(1, 3, 5, 0.6);
}

.dropdown-item-danger {
  color: var(--wp--preset--color--cerise-red);
}

.dropdown-item-danger:hover {
  background-color: rgba(234, 67, 53, 0.05);
}

.dropdown-item-danger svg {
  color: var(--wp--preset--color--cerise-red);
}

.dropdown-divider {
  height: 1px;
  background-color: rgba(1, 3, 5, 0.1);
  margin: 0.5rem 0;
  border: none;
}

/* Form Message Styles */
.form-message {
  padding: 0.75rem;
  border-radius: 0.375rem;
  margin-bottom: 1rem;
  font-size: var(--wp--preset--font-size--small);
  font-family: var(--wp--preset--font-family--poppins);
}

.form-message-success {
  background-color: rgba(76, 175, 80, 0.1);
  color: #2e7d32;
  border: 1px solid rgba(76, 175, 80, 0.2);
}

.form-message-error {
  background-color: rgba(234, 67, 53, 0.1);
  color: var(--wp--preset--color--cerise-red);
  border: 1px solid rgba(234, 67, 53, 0.2);
}

/* Form separator for verification form */
.form-links .separator {
  color: rgba(1, 3, 5, 0.4);
  margin: 0 0.5rem;
}

/* Responsive adjustments */
@media (max-width: 48rem) {
  .user-dropdown {
    right: 0;
    left: auto;
    min-width: 10rem;
  }

  .user-name {
    display: none;
  }

  .btn-user-menu {
    padding: 0.5rem;
  }
}

@media (max-width: 30rem) {
  .user-dropdown {
    position: fixed;
    top: 4rem;
    right: 1rem;
    left: 1rem;
    min-width: auto;
  }
}

/* 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;
  }
}

/* ============================================
   Navigation Link Underline Removal
   Override WordPress global a:where(:not(.wp-element-button)) underline
   ============================================ */

/* Primary nav links - covers all states */
.navbar a,
.nav-links a,
.nav-item,
a.nav-item,
.nav-link,
a.nav-link {
    text-decoration: none !important;
}

/* Hover states - ensure underline doesn't appear on hover */
.navbar a:hover,
.nav-links a:hover,
.nav-item:hover,
a.nav-item:hover,
.nav-link:hover,
a.nav-link:hover {
    text-decoration: none !important;
}

/* Focus states for accessibility */
.navbar a:focus,
.nav-links a:focus,
a.nav-item:focus,
a.nav-link:focus {
    text-decoration: none !important;
}

/* Dropdown menu links */
.dropdown-menu a,
.menu-item a,
.dropdown-item {
    text-decoration: none !important;
}

.dropdown-menu a:hover,
.menu-item a:hover,
.dropdown-item:hover {
    text-decoration: none !important;
}

/* Logo link */
.logo-container a {
    text-decoration: none !important;
}

/* ============================================
   Hide "Our Movement" Nav Item (Temporary)
   Completely removes it from the navbar
   ============================================ */

/* Hide by href attribute - most reliable */
.nav-links a[href="/our-movement"],
.nav-links a[href*="/our-movement"] {
    display: none !important;
}

/* Alternative: Hide by data-menu attribute */
.nav-links [data-menu="our-movement"] {
    display: none !important;
}

/* Hide using nth-child as fallback (Our Movement is 2nd item) */
.nav-links > *:nth-child(2):is([data-menu="our-movement"]) {
    display: none !important;
}

/* ============================================
   Password Manager and Autofill Detection
   ============================================ */

/* Detect Chrome/Edge autofill */
@keyframes onAutoFillStart {
    from {}
    to {}
}

input:-webkit-autofill {
    animation-name: onAutoFillStart;
    /* Override default yellow background */
    -webkit-box-shadow: 0 0 0 1000px var(--wp--preset--color--neutral-white) inset !important;
    -webkit-text-fill-color: var(--wp--preset--color--neutral-darkest) !important;
}

/* Style autofilled inputs */
input.autofilled,
input:-webkit-autofill {
    background-color: rgba(173, 216, 230, 0.1) !important;
    border-color: var(--wp--preset--color--biscay) !important;
}

input.autofilled:focus,
input:-webkit-autofill:focus {
    background-color: rgba(173, 216, 230, 0.15) !important;
    border-color: var(--wp--preset--color--cerise-red) !important;
    box-shadow: 0 0 0 2px rgba(234, 67, 53, 0.2) !important;
}

/* ============================================
   Login Button Spinner Animation
   ============================================ */

.btn.is-loading .spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spin 0.75s linear infinite;
    margin-right: 8px;
    vertical-align: middle;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ============================================
   Success Toast Notifications
   ============================================ */

.auth-toast {
    position: fixed;
    top: 80px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    z-index: 100001;
    animation: slideInRight 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    font-family: var(--wp--preset--font-family--poppins);
}

.auth-toast-success {
    background: var(--wp--preset--color--cerise-red);
    color: var(--wp--preset--color--neutral-white);
}

.auth-toast.fade-out {
    animation: slideOutRight 0.3s ease forwards;
}

.auth-toast svg {
    flex-shrink: 0;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Mobile responsiveness for toast */
@media (max-width: 48rem) {
    .auth-toast {
        top: 20px;
        right: 20px;
        left: 20px;
        transform: none;
        animation: slideInDown 0.3s ease;
    }

    .auth-toast.fade-out {
        animation: slideOutUp 0.3s ease forwards;
    }

    @keyframes slideInDown {
        from {
            transform: translateY(-100%);
            opacity: 0;
        }
        to {
            transform: translateY(0);
            opacity: 1;
        }
    }

    @keyframes slideOutUp {
        from {
            transform: translateY(0);
            opacity: 1;
        }
        to {
            transform: translateY(-100%);
            opacity: 0;
        }
    }
}

/* ============================================
   User Menu Dropdown Icon Rotation Animation
   ============================================ */

/* Dropdown icon rotation animation */
.btn-user-menu .dropdown-icon {
    transition: transform 0.2s ease;
}

.btn-user-menu[aria-expanded="true"] .dropdown-icon,
.btn-user-menu.dropdown-open .dropdown-icon {
    transform: rotate(180deg);
}

/* Prevent LoadingManager from affecting user menu button (CSS failsafe) */
#user-menu-trigger.loading {
    pointer-events: auto !important;
}

.btn-user-menu .user-name,
.btn-user-menu .dropdown-icon {
    display: inline-flex !important;
    visibility: visible !important;
}

/* ============================================
   Mobile Submenu - Desktop Hide
   Hide dynamically generated mobile submenus on desktop
   ============================================ */
.mobile-submenu {
    display: none !important;
}

@media (max-width: 48rem) {
    .mobile-submenu {
        display: block !important;
    }
}

/* Spotlight Donate Button */
.spotlight-donate-btn {
    margin-top: 0.5rem;
}

.spotlight-donate-btn .wp-block-button__link {
    background-color: var(--wp--preset--color--cerise-red);
    color: var(--wp--preset--color--neutral-white);
    font-family: var(--wp--preset--font-family--poppins);
    font-size: var(--wp--preset--font-size--small);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.2s ease;
}

.spotlight-donate-btn .wp-block-button__link:hover {
    background-color: var(--wp--preset--color--cerise-red-dark);
}