/* General Styles */
:root {
  --orange: #FF6A00;
  --black: #121212;
  --dark: #1E1E1E;
  --white: #FFFFFF;
  --gray: #F5F5F5;
  --text-gray: #777;
  --border-light: #EAEAEA;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--gray);
  color: #222;
  line-height: 1.6;
  transition: background 0.3s ease;
}

body.dark {
  background: var(--black);
  color: var(--white);
}

h1, h2, h3, h4 {
  font-family: 'Poppins', sans-serif;
}

a {
  color: var(--orange);
  text-decoration: none;
}

button {
  cursor: pointer;
  border: none;
  outline: none;
  transition: 0.2s ease;
}

/* Links & Buttons */
.create-btn {
  background: var(--orange);
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: 500;
}

.create-btn:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  background: var(--black);
  color: white;
  padding: 14px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 1000;
}

/* Cards & Feed */
.card {
  background: white;
  padding: 22px;
  border-radius: 14px;
  border: 1px solid var(--border-light);
  margin-bottom: 20px;
  transition: all 0.25s ease;
}

body.dark .card {
  background: var(--dark);
  border: 1px solid #2C2C2C;
}

/* Sidebar */
.sidebar {
  background: var(--dark);
  color: white;
  padding: 22px;
  border-radius: 14px;
}

/* Forms */
#createPostForm {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--white);
  padding: 20px;
  border-radius: 14px;
  z-index: 2000;
  width: 90%;
  max-width: 400px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

#overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 1500;
}

/* Utilities */
.hidden { display: none; }
.text-center { text-align: center; }
