/* Estilos para la tarjeta de publicación */
.post-card {
    background-color: var(--card-bg);
    border-radius: var(--radius-lg);
    box-shadow: 0 1px 2px var(--shadow-color);
    margin-bottom: var(--space-lg);
    overflow: hidden;
}

.post-header {
    padding: var(--space-md);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.post-user {
    display: flex;
    align-items: center;
}

.post-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 10px;
}

.post-user-info {
    display: flex;
    flex-direction: column;
}

.post-username {
    font-weight: bold;
    color: var(--text-primary);
    text-decoration: none;
}

.post-time {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.post-options {
    position: relative;
}

.post-content {
    padding: 0 var(--space-md);
    margin-bottom: var(--space-md);
}

.post-content p {
    margin-bottom: var(--space-md);
    line-height: 1.5;
    color: var(--text-primary);
}

.post-image {
    margin: 0 -1px;
    margin-bottom: var(--space-sm);
}

.post-image img {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
}

.post-video {
    margin: 0 -1px;
    margin-bottom: var(--space-sm);
    position: relative;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    overflow: hidden;
}

.post-video video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background-color: #000;
}

/* Estilos para la barra de acciones */
.post-actions-bar {
    display: flex;
    padding: var(--space-sm) var(--space-md);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.post-action-btn {
    background: none;
    border: none;
    padding: 8px 12px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    cursor: pointer;
    border-radius: 4px;
    display: flex;
    align-items: center;
    margin-right: 5px;
    transition: background-color 0.2s;
    flex: 1;
    justify-content: center;
}

.post-action-btn i {
    margin-right: 5px;
}

.post-action-btn:hover {
    background-color: var(--hover-bg);
}

.post-action-btn.liked {
    color: var(--primary-color);
}

/* Resumen de reacciones */
.reactions-summary {
    padding: var(--space-xs) var(--space-md);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.reactions-display {
    display: flex;
    align-items: center;
}

.reaction-icons {
    display: flex;
    margin-right: 5px;
}

.reaction-icon {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: -5px;
    box-shadow: 0 0 0 2px white;
    font-size: 0.7rem;
}

.reaction-icon:first-child {
    margin-left: 0;
}

.like-icon {
    background-color: #2078f4;
    color: white;
}

.love-icon {
    background-color: #f33e58;
    color: white;
}

.reactions-count {
    font-size: 0.9em;
    color: var(--text-secondary);
}

/* Sección de comentarios */
.post-comments-section {
    padding: var(--space-sm) var(--space-md);
    border-top: 1px solid var(--border-color);
}
