/* CSS específico para páginas de posts/blog */
/* No modifica componentes existentes, solo añade estilos faltantes */

/* Padding superior para el área de contenido del post (no sidebar) */
.wd-content-area.site-content {
  padding-top: 40px;
}

/* Header del post */
.wd-single-post-header {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 30px;
  align-items: center;
  text-align: center;
}

.wd-single-post-header.wd-align {
  align-items: center;
}

/* Categoría badge */
.wd-post-cat {
  margin-bottom: 10px;
}

.wd-post-cat.wd-style-with-bg a {
  display: inline-block;
  padding: 6px 15px;
  background-color: #f5f5f5;
  color: #333;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: background-color 0.3s ease;
}

.wd-post-cat.wd-style-with-bg a:hover {
  background-color: #e0e0e0;
}

/* Título del post */
.wd-single-post-header h1.wd-entities-title.title {
  margin: 0;
  font-size: 32px;
  line-height: 1.3;
  font-weight: 700;
}

/* Metadata del post */
.wd-post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 14px;
  color: #666;
  justify-content: center;
}

.wd-post-meta div {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

/* Imagen destacada */
.wd-single-post-img {
  margin-bottom: 30px;
  overflow: hidden;
  border-radius: 8px;
}

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

/* Contenido del post - solo afecta al article, no al footer */
article .wd-entry-content {
  font-size: 16px;
  line-height: 1.8;
  color: #333;
}

article .wd-entry-content p {
  margin-bottom: 20px;
}

article .wd-entry-content h2,
article .wd-entry-content h3,
article .wd-entry-content h4 {
  margin-top: 30px;
  margin-bottom: 15px;
  font-weight: 700;
  line-height: 1.3;
}

article .wd-entry-content h2 {
  font-size: 28px;
}

article .wd-entry-content h3 {
  font-size: 24px;
}

article .wd-entry-content h4 {
  font-size: 20px;
}

article .wd-entry-content ul,
article .wd-entry-content ol {
  margin: 20px 0;
  padding-left: 30px;
}

article .wd-entry-content li {
  margin-bottom: 10px;
  line-height: 1.6;
}

article .wd-entry-content a {
  color: #007bff;
  text-decoration: underline;
}

article .wd-entry-content a:hover {
  color: #0056b3;
}

article .wd-entry-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 20px 0;
}

/* Footer del post */
.wd-single-footer {
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid #e0e0e0;
}

/* Social sharing */
.wd-social-icons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.wd-social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: #fff;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
}

.wd-social-icon .wd-icon {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Facebook icon */
.social-facebook {
  background-color: #3b5998;
}

.social-facebook:hover {
  background-color: #2d4373;
  transform: scale(1.1);
}

.social-facebook .wd-icon::before {
  content: 'f';
  font-family: Arial, sans-serif;
  font-weight: bold;
  font-size: 24px;
  color: white;
}

/* Pinterest icon */
.social-pinterest {
  background-color: #bd081c;
}

.social-pinterest:hover {
  background-color: #8c0615;
  transform: scale(1.1);
}

.social-pinterest .wd-icon::before {
  content: 'P';
  font-family: Arial, sans-serif;
  font-weight: bold;
  font-size: 24px;
  color: white;
}

/* OK.ru icon */
.social-ok {
  background-color: #ee8208;
}

.social-ok:hover {
  background-color: #c26a06;
  transform: scale(1.1);
}

.social-ok .wd-icon::before {
  content: 'OK';
  font-family: Arial, sans-serif;
  font-weight: bold;
  font-size: 11px;
  color: white;
}

.social-twitter {
  background-color: #1da1f2;
}

.social-twitter:hover {
  background-color: #0d8bd9;
  transform: scale(1.1);
}

.social-email {
  background-color: #666;
}

.social-email:hover {
  background-color: #444;
  transform: scale(1.1);
}

/* Gutenberg blocks */
.wp-block-heading {
  font-weight: 700;
  line-height: 1.3;
  margin-top: 30px;
  margin-bottom: 15px;
}

.wp-block-list {
  margin: 20px 0;
  padding-left: 30px;
}

.wp-block-list li {
  margin-bottom: 10px;
}

.wp-block-image {
  margin: 20px 0;
}

.wp-block-image img {
  border-radius: 8px;
}

.wp-block-image.size-full img {
  width: 100%;
  height: auto;
}

/* Sidebar en posts */
.wd-sidebar {
  padding-left: 30px;
}

@media (max-width: 1024px) {
  .wd-sidebar {
    padding-left: 0;
    margin-top: 40px;
  }
}

/* Post grid layout responsive */
@media (max-width: 768px) {
  .wd-single-post-header h1.wd-entities-title.title {
    font-size: 24px;
  }
  
  .wd-entry-content h2 {
    font-size: 22px;
  }
  
  .wd-entry-content h3 {
    font-size: 20px;
  }
  
  .wd-post-meta {
    gap: 15px;
  }
}
