/* xAPI Content Manager Frontend Styles */

.xapi-content-wrapper {
    position: relative;
    width: 100%;
    margin: 0 auto;
}

.xapi-content-wrapper iframe {
    display: block;
    max-width: 100%;
    border: none;
}

.xapi-content-wrapper.xapi-aspect-ratio {
    position: relative;
    height: 0;
    overflow: hidden;
}

.xapi-content-wrapper.xapi-aspect-ratio iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.xapi-content-title {
    margin: 0 0 15px;
    font-size: 1.1em;
    font-weight: 600;
    color: inherit;
}

.xapi-content-empty {
    padding: 40px 20px;
    text-align: center;
    background: #f9f9f9;
    border: 1px dashed #ddd;
    border-radius: 4px;
    color: #666;
}

.xapi-content-empty p {
    margin: 0;
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
    .xapi-content-wrapper iframe {
        min-height: 400px;
    }
}

/* Loading state */
.xapi-content-wrapper.loading {
    min-height: 300px;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.xapi-content-wrapper.loading::after {
    content: '';
    width: 40px;
    height: 40px;
    border: 3px solid #e0e0e0;
    border-top-color: #333;
    border-radius: 50%;
    animation: xapi-spin 1s linear infinite;
}

@keyframes xapi-spin {
    to {
        transform: rotate(360deg);
    }
}
