/* See More Text Styles */
.text-preview {
    display: block;
    line-height: 1.6;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.text-remaining {
    display: none;
}

.text-remaining.show {
    display: inline;
}

/* Beautiful See More Button */
.see-more-btn {
    background: linear-gradient(135deg, rgba(108, 92, 231, 0.1), rgba(253, 121, 168, 0.1));
    border: 1px solid rgba(108, 92, 231, 0.3);
    color: #6c5ce7;
    font-weight: 600;
    cursor: pointer;
    padding: 6px 16px;
    border-radius: 20px;
    transition: all 0.3s ease;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    box-shadow: 0 2px 8px rgba(108, 92, 231, 0.15);
}

.see-more-btn:hover {
    background: linear-gradient(135deg, rgba(108, 92, 231, 0.15), rgba(253, 121, 168, 0.15));
    border-color: #6c5ce7;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(108, 92, 231, 0.25);
}

.see-more-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(108, 92, 231, 0.2);
}

.see-more-btn i {
    transition: transform 0.3s ease;
    font-size: 10px;
}

.see-more-btn.expanded {
    background: linear-gradient(135deg, #6c5ce7, #fd79a8);
    color: white;
    border-color: transparent;
}

.see-more-btn.expanded:hover {
    background: linear-gradient(135deg, #5f4fd1, #e8658d);
}

.see-more-btn.expanded i {
    transform: rotate(180deg);
}

/* Animation for text expansion */
@keyframes fadeIn {
    from { 
        opacity: 0; 
        transform: translateY(-5px);
    }
    to { 
        opacity: 1; 
        transform: translateY(0);
    }
}

.text-remaining.show {
    animation: fadeIn 0.4s ease;
}

/* Post content specific */
.post-content {
    padding: 20px;
    line-height: 1.6;
    font-size: 15px;
    white-space: pre-wrap; /* Preserve formatting */
    word-wrap: break-word;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .see-more-btn {
        font-size: 12px;
        padding: 5px 14px;
    }
    
    .post-content {
        font-size: 14px;
        padding: 15px;
    }
}