/* CYC Story Block – story-block.css */

.cyc-story-block {
    position: relative;
}

/* Wrapper με CSS variable για preview height (ορίζεται inline από shortcode) */
.cyc-story-wrapper {
    position: relative;
    max-height: var(--csb-preview-height, 120px);
    overflow: hidden;
    transition: max-height 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.cyc-story-wrapper.expanded {
    max-height: 9999px;
}

.cyc-story-text p {
    margin-bottom: 1em;
    line-height: 1.75;
}

/* Fade gradient — χρώμα ορίζεται inline από shortcode */
.cyc-story-fade {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(
        to bottom,
        transparent,
        var(--csb-fade-color, #ffffff)
    );
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.cyc-story-fade.hidden {
    opacity: 0;
}

/* Toggle button */
.cyc-story-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 16px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    color: var(--e-global-color-blocksy_palette_2, #0073aa);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.01em;
    transition: opacity 0.2s;
}

.cyc-story-toggle:hover {
    opacity: 0.7;
}

.cyc-story-btn-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.cyc-story-toggle[aria-expanded="true"] .cyc-story-btn-icon {
    transform: rotate(180deg);
}
