/* StalkPhish API Documentation Stylesheet */

/* Container spécifique à la documentation */
.stalkphish-api-container {
    max-width: 1200px;
    margin: 0 auto;
    background: #ffffff;
    min-height: 100vh;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #2c3e50;
}

/* Reset to avoid conflicts with Bootstrap */
.stalkphish-api-container * {
    box-sizing: border-box;
}

/* Header Styles */
.stalkphish-api-header {
    background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
    color: white;
    padding: 3rem 2rem;
    text-align: center;
    border-bottom: 4px solid #e53e3e;
}

.stalkphish-api-header h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.stalkphish-api-version {
    font-size: 1.1rem;
    color: #e53e3e;
    font-weight: 600;
    margin-bottom: 1rem;
}

.stalkphish-api-header p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* Content Styles */
.stalkphish-api-content {
    padding: 2rem;
}

/* Navigation Styles */
.stalkphish-api-nav {
    background: #2d3748;
    padding: 1rem 0;
    position: sticky;
    top: 60px;
    z-index: 99;
    border-bottom: 2px solid #e53e3e;
}

.stalkphish-api-nav-list {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    list-style: none;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.stalkphish-api-nav-list a {
    color: #e2e8f0;
    text-decoration: none;
    padding: 0.7rem 1.2rem;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-weight: 500;
    border: 1px solid transparent;
}

.stalkphish-api-nav-list a:hover {
    background: #e53e3e;
    color: white;
    border-color: #c53030;
    transform: translateY(-1px);
}

.stalkphish-api-section {
    margin-bottom: 3rem;
}

.stalkphish-api-section h2 {
    color: #1a202c;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    border-bottom: 3px solid #e53e3e;
    padding-bottom: 0.5rem;
    position: relative;
}

.stalkphish-api-section h2::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 60px;
    height: 3px;
    background: #2d3748;
}

.stalkphish-api-section h3 {
    color: #2d3748;
    font-size: 1.5rem;
    margin: 2rem 0 1rem 0;
    background: #f7fafc;
    padding: 1rem;
    border-left: 4px solid #e53e3e;
    border-radius: 0 6px 6px 0;
}

.stalkphish-api-section h4 {
    color: #1a202c;
    font-size: 1.3rem;
    margin: 1.5rem 0 0.8rem 0;
    font-weight: 600;
}

