/**
 * PLANK Expand Text Styles
 * Ultra-thin, minimalist design
 */

/* Google Font - Gloock */
@import url('https://fonts.googleapis.com/css2?family=Gloock&display=swap');

.plank-expand-wrapper {
    width: 100%;
}

/* Trigger Button */
.plank-expand-trigger {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    cursor: pointer;
    font-family: 'Gloock', serif;
    font-weight: 400;
    line-height: 1.2;
    text-align: left;
    transition: opacity 0.2s ease;
}

.plank-expand-trigger:hover {
    opacity: 0.7;
}

.plank-expand-trigger:focus {
    outline: none;
}

.plank-expand-trigger:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 4px;
}

/* Text */
.plank-expand-text {
    font-family: 'Gloock', serif;
    font-weight: 400;
    line-height: 1.2;
}

/* Icon (+/-) */
.plank-expand-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
}

.plank-expand-icon svg {
    width: 100%;
    height: 100%;
}

.plank-expand-icon .plank-icon-horizontal,
.plank-expand-icon .plank-icon-vertical {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}

/* Vertical line disappears (scales to 0) when expanded */
.plank-expand-wrapper.is-expanded .plank-expand-icon .plank-icon-vertical {
    opacity: 0;
    transform: scaleY(0);
}

/* Content Area */
.plank-expand-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.plank-expand-content-inner {
    padding-top: 15px;
    line-height: 1.6;
}

/* Expanded State */
.plank-expand-wrapper.is-expanded .plank-expand-content {
    max-height: 2000px;
}

/* Responsive */
@media (max-width: 768px) {
    .plank-expand-trigger {
        gap: 6px;
    }

    .plank-expand-content-inner {
        padding-top: 12px;
    }
}
