/* Feed Layout
 * ==========================================================================
 * Layout for fan feed experience with Facebook-like masthead
 */

/* Masthead
 * -------------------------------------------------------------------------- */

.feed-masthead {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-bg--surface);
  border-bottom: 1px solid var(--color-border--light);
  box-shadow: 0 1px 2px 0 oklch(from var(--color-shadow) l c h / 0.05);
}

.feed-masthead__container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--size-4);
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.feed-masthead__brand {
  display: flex;
  align-items: center;
  min-width: 200px;
}

.feed-masthead__logo {
  display: flex;
  align-items: center;
  gap: var(--size-2);
  text-decoration: none;
  color: var(--color-primary);
  font-weight: 700;
  font-size: var(--font-size-large);
  transition: color 0.2s ease;
}

.feed-masthead__logo:hover {
  color: var(--color-primary--bright);
}

.feed-masthead__logo-mark {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  fill: currentColor;
}


.feed-masthead__logo-text {
  letter-spacing: -0.02em;
}

/* Navigation */
.feed-masthead__nav {
  display: flex;
  gap: var(--size-2);
  flex: 1;
  justify-content: center;
}

.feed-masthead__nav-item {
  display: flex;
  align-items: center;
  padding: var(--size-2) var(--size-4);
  border-radius: var(--radius-medium);
  text-decoration: none;
  color: var(--color-ink--muted);
  font-weight: 500;
  transition: all 0.2s ease;
  position: relative;
}

.feed-masthead__nav-item:hover {
  background: var(--color-bg--surface-container);
  color: var(--color-ink);
}

.feed-masthead__nav-item--active {
  color: var(--color-primary);
}

.feed-masthead__nav-item--active::after {
  content: '';
  position: absolute;
  bottom: -13px;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--color-primary);
  border-radius: 3px 3px 0 0;
}

/* User Actions */
.feed-masthead__actions {
  display: flex;
  align-items: center;
  gap: var(--size-3);
  min-width: 200px;
  justify-content: flex-end;
}

.feed-masthead__user {
  position: relative;
}

.feed-masthead__user-button {
  display: flex;
  align-items: center;
  gap: var(--size-2);
  padding: var(--size-1) var(--size-2);
  background: transparent;
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: background 0.2s ease;
  color: var(--color-ink);
}

.feed-masthead__user-button:hover {
  background: var(--color-bg--surface-container);
}

.feed-masthead__user-name {
  font-weight: 500;
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Dropdown Badge for Coming Soon */
.dropdown__item-badge {
  margin-left: auto;
  font-size: var(--font-size-x-small);
  padding: var(--size-1) var(--size-2);
  background: var(--color-bg--surface-container);
  color: var(--color-ink--muted);
  border-radius: var(--radius-full);
  font-weight: 500;
}

/* Main Content Area
 * -------------------------------------------------------------------------- */

.feed-main {
  min-height: calc(100vh - 56px);
  background: var(--color-bg--canvas);
  padding: var(--size-6) 0;
}

.feed-container {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 var(--size-4);
}

/* Feed Content Styles
 * -------------------------------------------------------------------------- */

.feed-header {
  margin-bottom: var(--size-6);
}

.feed-title {
  font-size: var(--font-size-x-large);
  font-weight: 700;
  margin-bottom: var(--size-2);
  color: var(--color-ink);
}

.feed-subtitle {
  font-size: var(--font-size-medium);
  color: var(--color-ink--muted);
}

.feed-empty {
  background: var(--color-bg--surface);
  border-radius: var(--radius-large);
  padding: var(--size-12) var(--size-6);
  text-align: center;
}

.feed-empty__icon {
  font-size: var(--font-size-xx-large);
  margin-bottom: var(--size-4);
  opacity: 0.3;
}

.feed-empty__title {
  font-size: var(--font-size-large);
  font-weight: 600;
  margin-bottom: var(--size-2);
  color: var(--color-ink);
}

.feed-empty__text {
  color: var(--color-ink--muted);
  margin-bottom: var(--size-6);
}

.feed-empty__action {
  display: inline-block;
}

/* Feed Post Card (future use)
 * -------------------------------------------------------------------------- */

.feed-post {
  background: var(--color-bg--surface);
  border-radius: var(--radius-large);
  margin-bottom: var(--size-4);
  padding: var(--size-4);
  box-shadow: 0 1px 2px 0 oklch(from var(--color-shadow) l c h / 0.05);
}

.feed-post__header {
  display: flex;
  align-items: center;
  gap: var(--size-3);
  margin-bottom: var(--size-3);
}

.feed-post__author {
  flex: 1;
}

.feed-post__author-name {
  font-weight: 600;
  color: var(--color-ink);
}

.feed-post__meta {
  font-size: var(--font-size-x-small);
  color: var(--color-ink--muted);
}

.feed-post__content {
  color: var(--color-ink);
  line-height: 1.6;
  margin-bottom: var(--size-3);
}

.feed-post__actions {
  display: flex;
  gap: var(--size-2);
  padding-top: var(--size-3);
  border-top: 1px solid var(--color-border--light);
}

/* Mobile Responsive
 * -------------------------------------------------------------------------- */

@media (max-width: 768px) {
  .feed-masthead__nav {
    display: none;
  }

  .feed-masthead__user-name {
    display: none;
  }

  .feed-container {
    padding: 0 var(--size-3);
  }
}

/* Dark Mode
 * -------------------------------------------------------------------------- */

[data-color-scheme="dark"] .feed-masthead {
  background: var(--color-bg--surface);
  border-bottom-color: var(--color-border);
}

[data-color-scheme="dark"] .feed-main {
  background: var(--color-bg--canvas);
}

[data-color-scheme="dark"] .feed-post {
  background: var(--color-bg--surface);
}