/* Podstawowe style bloku */
.seo-expandable-container {
    margin: 2rem auto;
    padding: 1.5rem;
    background: f0f8fc;
    border-radius: 8px;
    border-left: 4px solid #126e9f;
    transition: all 0.3s ease;
    max-width: 1000px;

}

/* Zawartość tekstowa */
.seo-text-content {
    margin-bottom: 1rem;
}

.seo-text-preview,
.seo-text-full {
    line-height: 1.6;
    color: #333;
}

.seo-text-preview p:last-child,
.seo-text-full p:last-child {
    margin-bottom: 0;
}

.seo-text-full {
    animation: slideDown 0.3s ease-out;
}

/* Kontrolki */
.seo-text-controls {
    text-align: left;
}

.seo-expand-btn {
    background: #126e9f;
    color: white;
    border: none;
    padding: 0.75rem 1.25rem;
    border-radius: 6px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
    font-family: inherit;
}

.seo-expand-btn:hover {
    background: #126e9fc4;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 124, 186, 0.3);
}

.seo-expand-btn:focus {
    outline: 2px solid #126e9f;
    outline-offset: 2px;
}

.seo-expand-btn:active {
    transform: translateY(0);
}

/* Ikona */
.expand-icon {
    transition: transform 0.3s ease;
    fill: currentColor;
    flex-shrink: 0;
}

.seo-expandable-container.expanded .expand-icon {
    transform: rotate(180deg);
}

/* Animacje */
@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
        overflow: hidden;
    }
    to {
        opacity: 1;
        max-height: 2000px;
        overflow: visible;
    }
}

@keyframes slideUp {
    from {
        opacity: 1;
        max-height: 2000px;
        overflow: visible;
    }
    to {
        opacity: 0;
        max-height: 0;
        overflow: hidden;
    }
}

.seo-expandable-container.collapsing .seo-text-full {
    animation: slideUp 0.3s ease-out;
}

/* Responsywność */
@media (max-width: 768px) {
    .seo-expandable-container {
        margin: 1.5rem 0;
        padding: 1rem;
    }
    
    .seo-text-controls {
        text-align: center;
    }
    
    .seo-expand-btn {
        width: 100%;
        justify-content: center;
    }
}
