/* HumpDay Academic Documentation Styles */

:root {
    --bg: #ffffff;
    --text: #2c3e50;
    --muted: #7f8c8d;
    --accent: #3498db;
    --border: #bdc3c7;
    --code-bg: #f8f9fa;
    --header-bg: #34495e;
    --section-bg: #fdfdfd;
    --success: #27ae60;
    --warning: #f39c12;
    --error: #e74c3c;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--text);
    font-family: 'Times New Roman', Times, serif;
    line-height: 1.6;
    font-size: 16px;
}

/* Academic Header */
.header {
    background: var(--header-bg);
    color: white;
    padding: 30px 0;
    text-align: center;
}

.header h1 {
    font-size: 2.2rem;
    margin: 0 0 8px;
    font-weight: 400;
}

.header .subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    font-style: italic;
}

.header a {
    color: #74b9ff;
    text-decoration: none;
}

.header a:hover {
    text-decoration: underline;
}

/* Main Container */
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 30px;
}

/* Sections */
.section {
    padding: 40px 0;
    border-bottom: 1px solid #ecf0f1;
}

.section:last-child {
    border-bottom: none;
}

.section h2 {
    font-size: 1.8rem;
    margin: 0 0 20px;
    font-weight: 400;
    color: var(--header-bg);
}

.section h3 {
    font-size: 1.3rem;
    margin: 24px 0 12px;
    font-weight: 400;
}

.section h4 {
    font-size: 1.1rem;
    margin: 20px 0 8px;
    font-weight: 600;
}

/* Abstract box */
.abstract {
    background: var(--section-bg);
    font-style: italic;
    padding: 24px;
    border-left: 4px solid var(--accent);
    margin: 24px 0;
}

/* Code blocks */
.code-block, pre {
    background: var(--code-bg);
    border: 1px solid var(--border);
    padding: 20px;
    font-family: 'Courier New', Consolas, monospace;
    font-size: 0.9rem;
    overflow-x: auto;
    margin: 20px 0;
    border-radius: 4px;
}

code {
    background: #e8f4f8;
    padding: 2px 6px;
    margin: 2px;
    border-radius: 3px;
    font-family: 'Courier New', Consolas, monospace;
    font-size: 0.9rem;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
}

th, td {
    padding: 12px;
    border: 1px solid var(--border);
    text-align: left;
    font-size: 0.95rem;
}

th {
    background: var(--section-bg);
    font-weight: 600;
    color: var(--header-bg);
}

/* Status boxes */
.status-success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    border-left: 4px solid var(--success);
    padding: 16px;
    margin: 16px 0;
}

.status-warning {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-left: 4px solid var(--warning);
    padding: 16px;
    margin: 16px 0;
}

.status-error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-left: 4px solid var(--error);
    padding: 16px;
    margin: 16px 0;
}

/* Interactive elements */
details {
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 16px;
    margin: 16px 0;
}

summary {
    cursor: pointer;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 8px;
}

/* Buttons */
.btn {
    display: inline-block;
    background: var(--accent);
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

.btn:hover {
    background: #2980b9;
    text-decoration: none;
}

.btn-secondary {
    background: var(--muted);
}

.btn-secondary:hover {
    background: #6c757d;
}

/* Grid layouts */
.grid {
    display: grid;
    gap: 20px;
    margin: 24px 0;
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* Card components */
.card {
    background: white;
    border: 1px solid var(--border);
    padding: 20px;
    border-radius: 4px;
}

.card h4 {
    margin-top: 0;
    color: var(--accent);
}

/* Links */
a {
    color: var(--accent);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Lists */
ul, ol {
    padding-left: 2em;
}

li {
    margin: 8px 0;
}

/* Footer */
footer {
    background: var(--header-bg);
    color: white;
    padding: 24px 0;
    text-align: center;
    font-size: 0.9rem;
    margin-top: 40px;
}

footer a {
    color: #74b9ff;
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

    .header h1 {
        font-size: 1.8rem;
    }

    .section h2 {
        font-size: 1.5rem;
    }

    .grid-2, .grid-3 {
        grid-template-columns: 1fr;
    }
}

/* Utility classes */
.text-center { text-align: center; }
.text-muted { color: var(--muted); }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.p-0 { padding: 0; }