/* Dynamic post styles */
/* Post Media Container Styles */
.post-media-container {
    width: 100%;
    max-width: 100%;
    margin: 12px 0;
    border-radius: 8px;
    overflow: hidden;
    background-color: #1a1a1a;
}

.post-media-image,
.post-media-video,
.post-image,
.post-video {
    width: 100%;
    height: auto;
    max-height: 512px;
    object-fit: contain;
    display: block;
    border-radius: 8px;
    cursor: pointer;
}

.post-media-image:hover,
.post-media-video:hover,
.post-image:hover,
.post-video:hover {
    opacity: 0.95;
}

/* Ensure images don't exceed container width */
.post-media-container img {
    max-width: 100%;
    height: auto;
}

/* Video specific styles */
.post-media-video,
.post-video {
    background-color: #000;
}

/* Text content styles */
.post-text-content {
    padding: 12px 0;
    line-height: 1.6;
    color: #ffffff;
    word-wrap: break-word;
}

/* Post title and content hover effects */
.post-title {
    cursor: pointer;
    border-radius: 4px;
    padding: 4px 0;
    text-decoration: none;
    color: inherit;
}

.post-title:hover {
    color: #4a9eff;
    text-decoration: none;
}

.post-content {
    cursor: pointer;
    border-radius: 4px;
    padding: 8px 0;
}

.post-content:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

/* Post author name and profile picture hover effects */
.disclair-name {
    cursor: pointer;
    border-radius: 4px;
    padding: 2px 4px;
    text-decoration: none;
    color: inherit;
}

.disclair-name:hover {
    color: #4a9eff;
    background-color: rgba(255, 255, 255, 0.05);
    text-decoration: none;
}

.disclair-icon {
    cursor: pointer;
}

.disclair-icon:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.action-button {
    background: none;
    border: none;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
    color: #787c82;
    background-color: #f6f7f8;
    margin-right: 8px;
    transition: background-color 0.2s ease;
}

.action-button:hover {
    background-color: #e0e0e0;
}

.action-button.upvote:hover {
    background-color: #ff4500;
    color: white;
}

.action-button.downvote:hover {
    background-color: #7193ff;
    color: white;
}

.action-icon {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.vote-count {
    font-size: 12px;
    font-weight: 700;
    text-align: center;
}



/* Fix action group layout */
.action-group {
    display: flex;
    align-items: center;
}

.action-group .action-button {
    margin-right: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .post-image,
    .post-video,
    .post-media-image,
    .post-media-video {
        max-height: 400px;
    }
    
    .action-button {
        padding: 4px 8px;
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .post-image,
    .post-video,
    .post-media-image,
    .post-media-video {
        max-height: 300px;
    }
}
