/* Base - Same as main site */
body {
  margin: 0;
  font-family: 'Rajdhani', sans-serif;
  background-color: var(--bg);
  color: var(--text);
  transition: background-color 0.4s, color 0.4s;
}

:root {
  --bg: #f9f9f9;
  --text: #111;
  --nav-bg: #ffffffdd;
  --accent: #00bcd4;
  --neon: #00fff0;
  --border: #e1e8ed;
  --hover-bg: #f5f8fa;
}

body.dark {
  --bg: #0d1117;
  --text: #f5f5f5;
  --nav-bg: #1a1f24dd;
  --accent: #00eaff;
  --neon: #00ffff;
  --border: #2d3741;
  --hover-bg: #1e2328;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: var(--nav-bg);
  display: flex;
  align-items: center;
  padding: 8px 20px;
  z-index: 900;
  transition: top 0.3s;
  box-shadow: 0 2px 10px #0003;
  backdrop-filter: blur(10px);
}

.navbar.hide {
  top: -80px;
}

.logo-section {
  display: flex;
  align-items: center;
}

.logo {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  margin-right: 10px;
}

.site-name {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
}

/* Fixed Buttons */
.fixed-buttons {
  position: fixed;
  top: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 1001;
}

.fixed-buttons button {
  background: var(--nav-bg);
  border: none;
  color: var(--text);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 10px 12px;
  border-radius: 8px;
  box-shadow: 0 0 15px var(--neon);
  transition: background 0.3s, color 0.3s, transform 0.2s;
  backdrop-filter: blur(10px);
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fixed-buttons button:hover {
  background: var(--accent);
  color: #fff;
  transform: scale(1.1);
}

/* Dropdown Menu */
.dropdown-menu {
  display: none;
  flex-direction: column;
  position: fixed;
  top: 70px;
  right: 20px;
  width: 220px;
  background-color: var(--nav-bg);
  box-shadow: 0 4px 20px #0005;
  border-radius: 8px;
  z-index: 1000;
  animation: slideDown 0.3s ease forwards;
  backdrop-filter: blur(10px);
}

.dropdown-menu a {
  color: var(--text);
  text-decoration: none;
  padding: 14px;
  border-bottom: 1px solid var(--border);
  display: block;
  transition: background 0.3s, color 0.3s;
}

.dropdown-menu a:hover {
  background: var(--accent);
  color: #fff;
}

@keyframes slideDown {
  0% {opacity: 0; transform: translateY(-20px);}
  100% {opacity: 1; transform: translateY(0);}
}

/* Posts Container */
.posts-container {
  max-width: 600px;
  margin: 80px auto 20px;
  padding: 0 20px;
}

/* Posts Feed */
.posts-feed {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Individual Post */
.post {
  background: var(--nav-bg);
  border-radius: 16px;
  padding: 20px;
  border: 1px solid var(--border);
  transition: transform 0.2s, box-shadow 0.2s;
  backdrop-filter: blur(10px);
}

.post:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.post-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 15px;
}

.post-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
}

.post-user {
  display: flex;
  flex-direction: column;
}

.post-name {
  font-weight: 700;
  font-size: 16px;
  color: var(--text);
}

.post-username {
  color: var(--accent);
  font-size: 14px;
}

.post-time {
  color: var(--text);
  opacity: 0.6;
  font-size: 14px;
  margin-left: auto;
}

.post-content {
  margin-bottom: 15px;
  line-height: 1.6;
  font-size: 16px;
  white-space: pre-line;
}

/* Post Media */
.post-media {
  margin: 15px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.post-media img {
  width: 100%;
  border-radius: 12px;
  max-height: 500px;
  object-fit: cover;
}

.post-media video {
  width: 100%;
  border-radius: 12px;
  max-height: 500px;
}

.media-grid {
  display: grid;
  gap: 5px;
}

.media-grid-2 {
  grid-template-columns: 1fr 1fr;
}

.media-grid-3 {
  grid-template-columns: 1fr 1fr;
}

.media-grid-3 img:first-child,
.media-grid-3 video:first-child {
  grid-column: 1 / -1;
}

.media-grid-4 {
  grid-template-columns: 1fr 1fr;
}

/* Load More Button */
.load-more-container {
  display: flex;
  justify-content: center;
  margin: 30px 0;
}

.load-more-btn {
  background: var(--accent);
  color: white;
  border: none;
  padding: 12px 30px;
  border-radius: 25px;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
}

.load-more-btn:hover {
  background: var(--neon);
  transform: scale(1.05);
}

.load-more-btn:disabled {
  background: #ccc;
  cursor: not-allowed;
  transform: none;
}

/* Animations */
@keyframes fadeIn {
  0% {opacity: 0; transform: translateY(20px);}
  100% {opacity: 1; transform: translateY(0);}
}

.fade-in {
  animation: fadeIn 0.5s ease forwards;
}

/* Responsive */
@media (max-width: 768px) {
  .posts-container {
    margin: 70px auto 10px;
    padding: 0 15px;
  }
  
  .post {
    padding: 15px;
  }
  
  .media-grid-2,
  .media-grid-3,
  .media-grid-4 {
    grid-template-columns: 1fr;
  }
}