"""Corporate template — clean, professional layout with blue accents."""

from nhandu.templates import Template, register

CSS = """
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
                 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 3rem;
    color: #24292e;
    background: #fff;
}
h1, h2, h3, h4, h5, h6 {
    color: #0366d6;
    font-weight: 600;
    margin-top: 1.8em;
    margin-bottom: 0.5em;
}
h1 {
    font-size: 2rem;
    color: #24292e;
    border-bottom: 3px solid #0366d6;
    padding-bottom: 0.4em;
}
h2 {
    font-size: 1.4rem;
    border-bottom: 1px solid #e1e4e8;
    padding-bottom: 0.3em;
}
h3 { font-size: 1.15rem; }
a { color: #0366d6; text-decoration: none; }
a:hover { text-decoration: underline; }
p { margin: 1em 0; }
pre {
    font-family: 'SFMono-Regular', 'Consolas', 'Liberation Mono', 'Menlo', monospace;
    font-size: 0.88em;
    background: #f6f8fa;
    padding: 1rem;
    border: 1px solid #e1e4e8;
    border-radius: 6px;
    overflow-x: auto;
    line-height: 1.5;
}
code {
    font-family: 'SFMono-Regular', 'Consolas', 'Liberation Mono', 'Menlo', monospace;
    font-size: 0.88em;
    background: #f6f8fa;
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
}
pre code {
    background: none;
    padding: 0;
}
table {
    border-collapse: collapse;
    width: 100%;
    margin: 1em 0;
    font-size: 0.95em;
}
th, td {
    border: 1px solid #e1e4e8;
    padding: 0.5rem 0.75rem;
    text-align: left;
}
th {
    background: #f6f8fa;
    color: #0366d6;
    font-weight: 600;
}
blockquote {
    border-left: 4px solid #0366d6;
    margin: 1em 0;
    padding: 0.5em 1em;
    color: #586069;
    background: #f6f8fa;
}
hr {
    border: none;
    border-top: 1px solid #e1e4e8;
    margin: 2em 0;
}
img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 1.5em auto;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}
.code-block {
    margin: 1.5rem 0;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #e1e4e8;
}
.code-input {
    padding: 1rem;
    background: #f6f8fa;
    border-left: 3px solid #0366d6;
    margin: 0;
}
.code-input pre {
    margin: 0;
    padding: 0;
    background: transparent;
    border: none;
}
.code-output {
    background: #fff;
    border-top: 1px solid #e1e4e8;
    padding: 1rem;
    margin: 0;
    font-family: 'SFMono-Regular', 'Consolas', 'Liberation Mono', 'Menlo', monospace;
    font-size: 0.88em;
}
.error {
    color: #cb2431;
    background: #ffeef0;
    padding: 1rem;
    border: 1px solid #fdaeb7;
    border-radius: 6px;
    font-family: 'SFMono-Regular', 'Consolas', 'Liberation Mono', 'Menlo', monospace;
    font-size: 0.88em;
}
.nhandu-footer {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e1e4e8;
    font-size: 0.8rem;
    color: #6a737d;
}
.nhandu-footer a {
    color: #0366d6;
    text-decoration: none;
}
.nhandu-footer a:hover {
    text-decoration: underline;
}
"""

register(
    Template(
        name="corporate",
        description="Clean, professional layout with blue accents",
        css=CSS,
    )
)
