/* Professional styling for simple_statistics documentation */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #fff;
    font-size: 16px;
}

/* Header */
header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4rem 2rem;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

header .logo-container {
    margin-bottom: 1rem;
}

header .logo {
    max-width: 120px;
    height: auto;
}

header h1 {
    font-size: 2.8rem;
    margin: 1rem 0;
    font-weight: 700;
}

header .tagline {
    font-size: 1.2rem;
    opacity: 0.95;
    margin: 0.5rem 0;
}

header .badges {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

header .badges img {
    height: 24px;
}

/* Navigation */
nav {
    background: #f5f5f5;
    padding: 1.5rem;
    border-bottom: 1px solid #ddd;
    position: sticky;
    top: 0;
    z-index: 100;
}

nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

nav a {
    text-decoration: none;
    color: #667eea;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

nav a:hover {
    color: #764ba2;
    text-decoration: underline;
}

/* Main content */
main {
    max-width: 900px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

section {
    margin-bottom: 4rem;
}

section h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: #667eea;
    border-bottom: 2px solid #667eea;
    padding-bottom: 0.5rem;
}

section h3 {
    font-size: 1.4rem;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    color: #764ba2;
}

section p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

section ul, section ol {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

section li {
    margin-bottom: 0.5rem;
    line-height: 1.8;
}

/* Code styling */
code {
    background: #f5f5f5;
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    color: #d63384;
}

pre {
    background: #2d2d2d;
    color: #f8f8f2;
    padding: 1.5rem;
    border-radius: 5px;
    overflow-x: auto;
    margin: 1.5rem 0;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.5;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

pre code {
    padding: 0;
    background: none;
    color: #f8f8f2;
    border-radius: 0;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

th, td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

th {
    background: #667eea;
    color: white;
    font-weight: 600;
}

tr:hover {
    background: #f9f9f9;
}

/* Links */
a {
    color: #667eea;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #764ba2;
    text-decoration: underline;
}

/* Blockquote */
blockquote {
    border-left: 4px solid #667eea;
    padding-left: 1.5rem;
    margin: 1.5rem 0;
    color: #666;
    font-style: italic;
}

/* Footer */
footer {
    text-align: center;
    padding: 3rem 2rem;
    background: #f5f5f5;
    margin-top: 4rem;
    border-top: 1px solid #ddd;
    font-size: 0.9rem;
    color: #666;
}

footer p {
    margin-bottom: 0.5rem;
}

footer a {
    color: #667eea;
}

footer a:hover {
    text-decoration: underline;
}

/* Responsive design */
@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }

    header .tagline {
        font-size: 1rem;
    }

    nav ul {
        gap: 1rem;
    }

    section h2 {
        font-size: 1.5rem;
    }

    main {
        padding: 1.5rem;
    }

    pre {
        padding: 1rem;
        font-size: 0.8rem;
    }

    table {
        font-size: 0.9rem;
    }

    th, td {
        padding: 0.75rem;
    }
}

/* Utility classes */
.logo {
    display: inline-block;
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: #667eea;
    color: white;
    border-radius: 20px;
    font-size: 0.85rem;
    margin-right: 0.5rem;
}

.highlight {
    background: #fff3cd;
    padding: 1rem;
    border-left: 4px solid #ffc107;
    border-radius: 3px;
    margin: 1rem 0;
}

.note {
    background: #e7f3ff;
    padding: 1rem;
    border-left: 4px solid #2196F3;
    border-radius: 3px;
    margin: 1rem 0;
}

.success {
    background: #d4edda;
    padding: 1rem;
    border-left: 4px solid #28a745;
    border-radius: 3px;
    margin: 1rem 0;
}

.warning {
    background: #fff3cd;
    padding: 1rem;
    border-left: 4px solid #ffc107;
    border-radius: 3px;
    margin: 1rem 0;
}