/* Code and URL Styles */
.stalkphish-api-base-url {
    background: linear-gradient(135deg, #1a202c, #2d3748);
    color: white;
    padding: 1.5rem;
    border-radius: 8px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 1.2rem;
    margin: 1.5rem 0;
    text-align: center;
    border: 2px solid #e53e3e;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.stalkphish-api-auth-example {
    background: #2d3748;
    color: #e2e8f0;
    padding: 1.2rem;
    border-radius: 8px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    margin: 1.5rem 0;
    border-left: 4px solid #e53e3e;
}

.stalkphish-api-code-block {
    background: #1a202c;
    color: #e2e8f0;
    padding: 1.5rem;
    border-radius: 8px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.9rem;
    margin: 1.5rem 0;
    overflow-x: auto;
    position: relative;
    border-left: 4px solid #e53e3e;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    white-space: pre-wrap;
    word-wrap: break-word;
    line-height: 1.4;
}

.stalkphish-api-code-block::before {
    content: attr(data-lang);
    position: absolute;
    top: 0.5rem;
    right: 1rem;
    background: #e53e3e;
    color: white;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    font-size: 0.7rem;
    text-transform: uppercase;
    font-weight: 600;
}

/* Syntax highlighting for Python */
.stalkphish-api-code-block[data-lang="python"] .keyword {
    color: #ff79c6;
}

.stalkphish-api-code-block[data-lang="python"] .string {
    color: #50fa7b;
}

.stalkphish-api-code-block[data-lang="python"] .comment {
    color: #6272a4;
    font-style: italic;
}

.stalkphish-api-code-block[data-lang="python"] .function {
    color: #8be9fd;
}

.stalkphish-api-code-block[data-lang="python"] .number {
    color: #bd93f9;
}

/* Syntax highlighting for JavaScript */
.stalkphish-api-code-block[data-lang="javascript"] .keyword {
    color: #ff79c6;
}

.stalkphish-api-code-block[data-lang="javascript"] .string {
    color: #50fa7b;
}

.stalkphish-api-code-block[data-lang="javascript"] .comment {
    color: #6272a4;
    font-style: italic;
}

.stalkphish-api-code-block[data-lang="javascript"] .function {
    color: #8be9fd;
}

/* Syntax highlighting for Bash */
.stalkphish-api-code-block[data-lang="bash"] .command {
    color: #8be9fd;
}

.stalkphish-api-code-block[data-lang="bash"] .option {
    color: #ffb86c;
}

.stalkphish-api-code-block[data-lang="bash"] .comment {
    color: #6272a4;
    font-style: italic;
}

.stalkphish-api-code-block[data-lang="bash"] .string {
    color: #50fa7b;
}

.stalkphish-api-json-block {
    background: #2d3748;
    color: #68d391;
}

.stalkphish-api-json-block::before {
    background: #38a169;
}

.stalkphish-api-endpoint {
    background: linear-gradient(135deg, #e53e3e, #c53030);
    color: white;
    padding: 1.2rem;
    border-radius: 8px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-weight: bold;
    margin: 1.5rem 0;
    font-size: 1.1rem;
    box-shadow: 0 2px 4px rgba(229, 62, 62, 0.3);
}

/* Table Styles */
.stalkphish-api-table-container {
    overflow-x: auto;
    margin: 1.5rem 0;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    border: 1px solid #e2e8f0;
}

.stalkphish-api-table-container table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.stalkphish-api-table-container th {
    background: linear-gradient(135deg, #e53e3e, #c53030);
    color: white;
    padding: 1.2rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stalkphish-api-table-container td {
    padding: 1rem 1.2rem;
    border-bottom: 1px solid #e2e8f0;
}

.stalkphish-api-table-container tr:nth-child(even) {
    background: #f7fafc;
}

.stalkphish-api-table-container tr:hover {
    background: #edf2f7;
    transition: background-color 0.2s ease;
}

/* Status Code Styles */
.stalkphish-api-status-codes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.stalkphish-api-status-code {
    background: #f7fafc;
    padding: 1.2rem;
    border-radius: 8px;
    border-left: 4px solid #4299e1;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.stalkphish-api-status-code.error {
    border-left-color: #e53e3e;
    background: #fed7d7;
}

.stalkphish-api-status-code.success {
    border-left-color: #38a169;
    background: #c6f6d5;
}

.stalkphish-api-status-code h4 {
    margin: 0 0 0.5rem 0;
    color: #1a202c;
}

/* Alert Styles */
.stalkphish-api-warning {
    background: #fef5e7;
    border: 1px solid #f6e05e;
    color: #744210;
    padding: 1.2rem;
    border-radius: 8px;
    margin: 1.5rem 0;
    border-left: 4px solid #ed8936;
}

.stalkphish-api-info {
    background: #e6fffa;
    border: 1px solid #81e6d9;
    color: #234e52;
    padding: 1.2rem;
    border-radius: 8px;
    margin: 1.5rem 0;
    border-left: 4px solid #38b2ac;
}

/* Parameter Lists */
.stalkphish-api-params-list {
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.stalkphish-api-params-list ul {
    margin-left: 1.5rem;
}

.stalkphish-api-params-list li {
    margin-bottom: 0.8rem;
}

/* Utility Classes */
.stalkphish-api-highlight {
    background: #fed7d7;
    padding: 0.3rem 0.5rem;
    border-radius: 4px;
    font-weight: 600;
    color: #c53030;
}

.stalkphish-api-feature-badge {
    display: inline-block;
    background: #e53e3e;
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-left: 0.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .stalkphish-api-header h1 {
        font-size: 2.2rem;
    }
    
    .stalkphish-api-nav-list {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }
    
    .stalkphish-api-content {
        padding: 1rem;
    }
    
    .stalkphish-api-code-block {
        font-size: 0.8rem;
        padding: 1rem;
    }
    
    .stalkphish-api-section h2 {
        font-size: 1.7rem;
    }
    
    .stalkphish-api-section h3 {
        font-size: 1.3rem;
    }
    
    .stalkphish-api-base-url {
        font-size: 1rem;
        padding: 1rem;
    }
    
    .stalkphish-api-endpoint {
        font-size: 1rem;
        padding: 1rem;
    }
}