body {
  font-family: 'Segoe UI', sans-serif;
  margin: 0;
  padding: 20px;
  background: #f4f4f4;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

h1 { 
  text-align: center; 
  color: #ff4500; 
}

/* 🧭 Navigation Buttons Container */
.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.nav-left {
  display: flex;
  gap: 10px;
}

.nav-right {
  display: flex;
}

/* Button Styles */
.nav-btn {
  display: inline-block;
  padding: 10px 20px;
  background: #ff4500;
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  transition: background 0.2s, transform 0.2s;
}

.nav-btn:hover {
  background: #e03e00;
  transform: scale(1.05);
}

/* Layout Containers */
#container {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  flex-wrap: wrap;
}

#feed-container {
  flex: 1;
  min-width: 300px;
}

#video-container {
  flex: 0 0 350px;
  position: sticky;
  top: 20px;
  height: fit-content;
}

#video-container iframe {
  width: 100%;
  height: 200px;
  border-radius: 10px;
  margin-bottom: 15px;
}

/* Feed */
#feed { 
  display: flex; 
  flex-direction: column; 
  gap: 15px; 
}

.post {
  background: white;
  padding: 15px;
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  cursor: pointer;
  transition: transform 0.2s;
}

.post:hover { 
  transform: scale(1.02); 
}

.post h3 { 
  margin: 0; 
  color: #333; 
}
.post p { 
  font-size: 16px; 
  color: #555; 
}
.post img { 
  width: 100%; 
  border-radius: 10px; 
  margin-top: 10px; 
}

/* Likes */
.like-container { 
  display: flex; 
  align-items: center; 
  margin-top: 10px; 
  gap: 10px; 
}
.like { 
  cursor: pointer; 
  color: #888; 
  transition: transform 0.2s, color 0.2s; 
}
.like.liked { 
  color: #ff4500; 
  transform: scale(1.3); 
}
.like-count { 
  font-weight: bold; 
  color: #333; 
}

/* Comments */
.comments { 
  margin-top: 10px; 
}
.comments h4 { 
  margin: 5px 0; 
  color: #555; 
}
.comment-list, 
#overlay-comments ul { 
  list-style: none; 
  padding-left: 0; 
  margin: 0; 
}
.comment-list li, 
#overlay-comments li { 
  padding: 3px 0; 
  border-bottom: 1px solid #eee; 
  font-size: 14px; 
  color: #333; 
}

#loading { 
  text-align: center; 
  margin: 20px 0; 
  font-weight: bold; 
  color: #888; 
}

/* Overlay (Full Post View) */
#overlay {
  position: fixed;
  top: 0; 
  left: 0; 
  width: 100%; 
  height: 100%;
  background: rgba(0,0,0,0.8);
  display: none; 
  justify-content: center; 
  align-items: center;
  z-index: 1000;
}

#overlay-content {
  background: #fff; 
  padding: 20px; 
  border-radius: 10px;
  max-width: 600px; 
  width: 90%; 
  max-height: 90%; 
  overflow-y: auto;
  position: relative;
}

#overlay-content img { 
  width: 100%; 
  border-radius: 10px; 
  margin-top: 10px; 
}

#close-btn { 
  position: absolute; 
  top: 10px; 
  right: 15px; 
  font-size: 30px; 
  cursor: pointer; 
  color: #333; 
}

/* 🧡 Profile Button */
.profile-btn {
  display: inline-block;
  padding: 10px 20px;
  background: #ff4500;
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  transition: background 0.2s, transform 0.2s;
}

.profile-btn:hover {
  background: #e03e00;
  transform: scale(1.05);
}

/* ------------------ 🪧 ADS ------------------ */

/* Feed Ads */
.ad {
  background: #fff;
  padding: 12px;
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.08);
  display: flex;
  gap: 12px;
  align-items: flex-start;
  position: relative;
  transition: transform 0.2s;
}

.ad:hover {
  transform: scale(1.01);
}

.ad img {
  width: 120px;
  height: 90px;
  border-radius: 8px;
  object-fit: cover;
}

.ad .meta {
  flex: 1;
}

.sponsored-badge {
  background: #ff4500;
  color: white;
  font-size: 12px;
  padding: 2px 6px;
  border-radius: 4px;
  margin-right: 5px;
}

.ad .title {
  font-weight: bold;
  margin-top: 4px;
  color: #333;
}

.ad .desc {
  font-size: 14px;
  color: #666;
  margin-top: 4px;
}

.ad .cta {
  color: #ff4500;
  font-weight: bold;
  margin-top: 8px;
  cursor: pointer;
}

.ad .dismiss {
  position: absolute;
  top: 8px;
  right: 10px;
  border: none;
  background: transparent;
  color: #999;
  font-size: 16px;
  cursor: pointer;
}

.ad .dismiss:hover {
  color: #333;
}

/* Sidebar Ads */
.sidebar-ad {
  background: #fff;
  padding: 10px;
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.08);
  margin-bottom: 15px;
  text-align: center;
}

.sidebar-ad img {
  width: 100%;
  border-radius: 10px;
}

.sidebar-ad .sponsored-badge {
  display: inline-block;
  margin-top: 6px;
}

/* Bottom Banner Ad */
.bottom-ad {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: white;
  box-shadow: 0 -2px 8px rgba(0,0,0,0.15);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 12px 20px;
  gap: 15px;
  z-index: 2000;
}

.bottom-ad img {
  width: 80px;
  height: 60px;
  border-radius: 8px;
  object-fit: cover;
}

.bottom-ad .info {
  flex: 1;
}

.bottom-ad .info strong {
  color: #333;
  display: block;
}

.bottom-ad button {
  background: #ff4500;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
}

.bottom-ad button:hover {
  background: #e03e00;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%);
  background: #333;
  color: white;
  padding: 10px 20px;
  border-radius: 8px;
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 3000;
}
.toast.show {
  opacity: 1;
}
