/**
 * Estilos para Posts Individuales (Single Post)
 */

/* ========== Container Principal ========== */
.single-post-container {
  padding-top: 0;
  padding-bottom: 3rem;
}

/* Evitar que el header tape el breadcrumb */
body.single-post main.single-post-container {
  margin-top: 50px !important;
}

/* Cuando estás logueado, el admin bar suma altura */
body.admin-bar.single-post main.single-post-container {
  margin-top: calc(40px + var(--wp-admin--admin-bar--height, 32px)) !important;
}



.breadcrumb-wrapper .wp-block-post-terms {
  font-size: 0.875rem;
  color: #6c757d;
  text-align: left !important;
  justify-content: flex-start !important;
}

.breadcrumb-wrapper .wp-block-post-terms a {
  color: #0d6efd;
  text-decoration: none;
  transition: color 0.3s ease;
}

.breadcrumb-wrapper .wp-block-post-terms a:hover {
  color: #0a58ca;
  text-decoration: underline;
}

/* Barra breadcrumb (fondo plomo full width) */
main.single-post-container .breadcrumb-wrapper.alignfull {
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  justify-content: flex-start !important;
  text-align: left !important;
}

/* Eliminar padding extra del container dentro del main */
main.single-post-container > .container:first-of-type {
  padding-top: 2rem;
}

/* Container dentro del breadcrumb alineado a la izquierda */
main.single-post-container .breadcrumb-wrapper.alignfull .container {
  text-align: left !important;
}


@media (min-width: 576px) {
  main.single-post-container .breadcrumb-wrapper.alignfull .container {
    padding-left: calc((100% - 540px) / 2 + 12px);
  }
}

@media (min-width: 768px) {
  main.single-post-container .breadcrumb-wrapper.alignfull .container {
    padding-left: calc((100% - 720px) / 2 + 12px);
  }
}

@media (min-width: 992px) {
  main.single-post-container .breadcrumb-wrapper.alignfull .container {
    padding-left: calc((100% - 960px) / 2 + 12px);
  }
}

@media (min-width: 1200px) {
  main.single-post-container .breadcrumb-wrapper.alignfull .container {
    padding-left: calc((100% - 1140px) / 2 + 12px);
  }
}

@media (min-width: 1400px) {
  main.single-post-container .breadcrumb-wrapper.alignfull .container {
    padding-left: calc((100% - 1320px) / 2 + 12px);
  }
}

/* ========== Título del Post ========== */
.post-title-single {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: #212529;
}

/* Categoría bajo el título (pill/botón) */
.post-category-badges {
  margin: 0.25rem 0 1.25rem;
}

.post-category-badges .wp-block-post-terms {
  margin: 0;
}

.post-category-badges .wp-block-post-terms a {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
  border: 0;
  box-shadow: inset 0 0 0 2px #0d6efd;
  color: #0d6efd;
  text-decoration: none;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.1;
  background: transparent;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.post-category-badges .wp-block-post-terms a:hover {
  background-color: #0d6efd;
  color: #fff;
  border-color: #0d6efd;
}

@media (max-width: 768px) {
  .post-title-single {
    font-size: 2rem;
  }
}

/* ========== Meta Información ========== */
.post-meta-info {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e9ecef;
  flex-wrap: wrap;
}

.post-meta-info .wp-block-post-date {
  font-size: 0.875rem;
  color: #6c757d;
  margin: 0;
}

.post-meta-info .reading-time {
  font-size: 0.875rem;
  color: #6c757d;
  margin: 0;
}

.post-meta-info .share-buttons {
  margin-left: auto;
  gap: 0.5rem;
}

.post-meta-info .share-buttons a {
  transition: transform 0.3s ease;
}

.post-meta-info .share-buttons a:hover {
  transform: translateY(-3px);
}

@media (max-width: 768px) {
  .post-meta-info {
    gap: 1rem;
  }
  
  .post-meta-info .share-buttons {
    margin-left: 0;
    width: 100%;
  }
}

/* ========== Imagen Destacada ========== */
.post-featured-image-single {
  margin-bottom: 2rem;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.post-featured-image-single img {
  width: 100%;
  height: auto;
  display: block;
}

/* ========== Contenido del Post ========== */
.post-content-single {
  font-size: 1.125rem;
  line-height: 1.8;
  color: #495057;
}

.post-content-single p {
  margin-bottom: 1.5rem;
}

.post-content-single h2,
.post-content-single h3,
.post-content-single h4 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-weight: 700;
  color: #212529;
}

.post-content-single h2 {
  font-size: 2rem;
  border-bottom: 2px solid #0d6efd;
  padding-bottom: 0.5rem;
}

.post-content-single h3 {
  font-size: 1.5rem;
}

.post-content-single ul,
.post-content-single ol {
  margin-bottom: 1.5rem;
  padding-left: 2rem;
}

.post-content-single li {
  margin-bottom: 0.5rem;
}

.post-content-single img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 1.5rem 0;
}

