 /*!
 * Post Content Expander Premium for phpBB 3.3.x
 * @author Magnuske
 * @copyright (c) 2025 Magnuske. All rights reserved.
 *
 * LICENSE: Proprietary Commercial License.
 * - This software is NOT open-source.
 * - Unauthorized redistribution, sub-licensing, or resale is strictly prohibited.
 * - Usage is restricted to the licensed domain only.
 * * For purchase or support, contact: https://github.com/magnuske
 */

.post-content-wrapper {
    position: relative;
}

.postbody .content {
    transition: transform 0.12s ease;
}

.postbody .content.post-collapsed {
    overflow: hidden;
    position: relative;
}

.postbody .content.post-collapsed::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 28px;
    pointer-events: none;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0),
        var(--pe-fade-color, rgba(255, 255, 255, 0.9))
    );
}

.post-read-more {
    display: none;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    margin-top: 6px;
    cursor: pointer;
}

.post-content-wrapper.is-collapsed .post-read-more {
    display: block;
    background: linear-gradient(to right, transparent, var(--pe-fade-color) 40%, var(--pe-fade-color));
}

.postbody .content.is-pressed {
    transform: translateY(2px);
    background-color: var(--pe-press-color, rgba(0, 0, 0, 0.2));
}