/**
 * Caption Expander Styles
 * Styling for expandable captions with typewriter effect
 */

/* Expanded caption styling */
.expanded-caption {
    display: none;
    vertical-align: baseline;
}

/* Plus/minus button styling */
.plus {
    cursor: pointer;
    color: #2563eb;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 4px;
    transition: all 0.2s ease;
    display: inline-block;
    user-select: none;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.05) 0%, rgba(37, 99, 235, 0.1) 100%);
    border: 1px solid rgba(37, 99, 235, 0.2);
    vertical-align: middle;
    line-height: 1;
}

.plus:hover {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1) 0%, rgba(37, 99, 235, 0.15) 100%);
    border-color: rgba(37, 99, 235, 0.4);
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(37, 99, 235, 0.2);
}

.plus:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(37, 99, 235, 0.2);
}

.plus.expanded {
    color: #dc2626;
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.05) 0%, rgba(220, 38, 38, 0.1) 100%);
    border-color: rgba(220, 38, 38, 0.2);
    margin-left: 12px;
    padding: 3px 10px;
}

.plus.expanded:hover {
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.1) 0%, rgba(220, 38, 38, 0.15) 100%);
    border-color: rgba(220, 38, 38, 0.4);
}

/* Add a subtle animation on page load */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.plus {
    animation: fadeInUp 0.5s ease-out;
}

