/* Styles pour le contenu principal */
.documentation-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 24px;
}

.api-title {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #1a1a1a;
}

.api-description {
    color: #6c757d;
    font-size: 16px;
    margin-bottom: 40px;
}

.base-info,
.authentication-info,
.category-section {
    margin-bottom: 40px;
}

h2 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 16px;
    color: #1a1a1a;
}

.code-block {
    background-color: #f8f9fa;
    border-radius: 6px;
    padding: 16px;
    margin-bottom: 24px;
}

.code-block code {
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', monospace;
    font-size: 14px;
}

.auth-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 16px;
}

.auth-table th,
.auth-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #e1e1e1;
}

.auth-table th {
    font-weight: 600;
    width: 150px;
    color: #1a1a1a;
}

.endpoint-block {
    background-color: #f8f9fa;
    border-radius: 6px;
    padding: 16px;
    margin-bottom: 16px;
}

.endpoint-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.method-get,
.method-post,
.method-put,
.method-delete {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.method-get {
    background-color: #e3f2fd;
    color: #0d47a1;
}

.method-post {
    background-color: #e8f5e9;
    color: #1b5e20;
}

.method-put {
    background-color: #fff3e0;
    color: #e65100;
}

.method-delete {
    background-color: #ffebee;
    color: #b71c1c;
}

.endpoint-path {
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', monospace;
    font-size: 14px;
    color: #1a1a1a;
}

.endpoint-description {
    color: #6c757d;
    font-size: 14px;
    line-height: 1.5;
}

/* Documentation styles */
.documentation {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

/* Base URL section */
.base-url {
    background: var(--code-background);
    padding: 1rem;
    border-radius: 4px;
    font-family: monospace;
    margin: 1rem 0;
    color: var(--text-color);
}

/* Authentication section */
.auth-section {
    margin: 2rem 0;
}

.auth-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}

.auth-table th,
.auth-table td {
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    text-align: left;
}

.auth-table th {
    background: var(--background-alt);
}

/* Endpoints */
.endpoint-section {
    margin: 2rem 0;
}

.endpoint-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.endpoint-description {
    color: var(--text-color-light);
    margin-bottom: 1rem;
}

.endpoint-block {
    margin: 1rem 0;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    overflow: hidden;
}

.endpoint-header {
    display: flex;
    align-items: center;
    padding: 1rem;
    background: var(--background-alt);
    gap: 1rem;
}

.endpoint-method {
    font-weight: bold;
    padding: 0.25rem 0.75rem;
    border-radius: 3px;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.endpoint-path {
    font-family: monospace;
    color: var(--text-color);
    font-size: 1rem;
}

.endpoint-content {
    padding: 1rem;
}

/* Method colors */
.method-get {
    background-color: var(--get-color);
    color: white;
}

.method-post {
    background-color: var(--post-color);
    color: white;
}

.method-put {
    background-color: var(--put-color);
    color: white;
}

.method-delete {
    background-color: var(--delete-color);
    color: white;
}

.method-patch {
    background-color: var(--patch-color);
    color: white;
}

/* Parameters */
.parameters-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}

.parameters-table th,
.parameters-table td {
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    text-align: left;
}

.parameters-table th {
    background: var(--background-alt);
}

/* Response section */
.response-section {
    margin-top: 1rem;
}

.response-example {
    background: var(--code-background);
    padding: 1rem;
    border-radius: 4px;
    font-family: monospace;
    white-space: pre-wrap;
    overflow-x: auto;
}

/* Dark mode adjustments */
.dark-mode .api-title,
.dark-mode h2,
.dark-mode .endpoint-path {
    color: #ffffff;
}

.dark-mode .code-block,
.dark-mode .endpoint-block {
    background-color: #2d2d2d;
}

.dark-mode .auth-table th,
.dark-mode .auth-table td {
    border-color: #404040;
}

.dark-mode .auth-table th {
    color: #ffffff;
}

.dark-mode .base-url,
.dark-mode .response-example {
    background: var(--code-background-dark);
}

/* Styles pour les blocs de code */
.code-wrapper {
    position: relative;
    margin: 1em 0;
}

.code-wrapper pre {
    margin: 0;
    padding-right: 2.5em;
}

.copy-button {
    position: absolute;
    top: 0.5em;
    right: 0.5em;
    padding: 0.5em;
    background: transparent;
    border: none;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.2s ease-in-out;
    color: inherit;
}

.copy-button:hover {
    opacity: 1;
}

.copy-button.copied {
    color: #28a745;
}

.dark-mode .copy-button {
    color: #fff;
}

.dark-mode .copy-button.copied {
    color: #28a745;
}

/* Animation pour le bouton de copie */
@keyframes copy-success {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.copy-button.copied {
    animation: copy-success 0.3s ease-in-out;
}

/* Responsive styles */
@media (max-width: 768px) {
    .documentation-content {
        padding: 24px 16px;
    }

    .api-title {
        font-size: 28px;
    }

    .endpoint-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .parameters-table {
        display: block;
        overflow-x: auto;
    }
}

@media (max-width: 768px) {
    .endpoint-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .parameters-table {
        display: block;
        overflow-x: auto;
    }
}
