/* TUI Nav Theme - Main Styles */

/* CSS Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Base Typography */
html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--tui-font);
    font-size: 1rem;
    line-height: 1.6;
    background-color: var(--tui-bg);
    color: var(--tui-text);
    min-height: 100vh;
}

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

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

a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 0.5em;
}

h1 { font-size: 1.75rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.1rem; }

/* Paragraphs */
p {
    margin-bottom: 1rem;
}

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

li {
    margin-bottom: 0.25rem;
}

/* Code */
code {
    font-family: inherit;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.125rem 0.375rem;
    border-radius: 3px;
    font-size: 0.9em;
}

pre {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    padding: 1rem;
    overflow-x: auto;
    margin-bottom: 1rem;
}

pre code {
    background: none;
    padding: 0;
    font-size: 0.875rem;
}

/* Blockquotes */
blockquote {
    border-left: 3px solid var(--tui-cursor);
    padding-left: 1rem;
    margin: 1rem 0;
    font-style: italic;
    opacity: 0.9;
}

/* Images */
img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
}

th, td {
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.5rem;
    text-align: left;
}

th {
    background: rgba(255, 255, 255, 0.05);
}

/* Horizontal Rule */
hr {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    margin: 2rem 0;
}

/* Keyboard shortcuts */
kbd {
    display: inline-block;
    padding: 0.125rem 0.5rem;
    font-family: inherit;
    font-size: 0.875rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

/* Single Post Styles */
.post-single {
    width: 100%;
}

.post-single-meta {
    text-align: center;
    font-size: 0.875rem;
    opacity: 0.7;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.post-single-meta time {
    margin-right: 1rem;
}

.post-single-tags a {
    margin-right: 0.5rem;
}

.post-single-content {
    margin-bottom: 2rem;
    font-family: var(--tui-content-font);
    line-height: 1.8;
}

/* Subheadings use TUI font (Home Video) */
.post-single-content h1,
.post-single-content h2,
.post-single-content h3,
.post-single-content h4,
.post-single-content h5,
.post-single-content h6 {
    font-family: var(--tui-font);
}

/* Keep code blocks in monospace */
.post-single-content code,
.post-single-content pre {
    font-family: var(--tui-font);
}

.post-single-content h2 {
    margin-top: 2rem;
}

.post-single-content h3 {
    margin-top: 1.5rem;
}

.post-single-footer {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.nav-hint {
    font-size: 0.875rem;
    opacity: 0.6;
}

/* Footer */
.footer {
    padding: 2rem 0;
    text-align: center;
    font-size: 0.875rem;
    opacity: 0.6;
}

/* Responsive */
@media (max-width: 768px) {
    html {
        font-size: 14px;
    }

    .container {
        padding: 0 0.75rem;
    }
}

/* Selection */
::selection {
    background: var(--tui-cursor);
    color: var(--tui-bg);
}
