/**
 * [EASYBLOG]
 *
 * @author    Achegatec S.L. (Rekire.com) <info@rekire.com>
 * @copyright 2006-2026 Achegatec S.L. - CIF B27340801
 * @license   https://opensource.org/licenses/AFL-3.0 Academic Free License version 3.0
 */
.blogpost-img-content {
    position: relative;
    margin-bottom: 30px;
}

.post-rating-summary-container {
    position: absolute;
    bottom: 0;
    right: 10px;
    display: flex;
    justify-content: center;
    pointer-events: none;
    z-index: 10;
}

.post-rating-summary {
    position: relative !important;
    bottom: auto !important;
    left: auto !important;
    width: fit-content;
    margin-top: 15px;
    padding: 5px 10px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #ffc107;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    pointer-events: auto;
}


.post-rating-summary .rating-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 5px;
    flex-wrap: wrap;
}

.post-rating-summary .rating-title {
    font-weight: 600;
    color: #333;
    font-size: 12px;
}

.rating-stars-large {
    display: flex;
    gap: 2px;
}

.rating-stars-large .star {
    font-size: 15px;
    color: #000;
    line-height: 1;
}

.rating-stars-large .star.filled {
    color: #ffc107;
    font-weight: 700;
}

.rating-average-large {
    font-size: 14px;
    font-weight: 700;
    color: #ff6b00;
    background: white;
    padding: 2px 8px;
    border-radius: 4px;
    border: 1px solid #eee;
}

.post-rating-summary .rating-details {
    width: 100%;
    position: absolute;
    right: 0;
    top: -15px;
    font-size: 14px;
    color: #666;
}

.rating-badge-overlay {
    position: absolute;
    bottom: 5px;
    right: 5px;
    z-index: 10;
}

.rating-badge-overlay .rating-badge {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 6px 12px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #333;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.rating-badge-overlay .rating-stars {
    display: flex;
    gap: 1px;
}

.rating-badge-overlay .rating-stars .star {
    font-size: 14px;
    line-height: 1;
}

.rating-badge-overlay .rating-stars .star.filled {
    color: #ffc107;
    font-weight: 700;
}

.rating-badge-overlay .rating-stars .star.empty {
    color: #858585;
}

.rating-badge-overlay .rating-average {
    font-weight: 700;
    color: #ff6b00;
    min-width: 24px;
    text-align: center;
}

.post-rating-summary .rating-count,
.rating-badge-overlay .rating-count {
    position: absolute;
    right: 0;
    top: -15px;
    color: #666;
    font-size: 10px;
    font-weight: 500;
    background: #e9ecef;
    padding: 2px 8px;
    border-radius: 12px;
}

.form_comment_post .rating-section {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin: 15px 0;
    padding: 10px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.form_comment_post .rating-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.form_comment_post .star-rating {
    display: flex;
    font-size: 0;
    position: relative;
    unicode-bidi: bidi-override;
    direction: rtl;
}

.form_comment_post .star-rating input {
    display: none;
}

.form_comment_post .star-rating label {
    display: inline-block;
    font-size: 30px;
    color: #ddd;
    cursor: pointer;
    padding: 0 2px;
    transition: color 0.2s;
}

.form_comment_post .star-rating label:hover,
.form_comment_post .star-rating label:hover ~ label,
.form_comment_post .star-rating input:checked ~ label {
    color: #ffc107;
}

.form_comment_post .rating-text {
    display: inline-block;
    margin-left: 15px;
    color: #666;
    font-style: italic;
    vertical-align: super;
}

.form_comment_post .logged-user {
    display: inline-block;
    background: #f0f0f0;
    padding: 8px 12px;
    border-radius: 4px;
    margin-bottom: 15px;
    color: #333;
}

/* Para respuestas, ocultar la sección de rating */
.form_comment_post[data-is-response="true"] .rating-section {
    display: none;
}

.post-rating-inline {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 8px 0;
    font-size: 13px;
}

.inline-stars {
    display: flex;
    gap: 1px;
}

.inline-stars .star {
    font-size: 14px;
    color: #ddd;
}

.inline-stars .star.filled {
    color: #ffc107;
}

.form_comment_post .rating-text {
    color: #666;
    font-weight: 500;
}

/* Asegurar que la imagen tenga posición relativa */
.post-image-container {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.post-image {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.post-link:hover .post-image {
    transform: scale(1.05);
}

.carousel-image-container {
    position: relative;
    margin-bottom: 10px;
}

.carousel-rating-badge {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.badge-stars {
    color: #ffc107;
}

.badge-average {
    font-weight: bold;
}

.author-post-rating-badge {
    position: absolute;
    bottom: 5px;
    right: 5px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 10px;
    display: flex;
    align-items: center;
    gap: 3px;
    line-height: 1;
}

.author-post-rating-badge .badge-stars {
    color: #ffc107;
}

.author-post-rating-badge .badge-average {
    font-weight: bold;
    font-size: 11px;
}

.author-post-rating-inline {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    margin-left: 8px;
}

.author-post-rating-inline .inline-stars {
    display: flex;
    gap: 0;
}

.author-post-rating-inline .star {
    font-size: 11px;
    color: #ddd;
    line-height: 1;
}

.author-post-rating-inline .star.filled {
    color: #ffc107;
}

.author-post-rating-inline .rating-value {
    font-size: 11px;
    font-weight: 600;
    color: #ff6b00;
}

/* Asegurar que la imagen tenga posición relativa */
.post_list_horizontal .img_post {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 4px;
}

.post_list_horizontal .img_post img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.post_list_horizontal .img_post:hover img {
    transform: scale(1.05);
}

/* Ajustes para el layout */
.post_list_horizontal li {
    display: flex;
    gap: 12px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.post_list_horizontal li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.post_list_horizontal .img_post {
    width: 126px;
    min-width: 126px;
    height: 71px;
    flex-shrink: 0;
}

.post_list_horizontal .content_post {
    flex: 1;
}

.post_list_sidebar .post-meta,
.post_list_horizontal .post-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 5px;
    font-size: 12px;
    color: #666;
}

/* Estilos para mostrar estrellas en comentarios */
.comment-rating-display {
    margin: 5px 0;
}

.comment-rating-display .star {
    font-size: 16px;
    color: #ddd;
    display: inline-block;
}

.comment-rating-display .star.filled {
    color: #ffc107;
}

.comment-rating-display .rating-value {
    font-size: 12px;
    color: #666;
    margin-left: 8px;
    vertical-align: text-bottom;
}
