/* main.css - Shared styles across all pages */

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

:root {
    --bg: #1a1a1a;
    --bg-light: #242424;
    --text: #e0e0e0;
    --text-dim: #a8a8a8;
    --text-muted: #707070;
    --accent: #64b5f6;
    --border: #333;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    font-size: 16px;
}

/* Light theme */
.light {
    --bg: #fafafa;
    --bg-light: #ffffff;
    --text: #2a2a2a;
    --text-dim: #555;
    --text-muted: #777;
    --border: #ddd;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
}

.header {
    margin-bottom: 3rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.subtitle {
    color: var(--text-dim);
    font-size: 1rem;
    margin-bottom: 1rem;
}

.theme-toggle {
    position: fixed;
    top: 1rem;
    right: 1rem;
    background: var(--bg-light);
    border: 1px solid var(--border);
    color: var(--text-dim);
    padding: 0.5rem;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.9rem;
}

.theme-toggle:hover {
    color: var(--accent);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.social-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.social-link:hover {
    color: var(--accent);
}

.section-title {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--accent);
    font-weight: normal;
}

.tag {
    background: var(--bg-light);
    color: var(--text-muted);
    padding: 0.2rem 0.5rem;
    font-size: 0.8rem;
    border: 1px solid var(--border);
}

.code {
    background: var(--bg-light);
    padding: 0.2rem 0.4rem;
    font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
    border: 1px solid var(--border);
    font-size: 0.9em;
}

.link {
    color: var(--accent);
    text-decoration: none;
}

.link:hover {
    text-decoration: underline;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }
}

/* Smooth transitions */
* {
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}