.post-content-single blockquote {
  border-left: 4px solid #0d6efd;
  padding-left: 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  color: #6c757d;
}

.post-content-single code {
  background-color: #f8f9fa;
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  font-size: 0.95em;
  color: #d63384;
}

.post-content-single pre {
  background-color: #f8f9fa;
  padding: 1rem;
  border-radius: 8px;
  overflow-x: auto;
}

/* ========== Taxonomías (Categorías y Tags) ========== */
.post-taxonomy-section {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 2px solid #e9ecef;
}

.post-taxonomy-section .wp-block-post-terms {
  margin-bottom: 0.5rem;
}

.post-taxonomy-section .wp-block-post-terms a {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
  background-color: #e9ecef;
  color: #495057;
  text-decoration: none;
  border-radius: 20px;
  font-size: 0.875rem;
  transition: all 0.3s ease;
}

.post-taxonomy-section .wp-block-post-terms a:hover {
  background-color: #0d6efd;
  color: white;
}

/* ========== Sidebar Widgets ========== */
.sidebar-widget {
  background: #f8f9fa;
  padding: 1.5rem;
  border-radius: 12px;
  margin-bottom: 2rem;
}

.sidebar-widget h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #212529;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid #0d6efd;
}

/* ========== Latest Posts Widget ========== */
.latest-posts-widget .wp-block-latest-posts {
  list-style: none;
  padding: 0;
}

.latest-posts-widget .wp-block-latest-posts li {
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #dee2e6;
}

.latest-posts-widget .wp-block-latest-posts li:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.latest-posts-widget .wp-block-latest-posts a {
  color: #212529;
  text-decoration: none;
  font-weight: 500;
  line-height: 1.4;
  transition: color 0.3s ease;
}

.latest-posts-widget .wp-block-latest-posts a:hover {
  color: #0d6efd;
}

.latest-posts-widget .wp-block-latest-posts__post-date {
  display: block;
  font-size: 0.75rem;
  color: #6c757d;
  margin-top: 0.25rem;
}

/* ========== Campaign Image Widget ========== */
.sidebar-widget.campaign-image-widget {
  padding: 0;
  background: transparent;
}

/* ========== Responsive ========== */
@media (max-width: 991px) {
  .single-post-container .col-lg-8,
  .single-post-container .col-lg-4 {
    width: 100%;
    max-width: 100%;
  }
  
  .sidebar-widget {
    margin-top: 2rem;
  }
}

@media (max-width: 576px) {
  .single-post-container {
    margin-top: 80px !important;
  }
  
  .post-content-single {
    font-size: 1rem;
  }
  
  .post-content-single h2 {
    font-size: 1.5rem;
  }
  
  .post-content-single h3 {
    font-size: 1.25rem;
  }

  /* Breadcrumb sin container, con padding manual */
main.single-post-container .breadcrumb-wrapper.alignfull {
  padding-left: 12px;
  padding-right: 12px;
}

@media (min-width: 992px) {
  main.single-post-container .breadcrumb-wrapper.alignfull {
    padding-left: calc((100% - 960px) / 2);
  }
}

@media (min-width: 1200px) {
  main.single-post-container .breadcrumb-wrapper.alignfull {
    padding-left: calc((100% - 1140px) / 2);
  }
}

@media (min-width: 1400px) {
  main.single-post-container .breadcrumb-wrapper.alignfull {
    padding-left: calc((100% - 1320px) / 2);
  }
}

  
}
