/* Posts Masonry Grid Styles - Compartido entre social.php y evento-f.php */

.posts-masonry {
    margin-bottom: var(--spacing-10);
}

.post-item-masonry {
    width: calc(25% - 20px);
    margin-bottom: var(--spacing-5);
}

@media (max-width: 1200px) {
    .post-item-masonry {
        width: calc(33.333% - 20px);
    }
}

@media (max-width: 768px) {
    .post-item-masonry {
        width: calc(50% - 20px);
    }
}

@media (max-width: 576px) {
    .post-item-masonry {
        width: 100%;
    }
}

.post-card-masonry {
    background: var(--card-bg);
    border-radius: var(--radius-md);
    padding: var(--spacing-1) 0;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.post-card-masonry:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.post-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 10px;
    position: relative;
}

.post-author-link {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
}

.post-author-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    flex-shrink: 0;
}

.post-author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: white;
    font-weight: 700;
    font-size: 1.2rem;
}

.post-header-info {
    flex: 1;
}

.post-author-name {
    font-weight: 600;
    color: var(--text-dark);
    text-decoration: none;
    display: block;
    margin-bottom: -7px;
}

.post-author-name:hover {
    color: var(--primary);
}

.creator-badge {
    display: inline-block;
    margin-left: 5px;
    color: var(--primary);
    font-size: 0.9rem;
}

.post-time {
    font-size: 0.85rem;
    color: var(--text-gray);
}

.post-header-actions {
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    gap: 8px;
}

.post-action-btn {
    background: none;
    border: none;
    padding: 8px;
    border-radius: 50%;
    cursor: pointer;
    color: #6b7280;
    font-size: 14px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.post-action-btn:hover {
    background: #f3f4f6;
    color: #374151;
}

.delete-post-btn:hover {
    background: #fef2f2;
    color: #dc2626;
}

.report-post-btn:hover {
    background: #f59e0b20;
    color: #f59e0b;
}

.post-content {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-dark);
    margin: 20px;
    word-wrap: break-word;
}

.post-image {
    margin-top: 15px;
    overflow: hidden!important;
    max-height: 550px;
    display: flex;
    align-items: center;
}

.post-image img {
    width: auto;
    height: auto;
    max-width: 100%;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.post-image img:hover {
    transform: scale(1.02);
}

.post-actions {
    margin-top: 5px;
}

.post-actions-right {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 20px;
}

.action-icon {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 20px;
    transition: all 0.2s ease;
    font-size: 0.9rem;
    color: #999;
}

.action-icon:hover {
    background: rgba(0, 0, 0, 0.05);
}

.action-icon i {
    transition: all 0.2s ease;
}

.like-btn {
    color: #999;
}

.like-btn:hover {
    background: rgba(255, 0, 0, 0.1);
    color: #e74c3c;
}

.like-btn.liked {
    color: #e74c3c;
}

.like-btn.liked i {
    font-weight: 900;
}

.like-btn.liked:hover {
    background: rgba(231, 76, 60, 0.15);
}

@media (max-width: 480px) {
    .container {
        padding: 0;
    }
    .post-card-masonry {
        box-shadow: 0px 8px 10px 2px #d7d7d787;
        border: 0px;
        border-radius: 0px;
    }
}

@keyframes heartBeat {
    0%, 100% { transform: scale(1); }
    25% { transform: scale(1.3); }
    50% { transform: scale(1.1); }
}

.like-btn.animating {
    animation: heartBeat 0.3s ease;
}

.comments-btn {
    color: #999;
}

.comments-btn:hover {
    background: rgba(129, 215, 66, 0.1);
    color: var(--primary);
}

.comments-btn.active {
    color: var(--primary);
}

.action-count {
    font-size: 0.85rem;
    font-weight: 500;
}

.read-more-btn {
    background: none;
    border: none;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    padding: 8px 0;
    margin-top: 8px;
    transition: all 0.2s ease;
    display: inline-block;
}

.read-more-btn:hover {
    color: #6ab72a;
    text-decoration: underline;
}

.series-card {
    max-width: 100%;
    margin: var(--spacing-3) auto;
}

.empty-state {
    text-align: center;
    padding: 80px 20px;
    background: var(--card-bg);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
}

.empty-state i {
    font-size: 4rem;
    color: var(--text-gray);
    opacity: 0.3;
    margin-bottom: 20px;
}

.empty-state h3 {
    color: var(--text-dark);
    margin-bottom: 10px;
}

.empty-state p {
    color: var(--text-gray);
}
