/*
Theme Name: Feed Social
Description: Tema hijo de Twenty Twenty-Five para un sitio con navegación tipo feed social.
Author: Gabriel
Template: twentytwentyfive
Version: 1.0.0
Text Domain: feed-social
*/

/* Encabezado principal */
.feed-social-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border: 0;
  box-shadow: none;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
}

.feed-social-header__inner {
  min-height: 60px;
}

.feed-social-page {
  width: 100%;
  max-width: none !important;
  box-sizing: border-box;
  padding: 40px 20px 64px;
}

.feed-social-page > .wp-block-post-content {
  width: min(100%, 1200px);
  max-width: 1200px !important;
  margin-right: auto !important;
  margin-left: auto !important;
}

.feed-social-page > .wp-block-post-content > .alignwide {
  max-width: 1200px !important;
}

.feed-social-page > .wp-block-post-content > .alignfull {
  width: 100%;
  max-width: none !important;
}

.feed-social-page .wp-block-separator,
.feed-social-page hr {
  display: none !important;
  border: 0 !important;
}

nav[aria-label="Navegación de entradas"],
nav[aria-label="Post navigation"] {
  border-top: 0 !important;
  border-bottom: 0 !important;
}

/* Feed */
.feed-social-main {
  padding: 32px 16px 64px;
}

body {
  background: #ffffff;
}

/* Perfil de la portada */
.feed-social-profile {
  width: min(100%, 960px);
  max-width: 960px !important;
  margin-bottom: 40px;
  margin-right: auto;
  margin-left: auto;
  padding: 24px 0 32px;
  border-bottom: 0;
}

.feed-social-profile__layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 56px;
  align-items: center;
}

.feed-social-profile__photo {
  display: flex;
  align-items: center;
  justify-content: center;
}

.feed-social-profile__photo figure,
.feed-social-profile__photo .wp-block-site-logo,
.feed-social-profile__photo .custom-logo-link {
  overflow: hidden;
  border-radius: 50% !important;
}

