/* ApiaryLabs Documentation - Professional Styling */

:root {
    --primary-color: #2563eb;
    --primary-dark: #1e40af;
    --secondary-color: #10b981;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --bg-primary: #ffffff;
    --bg-secondary: #f9fafb;
    --bg-accent: #f3f4f6;
    --border-color: #e5e7eb;
    --code-bg: #1f2937;
    --code-text: #f9fafb;
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    --info: #3b82f6;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    line-height: 1.7;
    color: var(--text-primary);
    background: var(--bg-secondary);
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    background: var(--bg-primary);
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

/* Header */
header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 3rem 2rem;
    text-align: center;
    border-bottom: 4px solid var(--secondary-color);
}

header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: -0.025em;
}

header p {
    font-size: 1.125rem;
    opacity: 0.95;
    font-weight: 400;
}

/* Content Sections */
.section {
    padding: 3rem 2.5rem;
}

/* Typography */
h2 {
    color: var(--primary-color);
    font-size: 2rem;
    font-weight: 700;
    margin: 2.5rem 0 1.5rem 0;
    padding-bottom: 0.75rem;
    border-bottom: 3px solid var(--secondary-color);
    letter-spacing: -0.025em;
}

h3 {
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: 600;
    margin: 2rem 0 1rem 0;
}

h4 {
    color: var(--text-primary);
    font-size: 1.25rem;
    font-weight: 600;
    margin: 1.5rem 0 0.75rem 0;
}

p {
    margin: 1rem 0;
    color: var(--text-primary);
    line-height: 1.75;
}

strong {
    font-weight: 600;
    color: var(--text-primary);
}

/* Links */
a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Lists */
ul, ol {
    margin: 1rem 0 1rem 1.5rem;
    padding-left: 1rem;
}

li {
    margin: 0.75rem 0;
    line-height: 1.7;
}

ul li {
    list-style-type: disc;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

th {
    background: var(--primary-color);
    color: white;
    font-weight: 600;
    padding: 1rem;
    text-align: left;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

td {
    padding: 0.875rem 1rem;
    border-bottom: 1px solid var(--border-color);
}

tr:last-child td {
    border-bottom: none;
}

tr:hover {
    background: var(--bg-secondary);
}

/* Code */
code {
    background: var(--bg-accent);
    color: var(--primary-dark);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-family: 'Monaco', 'Courier New', 'Courier', monospace;
    font-size: 0.9em;
    font-weight: 500;
}

pre {
    background: var(--code-bg);
    color: var(--code-text);
    padding: 1.5rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1.5rem 0;
    font-family: 'Monaco', 'Courier New', 'Courier', monospace;
    font-size: 0.875rem;
    line-height: 1.6;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

pre code {
    background: transparent;
    color: inherit;
    padding: 0;
    font-size: inherit;
}

/* Info Boxes */
.info-box {
    background: #eff6ff;
    border-left: 4px solid var(--info);
    padding: 1.25rem 1.5rem;
    margin: 1.5rem 0;
    border-radius: 4px;
}

.success-box {
    background: #f0fdf4;
    border-left: 4px solid var(--success);
    padding: 1.25rem 1.5rem;
    margin: 1.5rem 0;
    border-radius: 4px;
}

.warning-box {
    background: #fffbeb;
    border-left: 4px solid var(--warning);
    padding: 1.25rem 1.5rem;
    margin: 1.5rem 0;
    border-radius: 4px;
}

.info-box p, .success-box p, .warning-box p {
    margin: 0.5rem 0;
}

.info-box p:first-child, 
.success-box p:first-child, 
.warning-box p:first-child {
    margin-top: 0;
}

.info-box p:last-child, 
.success-box p:last-child, 
.warning-box p:last-child {
    margin-bottom: 0;
}

/* Checkmarks and Icons */
.checkmark {
    color: var(--success);
    font-weight: 700;
}

.crossmark {
    color: var(--error);
    font-weight: 700;
}

/* Badges */
.badge {
    display: inline-block;
    background: var(--secondary-color);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    margin: 0.5rem 0;
}

/* Footer */
footer {
    background: var(--bg-accent);
    border-top: 1px solid var(--border-color);
    padding: 2rem;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

footer p {
    margin: 0.5rem 0;
    color: var(--text-secondary);
}

footer strong {
    color: var(--text-primary);
}

/* Responsive Design */
@media (max-width: 768px) {
    header {
        padding: 2rem 1.5rem;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    .section {
        padding: 2rem 1.5rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    h3 {
        font-size: 1.35rem;
    }
    
    table {
        font-size: 0.875rem;
    }
    
    th, td {
        padding: 0.75rem 0.5rem;
    }
    
    pre {
        padding: 1rem;
        font-size: 0.8125rem;
    }
}

/* Print Styles */
@media print {
    body {
        background: white;
    }
    
    .container {
        box-shadow: none;
    }
    
    header {
        background: var(--primary-color);
        color: white;
    }
    
    a {
        text-decoration: underline;
    }
    
    pre {
        border: 1px solid var(--border-color);
        page-break-inside: avoid;
    }
}
