.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 18px 0 44px;
}

.card {
  background: var(--panel);
  border: 1px solid rgba(244,178,74,0.11);
  border-radius: var(--radius-card);
  overflow: hidden;
  min-height: 380px;
  box-shadow: var(--shadow);
  transition: 0.22s ease;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

#profileFeedSection .card {
  cursor: pointer;
  will-change: transform;
  border-radius: 24px;
}

.card:hover {
  transform: translateY(-4px) scale(1.006);
  box-shadow: 0 18px 44px rgba(0,0,0,0.38);
}

.card.full {
  opacity: 0.62;
  filter: grayscale(0.45);
}

.card-img {
  height: 158px;
  background-size: cover;
  background-position: center;
  border-radius: 24px 24px 0 0;
}

.card-body {
  padding: 22px;
}

.card h3 {
  font-size: 21px;
  margin: 0 0 14px;
  letter-spacing: -0.35px;
  line-height: 1.25;
  font-weight: 800;
  color: var(--text);
}

.card p {
  font-size: 15.5px;
  line-height: 1.62;
  color: var(--muted);
  white-space: pre-line;
  margin: 0;
  font-weight: 500;
}


.trip-title {
  margin: 0 0 12px;
  color: #ffffff;
  font-size: 21px;
  line-height: 1.18;
  letter-spacing: -0.45px;
  font-weight: 800;
}

.trip-title .trip-name {
  color: var(--gold);
}

.trip-title .trip-destination {
  color: #ffffff;
}

.trip-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 12px 0 14px;
}

.trip-fact {
  min-height: 54px;
  padding: 10px 11px;
  border-radius: 16px;
  background: rgba(255,255,255,0.055);
  border: 1px solid rgba(244,178,74,0.09);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}

.trip-fact-label {
  margin-bottom: 3px;
  color: rgba(255,248,234,0.45);
  font-size: 11px;
  line-height: 1.1;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.2px;
}

.trip-fact-value {
  color: rgba(255,248,234,0.88);
  font-size: 13px;
  line-height: 1.25;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.trip-description {
  margin-top: 2px !important;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0;
}

.tag {
  background: rgba(255,255,255,0.065);
  color: rgba(255,248,234,0.74);
  border: 1px solid rgba(244,178,74,0.10);
  padding: 7px 10px;
  border-radius: var(--radius-ui);
  font-weight: 700;
  font-size: 12.5px;
}

.tag.full {
  background: rgba(229,185,87,0.13);
  border-color: rgba(229,185,87,0.12);
  color: #ffe7a3;
}

.tag.fishing-type,
.tag.fishing-type.type-spinning,
.tag.fishing-type.type-feeder,
.tag.fishing-type.type-float,
.tag.fishing-type.type-carp,
.tag.fishing-type.type-winter {
  background: rgba(244,178,74,0.14);
  border-color: rgba(244,178,74,0.14);
  color: #ffe7a3;
}

#profileFeedSection.social-feed-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.profile-feed-card {
  min-height: 520px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.070), rgba(255,255,255,0.034)),
    rgba(13, 20, 17, 0.86);
  border-color: rgba(244,178,74,0.15);
}

.profile-feed-media {
  display: block;
}

.profile-feed-mobile-image-img {
  display: none !important;
}

.profile-feed-image {
  height: 300px;
}

.profile-feed-body {
  padding: 18px;
}