.feed-social-profile__photo .custom-logo-link {
  display: block;
  padding: 5px;
  border-radius: 50%;
  background: linear-gradient(135deg, #feda75, #fa7e1e, #d62976, #962fbf, #4f5bd5);
}

.feed-social-profile__photo .custom-logo {
  display: block;
  width: 180px !important;
  height: 180px !important;
  border: 4px solid #fff;
  border-radius: 50% !important;
  object-fit: cover;
}

.feed-social-profile-avatar {
  display: block;
  width: 180px !important;
  height: 180px !important;
  box-sizing: border-box;
  border: 5px solid #ffffff;
  border-radius: 50% !important;
  outline: 2px solid #dbdbdb;
  object-fit: cover;
}

.feed-social-profile__info {
  min-width: 0;
}

.feed-social-profile__name {
  margin: 0;
}

.feed-social-stats {
  display: flex;
  flex-wrap: wrap;
  column-gap: 42px;
  row-gap: 12px;
  margin: 18px 0;
}

.feed-social-stats span {
  white-space: nowrap;
}

.feed-social-profile__description {
  margin-bottom: 12px;
}

.feed-social-profile__social {
  margin-top: 14px;
}


.feed-social-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.feed-social-query {
  width: min(100%, 640px);
  margin-right: auto;
  margin-left: auto;
}

.feed-social-card {
  overflow: hidden;
  border: 1px solid #dbdbdb;
  border-radius: 10px;
  background: #ffffff;
}

.feed-social-card__header,
.feed-social-card__content {
  padding: 14px 16px;
}

.feed-social-card .wp-block-post-featured-image {
  margin: 0;
  background: #efefef;
}

.feed-social-card .wp-block-post-featured-image img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.feed-social-card .wp-block-post-author__avatar img {
  border-radius: 50% !important;
  object-fit: cover;
}

/* Pie con las páginas publicadas */
.feed-social-footer {
  padding: 28px 16px 40px;
  color: #737373;
  background: #ffffff;
}

.feed-social-footer .wp-block-page-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.feed-social-footer .wp-block-pages-list__item {
  margin: 0;
}

.feed-social-footer a {
  color: #737373;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
}

.feed-social-footer a:hover,
.feed-social-footer a:focus {
  color: #262626;
  text-decoration: underline;
}

.feed-social-footer__credit {
  margin-top: 18px;
  color: #737373;
  font-size: 0.75rem;
  text-align: center;
}

.feed-social-card .wp-block-post-title,
.feed-social-card .wp-block-post-excerpt,
.feed-social-card .wp-block-post-date {
  margin-top: 0;
}

.feed-social-card__details {
  margin: 16px 0;
}

.feed-social-card__details summary {
  width: fit-content;
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}

.feed-social-card__details summary::-webkit-details-marker {
  display: none;
}

.feed-social-card__details summary::after {
  content: " +";
  color: #737373;
}

.feed-social-card__details[open] summary::after {
  content: " −";
}

.feed-social-card__details[open] summary {
  margin-bottom: 16px;
}

.feed-social-card__content:has(.feed-social-card__details[open]) .wp-block-post-excerpt {
  display: none;
}

.feed-social-card__details .wp-block-post-content {
  padding-top: 16px;
  border-top: 1px solid #efefef;
}

.feed-social-card__details .wp-block-post-content > :first-child {
  margin-top: 0;
}

.feed-social-card__details .wp-block-post-content > :last-child {
  margin-bottom: 0;
}

/* Menú para compartir */
.feed-social-share-actions {
  display: flex;
  align-items: center;
  gap: 2px;
  width: fit-content;
  margin: 12px 0;
}

.feed-social-share {
  position: relative;
  width: fit-content;
  margin: 0;
}

.feed-social-share__toggle,
.feed-social-share__native {
  display: grid;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  place-items: center;
  background: transparent;
  color: #262626;
  cursor: pointer;
  list-style: none;
}

.feed-social-share__toggle::-webkit-details-marker {
  display: none;
}

.feed-social-share__toggle:hover,
.feed-social-share__toggle:focus-visible,
.feed-social-share__native:hover,
.feed-social-share__native:focus-visible {
  background: #f2f2f2;
}

.feed-social-share__menu {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 0;
  z-index: 20;
  width: max-content;
  min-width: 190px;
  overflow: hidden;
  border: 1px solid #dbdbdb;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.feed-social-share__menu a,
.feed-social-share__menu button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  box-sizing: border-box;
  padding: 11px 14px;
  border: 0;
  background: #ffffff;
  color: #262626;
  font: inherit;
  font-size: 0.9rem;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.feed-social-share__whatsapp svg {
  color: #25d366;
}

.feed-social-share__menu a:hover,
.feed-social-share__menu button:hover,
.feed-social-share__menu a:focus-visible,
.feed-social-share__menu button:focus-visible {
  background: #f5f5f5;
}

@media (max-width: 680px) {
  .feed-social-main {
    padding-top: 16px;
    padding-right: 0;
    padding-left: 0;
  }

  .feed-social-profile {
    padding-right: 16px;
    padding-left: 16px;
  }

  .feed-social-profile__layout {
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
  }

  .feed-social-profile__photo .custom-logo {
    width: 76px !important;
    height: 76px !important;
    border-width: 3px;
  }

  .feed-social-profile-avatar {
    width: 76px !important;
    height: 76px !important;
    border-width: 3px;
  }

  .feed-social-profile__name {
    font-size: 1.45rem !important;
  }

  .feed-social-profile__info {
    display: contents;
  }

  .feed-social-profile__summary {
    grid-column: 2;
  }

  .feed-social-profile__description,
  .feed-social-profile__social {
    grid-column: 1 / -1;
    width: 100%;
    box-sizing: border-box;
  }


  .feed-social-stats {
    justify-content: flex-start;
    column-gap: 16px;
    row-gap: 10px;
    width: 100%;
    margin: 10px 0 4px;
    font-size: 0.85rem;
  }

  .feed-social-profile__description {
    max-width: none;
    margin: 14px 0 12px;
  }

  .feed-social-profile__social {
    justify-content: center;
    margin-right: auto;
    margin-left: auto;
  }

  .feed-social-card {
    border: 0;
    border-radius: 0;
  }

  .feed-social-card__details .wp-block-post-content {
    border-top: 0;
  }
}
