/* 
 * Template CSS för markdown-dokument
 * Används av render.php för att styla konverterade markdown-filer
 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 40px 20px;
    color: #1f2937;
    line-height: 1.6;
}

.container {
    max-width: 900px;
    margin: 0 auto;
}

/* Navigation */
.breadcrumb {
    margin-bottom: 24px;
}

.breadcrumb a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    background: rgba(255, 255, 255, 0.95);
    color: #667eea;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.breadcrumb a:hover {
    background: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Huvuddokument */
.document {
    background: white;
    padding: 50px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    margin-bottom: 24px;
}

/* Typography */
.document h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 8px;
    line-height: 1.2;
}

.document h2 {
    font-size: 1.75rem;
    font-weight: 600;
    color: #1f2937;
    margin-top: 48px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 3px solid #e5e7eb;
}

.document h3 {
    font-size: 1.35rem;
    font-weight: 600;
    color: #374151;
    margin-top: 36px;
    margin-bottom: 16px;
}

.document h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #4b5563;
    margin-top: 28px;
    margin-bottom: 12px;
}

.document p {
    margin-bottom: 18px;
    color: #374151;
    font-size: 1.05rem;
}

.document strong {
    font-weight: 600;
    color: #111827;
}

.document em {
    font-style: italic;
    color: #4b5563;
}

/* Listor */
.document ul,
.document ol {
    margin-left: 24px;
    margin-bottom: 20px;
}

.document li {
    margin-bottom: 10px;
    color: #374151;
    font-size: 1.05rem;
}

.document ul li::marker {
    color: #667eea;
}

.document ol li::marker {
    color: #667eea;
    font-weight: 600;
}

/* Länkar */
.document a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid transparent;
    transition: all 0.2s ease;
}

.document a:hover {
    color: #5568d3;
    border-bottom-color: #5568d3;
}

/* Blockquotes */
.document blockquote {
    border-left: 4px solid #667eea;
    background: #f9fafb;
    padding: 20px 24px;
    margin: 24px 0;
    border-radius: 0 8px 8px 0;
    color: #4b5563;
    font-style: italic;
}

/* Kod */
.document code {
    background: #f3f4f6;
    padding: 3px 8px;
    border-radius: 4px;
    font-family: 'SF Mono', 'Monaco', 'Consolas', monospace;
    font-size: 0.9em;
    color: #d946ef;
}

.document pre {
    background: #1f2937;
    padding: 20px;
    border-radius: 10px;
    overflow-x: auto;
    margin: 24px 0;
}

.document pre code {
    background: none;
    padding: 0;
    color: #e5e7eb;
    font-size: 0.95rem;
}

/* Tabeller */
.document table {
    width: 100%;
    border-collapse: collapse;
    margin: 28px 0;
    font-size: 0.98rem;
}

.document th,
.document td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

.document th {
    background: #f9fafb;
    font-weight: 600;
    color: #111827;
    border-bottom: 2px solid #667eea;
}

.document tr:hover {
    background: #f9fafb;
}

/* Horisontella linjer */
.document hr {
    border: none;
    border-top: 2px solid #e5e7eb;
    margin: 40px 0;
}

/* Footer */
.doc-footer {
    background: rgba(255, 255, 255, 0.95);
    padding: 24px 32px;
    border-radius: 12px;
    text-align: center;
    font-size: 0.9rem;
    color: #6b7280;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.doc-footer p {
    margin: 6px 0;
}

.doc-footer strong {
    color: #1f2937;
}

.doc-footer a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
}

.doc-footer a:hover {
    text-decoration: underline;
}

/* Responsiv design */
@media (max-width: 768px) {
    body {
        padding: 20px 12px;
    }

    .document {
        padding: 32px 24px;
    }

    .document h1 {
        font-size: 2rem;
    }

    .document h2 {
        font-size: 1.5rem;
        margin-top: 36px;
    }

    .document h3 {
        font-size: 1.2rem;
    }

    .document p,
    .document li {
        font-size: 1rem;
    }

    .doc-footer {
        padding: 20px 18px;
    }
}

@media (max-width: 480px) {
    .document {
        padding: 24px 18px;
    }

    .document h1 {
        font-size: 1.75rem;
    }

    .document h2 {
        font-size: 1.35rem;
    }
}
