/* css/style.css — Exact Twitter Dark Theme */

:root {
  --bg-color: #000000;
  --bg-hover: rgba(255,255,255,0.03);
  --border-color: rgba(255,255,255,0.1);
  --primary: #1D9BF0;
  --primary-hover: #1A8CD8;
  --text-main: #E7E9EA;
  --text-muted: #71767B;
  --error: #F4212E;
  --success: #00BA7C;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--bg-color);
  color: var(--text-main);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
  overflow-y: scroll;
}

a {
  color: var(--text-main);
  text-decoration: none;
}

ul {
  list-style: none;
}

/* Scrollbar Custom */
::-webkit-scrollbar {
  width: 14px;
}
::-webkit-scrollbar-track {
  background: var(--bg-color);
}
::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 10px;
  border: 4px solid var(--bg-color);
}

/* --- Layout Principal 3 Colonnes --- */
.app-container {
  max-width: 1265px;
  margin: 0 auto;
  display: flex;
  min-height: 100vh;
}

/* Left Sidebar */
.sidebar-left {
  width: 275px;
  padding: 0 12px;
  border-right: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Main Feed Center */
.main-feed {
  width: 600px;
  border-right: 1px solid var(--border-color);
  min-height: 100vh;
}

/* Right Sidebar */
.sidebar-right {
  width: 350px;
  padding: 12px 24px;
  position: sticky;
  top: 0;
  height: 100vh;
}

/* Utilities */
.flex { display: flex; }
.flex-col { display: flex; flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.text-bold { font-weight: 700; }
.text-muted { color: var(--text-muted); }
.text-sm { font-size: 13px; }
.text-lg { font-size: 20px; }
.p-4 { padding: 16px; }

/* Responsive Media Queries */
@media (max-width: 1265px) {
  .sidebar-left { width: 88px; align-items: center; }
  .nav-text { display: none; }
}

@media (max-width: 1004px) {
  .sidebar-right { display: none; }
  .main-feed { width: 600px; max-width: 100%; border-right: none; }
}

@media (max-width: 700px) {
  .sidebar-left { display: none; }
  .app-container { flex-direction: column; }
  .main-feed { width: 100%; }
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.fade-in { animation: fadeIn 0.3s ease; }

/* --- UI MOBILE (Bottom Nav & FAB) --- */
.mobile-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border-color);
  z-index: 100;
  justify-content: space-around;
  align-items: center;
  height: 53px;
}
.mobile-nav a {
  padding: 10px;
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  transition: 0.2s;
}
.mobile-nav a:hover { color: var(--primary); }
.mobile-nav svg { width: 26px; fill: currentColor; }

.mobile-fab {
  display: none;
  position: fixed;
  bottom: 70px;
  right: 20px;
  width: 56px;
  height: 56px;
  background: var(--primary);
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 4px 12px rgba(29, 155, 240, 0.4);
  z-index: 99;
  transition: 0.2s;
}

@media (max-width: 700px) {
  .mobile-nav { display: flex; }
  .mobile-fab { display: flex; }
  .main-feed { padding-bottom: 60px; /* Évite que le dernier post soit caché par la barre */ }
}