
.feed { 
    max-width: 600px; 
    margin: 20px auto; 
}

.post {
    display: flex;
    gap: 15px;
    background: #fff; 
    padding: 10px; 
    margin-bottom: 15px;
    border-radius: 8px; 
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: relative;
    cursor: pointer;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.post:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.post img {
    width: 80px; 
    height: 80px; 
    object-fit: cover; 
    border-radius: 5px;
    cursor: pointer;
    background-color: #f0f0f0;
    transition: opacity 0.3s ease-in;
}

.post-content {
    flex: 1;
}

.post-content h3 {
    margin: 0 0 5px 0;
    font-size: 1em;
}

.post-content .meta {
    font-size: 0.8em; 
    color: #666; 
    margin-bottom: 5px;
}

.post-content a {
    font-size: 0.85em;
    color: #007bff;
    text-decoration: none;
}

.post-content a:hover {
    text-decoration: underline;
}

.hover-preview {
    position: absolute;
    max-width: 320px;
    max-height: 320px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
    pointer-events: none;
    z-index: 1000;

    opacity: 0;
    transform: scale(0.95);
    transition:
        opacity 0.18s ease,
        transform 0.18s ease;
}

.hover-preview.visible {
    opacity: 1;
    transform: scale(1);
}