.profile-feed-author {
  appearance: none;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0;
  margin: 0 0 14px;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.profile-feed-avatar-img,
.profile-feed-avatar-fallback {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: inline-flex;
  flex: 0 0 auto;
  background-size: cover;
  background-position: center;
  border: 1px solid rgba(244,178,74,0.24);
  box-shadow: 0 10px 24px rgba(0,0,0,0.25);
}

.profile-feed-avatar-fallback {
  align-items: center;
  justify-content: center;
  background: rgba(244,178,74,0.14);
  color: #fff8ea;
  font-weight: 900;
}

.profile-feed-author-text {
  min-width: 0;
  display: block;
}

.profile-feed-author-name {
  display: block;
  font-size: 16px;
  font-weight: 900;
  line-height: 1.2;
  color: #fff8ea;
}

.profile-feed-author-action {
  display: block;
  margin-top: 3px;
  font-size: 12.5px;
  font-weight: 700;
  color: rgba(255,248,234,0.56);
}

.profile-feed-title {
  font-size: 20px;
}

.profile-feed-description {
  color: rgba(255,248,234,0.66);
}

.profile-feed-tags {
  margin-bottom: 12px;
}

.profile-feed-actions {
  margin-top: 2px;
}

@media (min-width: 768px) {
  #homeSection #profileFeedSection.social-feed-grid,
  #feedSection #profileFeedSection.social-feed-grid{
    align-items: start;
  }

  #homeSection #profileFeedSection .profile-feed-card,
  #feedSection #profileFeedSection .profile-feed-card{
    min-height: 0;
  }

  #homeSection #profileFeedSection .profile-feed-image,
  #feedSection #profileFeedSection .profile-feed-image{
    height: 420px;
    background-position: center center;
  }

  #homeSection #profileFeedSection .profile-feed-body,
  #feedSection #profileFeedSection .profile-feed-body{
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "author tags"
      "actions actions";
    align-items: center;
    column-gap: 16px;
    row-gap: 12px;
    padding: 14px 18px 16px;
  }

  #homeSection #profileFeedSection .profile-feed-author,
  #feedSection #profileFeedSection .profile-feed-author{
    grid-area: author;
    min-width: 0;
    margin: 0;
  }

  #homeSection #profileFeedSection .profile-feed-avatar-img,
  #feedSection #profileFeedSection .profile-feed-avatar-img,
  #homeSection #profileFeedSection .profile-feed-avatar-fallback,
  #feedSection #profileFeedSection .profile-feed-avatar-fallback{
    width: 40px;
    height: 40px;
  }

  #homeSection #profileFeedSection .profile-feed-author-name,
  #feedSection #profileFeedSection .profile-feed-author-name{
    font-size: 15.5px;
    line-height: 1.12;
  }

  #homeSection #profileFeedSection .profile-feed-author-action,
  #feedSection #profileFeedSection .profile-feed-author-action{
    margin-top: 2px;
    font-size: 12px;
    line-height: 1.15;
  }

  #homeSection #profileFeedSection .profile-feed-title,
  #feedSection #profileFeedSection .profile-feed-title{
    display: none !important;
  }

  #homeSection #profileFeedSection .profile-feed-description,
  #feedSection #profileFeedSection .profile-feed-description{
    display: none !important;
  }

  #homeSection #profileFeedSection .profile-feed-tags,
  #feedSection #profileFeedSection .profile-feed-tags{
    grid-area: tags;
    justify-content: flex-end;
    align-items: center;
    flex-wrap: nowrap;
    gap: 8px;
    margin: 0;
    white-space: nowrap;
  }

  #homeSection #profileFeedSection .profile-feed-tags .tag,
  #feedSection #profileFeedSection .profile-feed-tags .tag{
    padding: 7px 10px;
    font-size: 12px;
    line-height: 1;
  }

  #homeSection #profileFeedSection .profile-feed-actions,
  #feedSection #profileFeedSection .profile-feed-actions{
    grid-area: actions;
    margin-top: 0;
  }
}

.home-empty-card {
  grid-column: 1 / -1;
  min-height: 260px;
  padding: 26px;
  border-radius: var(--radius-card);
  background:
    radial-gradient(circle at 0% 0%, rgba(244,178,74,0.14), transparent 36%),
    rgba(13, 20, 17, 0.84);
  border: 1px solid rgba(244,178,74,0.13);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.home-empty-icon {
  width: 54px;
  height: 54px;
  margin-bottom: 14px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(244,178,74,0.12);
  border: 1px solid rgba(244,178,74,0.15);
  font-size: 27px;
}

.home-empty-card h3 {
  margin: 0 0 8px;
  color: #fff8ea;
  font-size: 26px;
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: -0.45px;
}

.home-empty-card p {
  max-width: 520px;
  margin: 0 0 18px;
  color: rgba(255,248,234,0.66);
  font-size: 15px;
  line-height: 1.55;
  font-weight: 600;
}
