/* Zylch Common Styles */

/* CSS Variables */
:root {
    --bg-primary: #ffffff;
    --text-primary: #1a1a1a;
    --text-muted: #888888;
    --text-link: #666666;
    --accent: #4a9eff;
    --radius: 24px;
    --radius-sm: 12px;
    --shadow: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
}

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

/* Base */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    padding-bottom: 60px; /* Space for fixed footer */
}

/* Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background: var(--bg-primary);
    z-index: 100;
}

.header-logo {
    height: 28px;
    width: auto;
}

.sign-in-btn {
    padding: 0.5rem 1rem;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 20px;
    background: transparent;
    color: var(--text-primary);
    font-size: 0.85rem;
    font-family: inherit;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s ease;
}

.sign-in-btn:hover {
    background: #f5f5f5;
}

/* Back link (for inner pages) */
.back-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.2s ease;
}

.back-link:hover {
    color: var(--text-primary);
}

/* Footer - Fixed at bottom */
.site-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background: var(--bg-primary);
    border-top: 1px solid rgba(0,0,0,0.06);
    z-index: 100;
}

.footer-left a,
.footer-right a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.8rem;
}

.footer-left a {
    margin-right: 1.5rem;
}

.footer-right a {
    margin-right: 0;
    margin-left: 1.5rem;
}

.footer-left a:hover,
.footer-right a:hover {
    color: var(--text-primary);
}

/* Main content area - not constrained */
.main-content {
    padding-top: 4rem; /* Space for fixed header */
    min-height: calc(100vh - 120px);
}

/* Container for readable text content */
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Wide container for larger content */
.container-wide {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Section spacing */
.section {
    padding: 4rem 2rem;
}

.section-light {
    background: var(--bg-primary);
}

.section-dark {
    background: #1e1e2e;
    color: #e4e4e7;
}

/* Typography */
h1 {
    font-size: 2.5rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

h2 {
    font-size: 1.75rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1.3;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 0.75rem;
}

p {
    margin-bottom: 1rem;
}

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

a:hover {
    text-decoration: underline;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    font-size: 0.95rem;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
    border: none;
}

.btn-primary {
    background: var(--text-primary);
    color: var(--bg-primary);
}

.btn-primary:hover {
    background: #333;
    text-decoration: none;
}

/* Responsive */
@media (max-width: 768px) {
    .site-header {
        padding: 0.75rem 1rem;
    }

    .site-footer {
        padding: 0.75rem 1rem;
    }

    .footer-left a,
    .footer-right a {
        font-size: 0.75rem;
        margin-right: 1rem;
    }

    .footer-right a {
        margin-left: 1rem;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .section {
        padding: 3rem 1.5rem;
    }

    .container,
    .container-wide {
        padding: 0 1.5rem;
    }
}
