/* -----------------------------------------------------------
   Base Variables & Defaults
----------------------------------------------------------- */
:root {
  --bg: #111214;
  --card: #1a1f29;
  --text: #e6e8ec;
  --accent: #ff9900;
  --accent-dark: #ba7104;
  --muted: #9da5b4;
  --border: #3d4759;
}

* {
  box-sizing: border-box;
}

body {
  font-family: Verdana, Arial, Helvetica, sans-serif;
  background: var(--bg);
  color: var(--text);
  margin: 0;
  transition: background 0.3s, color 0.3s;
}

.container {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 10px;
}
/* -----------------------------------------------------------
   Global Elements
----------------------------------------------------------- */
a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s ease;
}
a:hover {
  color: var(--accent-dark);
}

/* -----------------------------------------------------------
   Buttons
----------------------------------------------------------- */
button,
.btn-primary,
.btn-secondary {
  font-family: inherit;
  border: none;
  cursor: pointer;
  border-radius: 6px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover {
  background: var(--accent-dark);
}

.btn-secondary {
  background: #2b2f36;
  color: var(--muted);
}
.btn-secondary:hover {
  background: #3a3f48;
  color: var(--text);
}

/* -----------------------------------------------------------
   Cards & Containers
----------------------------------------------------------- */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
  margin-bottom: 20px;
}

/* -----------------------------------------------------------
   Scrollbar (Dark Mode Theming)
----------------------------------------------------------- */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: #0e0f11;
}
::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 6px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}

/* -----------------------------------------------------------
   Toasts & Alerts
----------------------------------------------------------- */
.toast {
  position: fixed;
  bottom: 25px;
  right: 25px;
  padding: 12px 18px;
  border-radius: 6px;
  color: #fff;
  font-weight: 600;
  box-shadow: 0 3px 8px rgba(0,0,0,0.3);
  z-index: 9999;
  opacity: 0.95;
}
.toast.success { background: #16a34a; }
.toast.error { background: #dc2626; }
.toast.warning { background: #f59e0b; }

/* -----------------------------------------------------------
   Animations
----------------------------------------------------------- */
.fade-in {
  animation: fadeIn 0.3s ease-in-out;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}
/* -----------------------------------------------------------
   Post Modal
----------------------------------------------------------- */

.post-modal-overlay {
  position: fixed !important;
  inset: 0;
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9998 !important;
}

.post-modal {
  position: relative;
  z-index: 9999 !important;
}
#postComposerOverlay {
  position: fixed !important;
  inset: 0 !important;
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 99999 !important;
}

#postComposerForm {
  z-index: 100000 !important;
}
