/* ==========================================================
   THEME PLAYSTATION - BOOTSTRAP 5.3 READY
   Couleurs : Bleu Nuit, Bleu Électrique et Blanc/Gris
========================================================== */
@import url('https://fonts.googleapis.com/css2?family=Titillium+Web:wght@600;700&display=swap');
:root {
    --accent: #00439C;
    --accent-hover: #0070CC;
    --bg-page: #070B14;
    --card-bg: #121A2A;
    --border-color: #1F2D44;
    --text-main: #E0E4EA;
}

body {
    background-color: var(--bg-page);
    color: var(--text-main);
    font-family: 'Titillium Web',Segoe UI, Tahoma, Geneva, Verdana, sans-serif;
    transition: background-color 0.3s ease, color 0.3s ease;
    background-image: 
    linear-gradient(rgba(0, 102, 255, 0.15) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 102, 255, 0.15) 1px, transparent 1px);
  background-size: 24px 24px;
  animation: gridMove 20s linear infinite;
}

/* Lueur bleu électrique ambiante dans le bas de l'écran */
body::after {
  content: "";
  position: fixed;
  bottom: 0; left: 0; width: 100%; height: 40vh;
  background: linear-gradient(to top, rgba(0, 204, 255, 0.2), transparent);
  pointer-events: none;
  z-index: -1;
}

@keyframes gridMove {
  0% { background-position: 0 0; }
  100% { background-position: 24px 24px; }
}

.theme-text {
    color: var(--accent) !important;
}

.theme-text-hover {
    color: var(--text-main);
    transition: color 0.2s ease;
}

.theme-text-hover:hover {
    color: var(--accent-hover) !important;
}

.theme-bg {
    background-color: var(--card-bg) !important;
    border-bottom: 4px solid var(--accent);
}

.theme-card {
    background-color: var(--card-bg) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 8px;
    overflow: hidden;
}

.theme-header {
    background-color: #0A1220 !important;
    border-bottom: 2px solid var(--accent) !important;
    color: #ffffff;
}

.btn-theme {
    background-color: var(--accent);
    border: 1px solid var(--accent);
    color: white;
    font-weight: 600;
    transition: all 0.2s ease-in-out;
}

.btn-theme:hover, .btn-theme:focus, .btn-theme:active {
    background-color: var(--accent-hover);
    border-color: var(--accent-hover);
    color: white;
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0, 112, 204, 0.4);
}

.theme-stat-box {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    transition: border-color 0.3s ease, transform 0.2s ease;
}

.theme-stat-box:hover {
    border-color: var(--accent) !important;
    background-color: #1A2438;
    transform: translateY(-3px);
}

.table-dark {
    --bs-table-bg: var(--card-bg);
    --bs-table-striped-bg: #162030;
    --bs-table-hover-bg: #1f2d44;
    border-color: var(--border-color);
}

@keyframes pulseOnline {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 112, 204, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 7px rgba(0, 112, 204, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 112, 204, 0); }
}

.online-indicator {
    display: inline-block;
    width: 10px;
    height: 10px;
    background-color: var(--accent-hover);
    border-radius: 50%;
    animation: pulseOnline 2s infinite ease-in-out;
}

.shout-gold-effect { 
    background: var(--accent);
    color: white !important;
    animation: none;
    border-radius: 4px;
    padding: 3px 8px;
}

.custom-scrollbar::-webkit-scrollbar {
    width: 8px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: #1a1a1a;
    border-radius: 4px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background-color: #333333;
    border-radius: 4px;
    border: 2px solid #1a1a1a;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background-color: var(--accent);
}

.shoutbox-chat { 
    height: 600px; 
}

#shoutbox-emoji-picker span { 
    cursor: pointer; 
    transition: transform 0.1s ease; 
    display: inline-block; 
    user-select: none; 
}

#shoutbox-emoji-picker span:hover { 
    transform: scale(1.3); 
}

#shoutbox-chat .shout-msg {
    padding: 6px 12px;
    margin-bottom: 2px;
    border-radius: 4px;
}

#shoutbox-chat .shout-msg:nth-child(odd) {
    background-color: rgba(255, 255, 255, 0.05) !important;
}

#shoutbox-chat .shout-msg:nth-child(even) {
    background-color: rgba(0, 0, 0, 0.2) !important;
}