/*
 * Feed UI Enhancements
 *
 * This stylesheet defines the layout and styling for the activity feed when
 * displaying Explore and My Feed tabs, as well as the trending topics and
 * recommended profiles widgets in the sidebar. It ensures a responsive,
 * modern look that aligns with the Videohub360 aesthetic while drawing
 * inspiration from popular social platforms.  
 */

/* Tabs for switching between My Feed and Explore views */
.vh360-feed-tabs {
    display: flex;
    gap: 0;
    padding: 0;
    margin: 0 0 1.5rem 0;
    border-bottom: 2px solid #e5e7eb;
    position: sticky;
    top: 0;
    background: #ffffff;
    z-index: 100;
    backdrop-filter: blur(8px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
    width: 100%;
}

.vh360-feed-tabs a,
.vh360-feed-tab {
    flex: 1;
    padding: 1rem 0;
    text-align: center;
    font-weight: 700;
    font-size: 0.9375rem;
    color: #6b7280;
    text-decoration: none;
    position: relative;
    transition: all 0.2s ease;
    cursor: pointer;
}

.vh360-feed-tabs a:hover,
.vh360-feed-tab:hover {
    color: #1f2937;
    background: #f9fafb;
}

.vh360-feed-tabs a.active,
.vh360-feed-tab.active {
    color: #2563eb;
}

/* Active indicator bar */
.vh360-feed-tabs a.active::after,
.vh360-feed-tab.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border-radius: 4px 4px 0 0;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: scaleX(0);
    }
    to {
        transform: scaleX(1);
    }
}

/* Grid layout for main feed and sidebar */
.vh360-feed-grid {
  display: flex;
  flex-wrap: nowrap;
  gap: 2rem;
  align-items: flex-start;
  justify-content: center;
}
.vh360-feed-main {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 600px;
  width: 100%;
}
.vh360-feed-sidebar {
  width: 300px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* Section headings */
.vh360-trending-section h3,
.vh360-recommended-section h3 {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 0.75rem;
}

/* Trending and recommended lists */
.vh360-trending-list,
.vh360-recommended-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.vh360-trending-list li,
.vh360-recommended-list li {
  padding: 0.5rem 0;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.vh360-trending-list li:last-child,
.vh360-recommended-list li:last-child {
  border-bottom: none;
}
.vh360-trending-list li a,
.vh360-recommended-list li a {
  color: var(--vh360-link-color, #2563eb);
  text-decoration: none;
  font-weight: 500;
}
.vh360-trending-list li a:hover,
.vh360-recommended-list li a:hover {
  text-decoration: underline;
}

/* Recommended user item */
.vh360-recommended-user {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
.vh360-recommended-user span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.vh360-recommended-user .avatar {
  border-radius: 9999px;
}

/* Responsive adjustments */
@media (max-width: 900px) {
  .vh360-feed-grid {
    flex-direction: column;
  }
  .vh360-feed-sidebar {
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1.5rem;
  }
  .vh360-feed-sidebar > div {
    flex: 1 1 100%;
  }
}
