/* API Plugin Styles */

.api-container {
    margin: 0 auto;
    font-family: inherit;
    color: inherit;
}

/* API Archive Header - Changelog Style */
.api-archive-header {
    background: #ffffff;
    padding: 60px 0;
    border-bottom: 1px solid #e0e0e0;
    text-align: center;
    margin-bottom: 3rem;
}

.api-archive-title {
    font-size: 48px;
    font-weight: 700;
    color: #333;
    margin: 0 0 20px 0;
    line-height: 1.2;
}

.api-archive-description {
    font-size: 18px;
    color: #666;
    margin: 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* API Content */
.api-content {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    padding: 2rem;
    min-height: 400px;
}

.api-embed-wrapper {
    width: 100%;
    min-height: 300px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    background: #f8f9fa;
    padding: 1rem;
    overflow: hidden;
}

.api-embed-wrapper iframe {
    width: 100%;
    height: 600px;
    border: none;
    border-radius: 4px;
}

.api-embed-wrapper embed,
.api-embed-wrapper object {
    width: 100%;
    height: 600px;
    border: none;
    border-radius: 4px;
}

/* No Content State */
.api-no-content {
    text-align: center;
    padding: 3rem 1rem;
    color: #6c757d;
}

.api-no-content p {
    font-size: 1.1rem;
    margin: 0;
    line-height: 1.6;
}

.api-no-content a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
}

.api-no-content a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .api-container {
        padding: 1rem;
    }
    
    .api-archive-header {
        padding: 40px 0;
        margin-bottom: 2rem;
    }
    
    .api-archive-title {
        font-size: 36px;
    }
    
    .api-archive-description {
        font-size: 16px;
    }
    
    .api-content {
        padding: 1.5rem;
    }
    
    .api-embed-wrapper {
        min-height: 250px;
    }
    
    .api-embed-wrapper iframe,
    .api-embed-wrapper embed,
    .api-embed-wrapper object {
        height: 400px;
    }
}

@media (max-width: 480px) {
    .api-container {
        padding: 0.5rem;
    }
    
    .api-archive-header {
        padding: 30px 0;
        margin-bottom: 1.5rem;
    }
    
    .api-archive-title {
        font-size: 28px;
    }
    
    .api-archive-description {
        font-size: 14px;
    }
    
    .api-content {
        padding: 1rem;
    }
    
    .api-embed-wrapper {
        min-height: 200px;
    }
    
    .api-embed-wrapper iframe,
    .api-embed-wrapper embed,
    .api-embed-wrapper object {
        height: 300px;
    }
}

/* Print Styles */
@media print {
    .api-archive-header {
        background: #f8f9fa !important;
        color: #000 !important;
        box-shadow: none !important;
    }
    
    .api-content {
        box-shadow: none;
        border: 1px solid #000;
    }
}

/* Accessibility */
.api-archive-title:focus,
.api-archive-description:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* Loading States */
.api-embed-wrapper.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    color: #6c757d;
    font-style: italic;
}

.api-embed-wrapper.loading::before {
    content: "Loading API content...";
}

/* Error States */
.api-embed-wrapper.error {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8d7da;
    color: #721c24;
    border-color: #f5c6cb;
}

.api-embed-wrapper.error::before {
    content: "Error loading API content";
} 