/* =====================================
   BLINDTEST MODERN UI - 2025
   ===================================== */
:root {
  --main-bg: linear-gradient(135deg, #18181b 0%, #23234a 100%);
  --glass-bg: rgba(30, 30, 40, 0.65);
  --glass-blur: blur(12px);
  --accent: #1DB954;
  --accent2: #ff6b6b;
  --text-main: #fff;
  --text-muted: #b3b3b3;
  --border-radius: 18px;
  --shadow: 0 8px 32px rgba(0,0,0,0.18);
}
body {
  min-height: 100vh;
  background: var(--main-bg);
  color: var(--text-main);
  font-family: 'Poppins', 'Segoe UI', Arial, sans-serif;
  margin: 0;
  overflow-x: hidden;
}
.header-bar {
  width: 100vw;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  box-shadow: var(--shadow);
  border-radius: 0 0 var(--border-radius) var(--border-radius);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 32px;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
}
.header-bar .logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.3rem;
  font-weight: 700;
}
.header-bar .user {
  font-size: 1rem;
  color: var(--accent);
  font-weight: 600;
}
.main-container {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: flex-start;
  gap: 32px;
  margin-top: 80px;
  margin-bottom: 32px;
  width: 100vw;
  min-height: 80vh;
}
@media (max-width: 900px) {
  .main-container {
    flex-direction: column;
    align-items: center;
    gap: 18px;
    margin-top: 70px;
  }
}
.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  padding: 24px 18px;
  margin-bottom: 18px;
  min-width: 280px;
  max-width: 420px;
  width: 100%;
  color: var(--text-main);
  position: relative;
}
@media (max-width: 600px) {
  .glass-panel {
    padding: 14px 6px;
    min-width: 180px;
    max-width: 98vw;
  }
}
.ranking-panel {
  flex: 1;
  min-width: 260px;
}
.chat-panel {
  flex: 2;
  min-width: 320px;
  max-width: 600px;
}
.titles-panel {
  flex: 1;
  min-width: 220px;
}
.panel-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--accent);
  letter-spacing: 1px;
}
.ranking-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.ranking-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  font-size: 1rem;
}
.ranking-list li:last-child {
  border-bottom: none;
}
.ranking-user {
  display: flex;
  align-items: center;
  gap: 8px;
}
.ranking-score {
  font-weight: 700;
  color: var(--accent);
}
.chat-box {
  width: 100%;
  min-height: 180px;
  max-height: 320px;
  overflow-y: auto;
  background: rgba(0,0,0,0.12);
  border-radius: 12px;
  margin-bottom: 12px;
  padding: 10px;
  font-size: 1rem;
}
.chat-input {
  width: 100%;
  padding: 10px 14px;
  border-radius: 12px;
  border: none;
  background: rgba(255,255,255,0.08);
  color: var(--text-main);
  font-size: 1rem;
  margin-bottom: 6px;
  outline: none;
}
.send-btn {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 10px 22px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(29,185,84,0.12);
  transition: background 0.2s;
}
.send-btn:hover {
  background: #17a74a;
}
.titles-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.98rem;
}
.titles-list li {
  padding: 6px 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  color: var(--text-muted);
}
.titles-list li:last-child {
  border-bottom: none;
}
.footer-bar {
  width: 100vw;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  box-shadow: var(--shadow);
  border-radius: var(--border-radius) var(--border-radius) 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 0;
  position: fixed;
  bottom: 0;
  left: 0;
  z-index: 100;
  font-size: 0.95rem;
  color: var(--text-muted);
}
/* Animations subtiles */
.glass-panel, .header-bar, .footer-bar {
  animation: fadeInGlass 0.7s cubic-bezier(.4,0,.2,1);
}
@keyframes fadeInGlass {
  from { opacity: 0; transform: translateY(30px) scale(0.98); }
  to { opacity: 1; transform: none; }
}
/* Boutons ronds pour actions */
.round-btn {
  background: var(--accent2);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  box-shadow: 0 2px 8px rgba(255,107,107,0.12);
  cursor: pointer;
  transition: background 0.2s;
}
.round-btn:hover {
  background: #e94e4e;
}
/* Responsive tweaks */
@media (max-width: 600px) {
  .header-bar, .footer-bar {
    padding: 8px 10px;
    font-size: 0.95rem;
  }
  .main-container {
    margin-top: 60px;
    margin-bottom: 18px;
  }
}
