/**
 * Core CSS du thème DarkRedGalaxy
 * Inspiré de Novum (przemec)
 */

:root {
  --background-overlay: rgba(0,0,0,0.85);
  --hover-bg: rgba(219,47,55,0.1);
  --active-bg: rgba(219,47,55,0.2);
}

/* Fond général */
.da-app,
.appMountBackground,
.scrollerBase-289Jih {
  background: var(--background-overlay) !important;
  background-image: var(--app-background);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

/* Sidebar serveurs */
.guildsWrapper-1HP7W2,
.guilds-3Jyo6h {
  background: var(--background-overlay) !important;
}
.guildButton-3jo6N6:hover {
  background-color: var(--hover-bg) !important;
}

/* Liste des canaux */
.channels-2g17ZI,
.container-2tc3JH {
  background-color: var(--background-overlay) !important;
}
.channel-2QD9_O:hover,
.channel-2QD9_O.focused {
  background-color: var(--hover-bg) !important;
}

/* Chat messages */
.theme-dark .chat-3bRxxu {
  background-color: var(--background-overlay) !important;
}
.theme-dark .message-2qnXI6:hover {
  background-color: var(--hover-bg) !important;
}
.theme-dark .message-2qnXI6:active {
  background-color: var(--active-bg) !important;
}

/* Scrollbars */
.da-scroller::-webkit-scrollbar-thumb {
  background-color: var(--scroll-thumb-color) !important;
  border-radius: 4px;
}
.da-scroller::-webkit-scrollbar-track {
  background-color: rgba(0,0,0,0.2) !important;
}

/* Boutons */
.button-3k0cO2,
.button-38aScr {
  background-color: var(--main-color) !important;
  color: var(--button-text) !important;
  border-radius: var(--border-radius);
  transition: background-color 0.3s ease;
}
.button-3k0cO2:hover,
.button-38aScr:hover {
  background-color: var(--main-color-selected) !important;
}

/* Menus contextuels et popups */
.theme-dark .menu-Sp6bN1,
.theme-dark .popout-3p5tYq,
.theme-dark .searchPopout-1vUlP3 {
  background-color: var(--background-overlay) !important;
  border-radius: var(--border-radius);
}

/* Profil utilisateur */
.theme-dark .user-popout {
  background-image: var(--profile-background) !important;
  background-size: cover;
  border-radius: var(--border-radius);
  color: var(--button-text);
}
.theme-dark .user-popout .activity-2dIpRD {
  background-color: var(--profile-activity) !important;
  border-radius: var(--border-radius);
}

/* Titres, mentions, liens */
.theme-dark .mention-20I9oO,
.theme-dark .link-3KPfsl {
  color: var(--accent-color) !important;
}

/* Emojis */
.messageEmoji-2T7w0u,
.largeMessageEmoji-2jXMi7 {
  font-size: var(--Chat-Emoji-Size) !important;
}

/* Font et arrondis */
:root * {
  font-family: var(--font-primary) !important;
  border-radius: var(--border-radius) !important;
}
