/**
 * WikiAPI Module Styles
 * Automatic content loading for blocks with .wiki-api-content class
 * Inherits all colors, fonts, and spacing from parent theme
 */

.wiki-api-content {
    position: relative;
    min-height: 50px;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

/* Loading state */
.wiki-api-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    animation: wiki-api-pulse 2s infinite;
}

.wiki-api-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid;
    border-radius: 50%;
    animation: wiki-api-spin 1s linear infinite;
}

@keyframes wiki-api-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes wiki-api-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Error state */
.wiki-api-error {
    border-radius: 8px;
}

/* Content area */
.wiki-api-text-content {
    line-height: 1.6;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.wiki-api-text-content.wiki-api-animated {
    opacity: 1;
}

/* Content styling */
.wiki-api-text-content h1,
.wiki-api-text-content h2,
.wiki-api-text-content h3,
.wiki-api-text-content h4,
.wiki-api-text-content h5,
.wiki-api-text-content h6 {
}

.wiki-api-text-content h1 {
}

.wiki-api-text-content h2 {
}

.wiki-api-text-content h3 {
}

.wiki-api-text-content p {
}

.wiki-api-text-content ul,
.wiki-api-text-content ol {
}

.wiki-api-text-content li {
}

.wiki-api-text-content blockquote {
    border-left: 4px solid;
    font-style: italic;
}

.wiki-api-text-content code {
    border-radius: 3px;
    font-family: monospace;
}

.wiki-api-text-content pre {
    border-radius: 8px;
    overflow-x: auto;
}

.wiki-api-text-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

/* Responsive design */
@media (max-width: 768px) {
    .wiki-api-content {
    }

    .wiki-api-text-content h1 {
    }

    .wiki-api-text-content h2 {
    }
}
