/* ================================
   BASE
================================ */

.social-body {
  margin: 0;
  padding: 0;
  font-family: 'Poppins', sans-serif;
  color: #ffffff;
  overflow-x: hidden;
}

/* MAIN PAGE WRAPPER (mobile default) */
.social-page {
  padding: 2rem 5vw 8rem;
  position: relative;
  z-index: 2;
}

/* OLD HEADER (MOBILE) */
.social-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.social-title {
  font-size: 2.4rem;
  font-weight: 900;
  margin: 0;
  letter-spacing: -1px;
}

.social-white {
  color: #ffffff;
  text-shadow: 0 2px 6px rgba(0,0,0,0.25);
}

.social-orange {
  color: #ff8f1f;
  text-shadow: 0 2px 6px rgba(0,0,0,0.25);
}

.social-tagline {
  color: #ff8f1f;
  font-size: 1rem;
  margin-top: 0.3rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.25);
}

/* FLOATING LOGO (MOBILE) */
.social-logo {
  text-align: center;
  margin-bottom: 1.5rem;
}

.social-logo img {
  width: 150px;
  height: auto;
  filter: drop-shadow(0 6px 14px rgba(0,0,0,0.25));
  animation: floatLogo 4s ease-in-out infinite;
}

@keyframes floatLogo {
  0% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
  100% { transform: translateY(0); }
}

/* FEED SECTION TITLES */
.feed-section-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 2rem 0 1rem;
  opacity: 0.9;
}

/* SOCIAL FEED WRAPPER */
.social-feed {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* BOTTOM NAV (MOBILE) */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(20, 20, 20, 0.85);
  backdrop-filter: blur(10px);
  display: flex;
  justify-content: space-around;
  padding: 0.6rem 0;
  z-index: 999;
}

.bottom-nav .nav-item {
  text-align: center;
  color: #ffffff;
  font-size: 0.75rem;
  text-decoration: none;
}

.bottom-nav .nav-item img {
  width: 26px;
  height: 26px;
  margin-bottom: 0.2rem;
}

.bottom-nav .active span {
  color: #ff8f1f;
}

/* ================================
   DESKTOP OVERRIDES
================================ */

@media (min-width: 900px) {
  /* Desktop background */
  .social-body {
    background: linear-gradient(to bottom, #0a1f3d, #fca17d);
  }

  /* Use grid instead of single column */
  .social-page {
    padding: 0; /* main padding handled by grid container */
  }

  .social-desktop-grid {
    display: grid;
    grid-template-columns: 260px 1fr 300px;
    gap: 2rem;
    padding: 2rem;
    max-width: 1600px;
    margin: 0 auto;
  }

  /* Hide old mobile header + floating logo on desktop */
  .social-header,
  .social-logo {
    display: none;
  }

  /* Hide bottom nav on desktop */
  .bottom-nav {
    display: none;
  }
}

/* ================================
   LEFT SIDEBAR
================================ */

.left-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Trending bar (desktop version) */
.desktop-trending {
  background: rgba(255,255,255,0.08);
  padding: 1rem;
  border-radius: 12px;
  display: flex;
  gap: 1rem;
  align-items: center;
}

.desktop-trending span {
  white-space: nowrap;
}

/* ================================
   EXPANDABLE PANELS
================================ */

.expandable-panel {
  background: rgba(255,255,255,0.08);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 1rem;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  cursor: pointer;
  user-select: none;
}

.panel-header:hover {
  background: rgba(255,255,255,0.12);
}

.panel-header .arrow {
  transition: transform 0.3s ease;
}

.panel-content {
  max-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0 1rem;
  transition: max-height 0.35s ease;
}

.panel-content button {
  background: #1e2a4f;
  border: none;
  padding: 0.6rem;
  border-radius: 8px;
  color: #fff;
  cursor: pointer;
}

.panel-content button:hover {
  background: #fca17d;
}

/* ================================
   CENTER FEED
================================ */

.center-feed {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* Composer (desktop) */
.desktop-composer {
  background: rgba(255,255,255,0.1);
  padding: 1rem;
  border-radius: 12px;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

/* ================================
   POST CARDS
================================ */

.post-card {
  background: rgba(255,255,255,0.1);
  padding: 1.2rem;
  border-radius: 12px;
  transition: transform 0.25s ease;
}

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

/* ================================
   REACTION TOOLTIP HOVER
================================ */

.reaction {
  position: relative;
  display: inline-block;
  margin-right: 1rem;
  cursor: pointer;
  font-size: 1.2rem;
}

.reaction:hover {
  transform: scale(1.15);
  transition: 0.2s ease;
}

.reaction::after {
  content: attr(data-tip);
  position: absolute;
  bottom: 150%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.85);
  padding: 6px 10px;
  border-radius: 6px;
  color: #fff;
  font-size: 0.75rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.reaction:hover::after {
  opacity: 1;
}

/* ================================
   RIGHT SIDEBAR
================================ */

.right-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.activity-panel,
.suggested-panel {
  background: rgba(255,255,255,0.08);
  padding: 1rem;
  border-radius: 12px;
}

.activity-panel h3,
.suggested-panel h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
}

/* ================================
   DESKTOP HEADER
================================ */

.social-desktop-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background: rgba(0,0,0,0.25);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

/* LEFT SIDE: LOGO + TITLE */
.social-header-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* FIXED LOGO SIZE */
.social-logo-small {
  width: 58px;
  height: auto;
  border-radius: 12px;
}

/* TITLE BLOCK */
.social-title-block {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

/* TITLE COLORS */
.title-white {
  color: #ffffff;
}

.title-orange {
  color: #ff8f1f; /* OneWorldFeed orange */
}

/* TITLE TEXT */
.desktop-title {
  margin: 0;
  font-size: 1.8rem;
  font-weight: 700;
}

/* TAGLINE */
.desktop-tagline {
  margin: 0;
  font-size: 0.9rem;
  color: #cccccc;
}

/* NAVIGATION */
.desktop-nav {
  display: flex;
  gap: 2rem;
}

.desktop-nav a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.desktop-nav a:hover {
  color: #ff8f1f;
}
