/* Authenticated Feed Page Styles */

.feed-page-wrapper {
  background-color: #f7f7f9;
  min-height: calc(100vh - 200px);
  padding: 2rem 0 4rem;
  font-family: Roboto, Arial, Helvetica, sans-serif;
  color: #282937;
}

.feed-container {
  max-width: 1380px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  gap: 2.25rem;
  align-items: flex-start;
}

/* --- Left Column --- */
.feed-col-left {
  width: 260px;
  flex-shrink: 0;
}

.feed-block {
  margin-bottom: 1.75rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid #e2e4e8;
}

.feed-block:last-child {
  border-bottom: none;
}

.feed-block__title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #282937;
  margin: 0 0 0.65rem;
  line-height: 1.3;
}

.feed-block__text {
  font-size: 0.925rem;
  color: #5c5c66;
  line-height: 1.45;
  margin: 0 0 0.75rem;
}

.feed-block__link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #72246c;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: underline;
  margin-bottom: 0.6rem;
  cursor: pointer;
}

.feed-block__link:hover {
  color: #9a205f;
}

.feed-block__link svg {
  width: 13px;
  height: 13px;
  fill: currentColor;
}

/* --- Center Column (Feed Cards) --- */
.feed-col-center {
  flex: 1;
  min-width: 0;
  max-width: 760px;
}

.feed-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.feed-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #ffffff;
  border: 1px solid #bbbcbc;
  border-radius: 4px;
  padding: 0.5rem 1rem;
  font-size: 0.925rem;
  font-weight: 500;
  color: #282937;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}

.feed-filter-btn:hover {
  border-color: #72246c;
  color: #72246c;
}

.feed-filter-btn svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

.feed-filter-status {
  font-size: 0.875rem;
  color: #5c5c66;
  flex: 1;
  text-align: center;
}

.feed-filter-status strong {
  color: #282937;
  font-weight: 600;
}

.feed-manage-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #72246c;
  font-size: 0.925rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.feed-manage-link:hover {
  text-decoration: underline;
}

.feed-manage-link svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* --- Article Card --- */
.feed-card {
  background: #ffffff;
  border-radius: 4px;
  border: 1px solid #e2e4e8;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
  margin-bottom: 1.75rem;
  overflow: hidden;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.feed-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.feed-card__media {
  position: relative;
  width: 100%;
  height: 220px;
  background-color: #e8eaed;
  overflow: hidden;
}

.feed-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.feed-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(255, 255, 255, 0.95);
  padding: 4px 10px;
  border-radius: 3px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #282937;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.12);
  text-transform: uppercase;
}

.feed-badge svg {
  width: 13px;
  height: 13px;
  fill: #72246c;
}

.feed-badge--locked svg {
  fill: #5c5c66;
}

.feed-card__category {
  position: absolute;
  bottom: 0;
  left: 0;
  background: #ffffff;
  padding: 6px 14px;
  border-top-right-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #5c5c66;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  text-transform: uppercase;
}

.feed-card__category-icon {
  font-size: 0.9rem;
}

.feed-card__body {
  padding: 1.35rem 1.5rem 1.25rem;
}

.feed-card__title {
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.35;
  color: #282937;
  margin: 0 0 0.75rem;
}

.feed-card__title a {
  color: #282937;
  text-decoration: none;
}

.feed-card__title a:hover {
  color: #72246c;
  text-decoration: underline;
}

.feed-card__desc {
  font-size: 0.95rem;
  color: #5c5c66;
  line-height: 1.55;
  margin: 0 0 1rem;
}

.feed-card__topic {
  display: inline-block;
  background: #f4eff5;
  color: #72246c;
  border-radius: 14px;
  padding: 4px 12px;
  font-size: 0.8125rem;
  font-weight: 500;
  margin-bottom: 1.15rem;
}

.feed-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.85rem;
  border-top: 1px solid #f0f1f4;
}

.feed-card__meta {
  font-size: 0.85rem;
  color: #6b7280;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.feed-card__meta svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.feed-card__actions {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.feed-card__act-btn {
  background: none;
  border: 0;
  padding: 6px;
  border-radius: 4px;
  cursor: pointer;
  color: #5c5c66;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}

.feed-card__act-btn:hover {
  background: #f0f1f4;
  color: #72246c;
}

.feed-card__act-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* --- See more Button --- */
.feed-more-wrap {
  text-align: center;
  margin: 2.5rem 0 1.5rem;
}

.feed-more-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  color: #72246c;
  border: 2px solid #72246c;
  border-radius: 4px;
  padding: 0.85rem 3.5rem;
  font-size: 1.0625rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
  min-width: 220px;
}

.feed-more-btn:hover {
  background: #72246c;
  color: #ffffff;
}

.feed-more-btn:disabled {
  border-color: #bbbcbc;
  color: #888888;
  cursor: default;
  background: #f5f5f5;
}

.feed-more-msg {
  display: none;
  margin-top: 1rem;
  padding: 0.85rem 1.25rem;
  background: #f4eff5;
  border: 1px solid #dfd2e1;
  border-radius: 4px;
  color: #72246c;
  font-size: 0.95rem;
  font-weight: 500;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.feed-more-msg.is-shown {
  display: block;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- Right Column --- */
.feed-col-right {
  width: 280px;
  flex-shrink: 0;
}

.feed-across-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: #282937;
  margin: 0 0 1.25rem;
  line-height: 1.3;
}

.feed-across-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.feed-across-item {
  margin-bottom: 1.15rem;
}

.feed-across-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #72246c;
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  line-height: 1.4;
  transition: color 0.15s;
}

.feed-across-link:hover {
  text-decoration: underline;
  color: #9a205f;
}

.feed-across-link svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
  flex-shrink: 0;
}

/* --- Responsive Adjustments --- */
@media only screen and (max-width: 1080px) {
  .feed-col-left {
    display: none;
  }
}

@media only screen and (max-width: 860px) {
  .feed-container {
    flex-direction: column;
  }
  .feed-col-right {
    width: 100%;
    margin-top: 2rem;
  }
  .feed-col-center {
    max-width: 100%;
  }
}
