/* jasonisnthappy - common styles */

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

:root {
    --bg-primary: #0a0a0a;
    --bg-secondary: #111;
    --bg-tertiary: #1a1a1a;
    --border-primary: #222;
    --border-secondary: #333;
    --border-hover: #444;
    --text-primary: #e0e0e0;
    --text-secondary: #666;
    --text-muted: #444;
    --accent-primary: #4ade80;
    --accent-hover: #22c55e;
    --accent-dim: rgba(74, 222, 128, 0.1);
    --warning: #fbbf24;
    --error: #f87171;
    --code-bg: #000;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 500;
    letter-spacing: -0.5px;
}

h1 {
    font-size: 2.5rem;
    line-height: 1.2;
}

h2 {
    font-size: 2rem;
    line-height: 1.3;
}

h3 {
    font-size: 1.4rem;
}

h4 {
    font-size: 1.1rem;
}

p {
    line-height: 1.8;
}

a {
    color: var(--accent-primary);
    text-decoration: none;
    transition: color 0.15s ease;
}

a:hover {
    color: var(--accent-hover);
}

code {
    font-family: 'DM Mono', 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
    background: var(--code-bg);
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    border: 1px solid var(--border-primary);
    font-size: 0.9em;
}

pre {
    font-family: 'DM Mono', 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
    background: var(--code-bg);
    border: 1px solid var(--border-primary);
    border-radius: 4px;
    padding: 1rem;
    overflow-x: auto;
    line-height: 1.6;
}

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

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

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

/* Header */
.header {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-primary);
    padding: 1.5rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    background: rgba(17, 17, 17, 0.9);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo .icon {
    color: var(--accent-primary);
}

.nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav a {
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: color 0.15s ease;
}

.nav a:hover {
    color: var(--text-primary);
}

/* Buttons */
.btn {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border-secondary);
    padding: 0.6rem 1.2rem;
    border-radius: 3px;
    cursor: pointer;
    font-size: 0.9rem;
    font-family: inherit;
    transition: all 0.15s ease;
    display: inline-block;
    text-align: center;
}

.btn:hover {
    background: var(--bg-tertiary);
    border-color: var(--border-hover);
}

.btn-primary {
    background: var(--accent-primary);
    color: var(--bg-primary);
    border-color: var(--accent-primary);
    font-weight: 500;
}

.btn-primary:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    color: var(--bg-primary);
}

.btn-ghost {
    background: transparent;
    border: 1px solid var(--border-secondary);
}

.btn-ghost:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

/* Cards */
.card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: 4px;
    padding: 1.5rem;
}

/* Grid */
.grid {
    display: grid;
    gap: 2rem;
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

/* Sections */
section {
    padding: 7rem 0;
}

.section-title {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

/* Utilities */
.text-center {
    text-align: center;
}

.text-muted {
    color: var(--text-secondary);
}

.text-accent {
    color: var(--accent-primary);
}

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3rem; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.pulse {
    animation: pulse 2s infinite;
}

/* Footer */
.footer {
    background: var(--bg-primary);
    border-top: 1px solid var(--border-primary);
    padding: 1.5rem 0;
}

.footer-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 0.85rem;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--accent-primary);
}

.footer-sep {
    color: var(--text-muted);
    font-size: 0.7rem;
}

.footer-credit {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.footer-credit a {
    color: var(--text-secondary);
    transition: color 0.2s ease;
}

.footer-credit a:hover {
    color: var(--accent-primary);
}

@media (max-width: 480px) {
    .footer-row {
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
    }
}

/* Mobile - Other */
@media (max-width: 768px) {
    body {
        font-size: 15px;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.65rem;
    }

    .container {
        padding: 0 1rem;
    }

    .nav {
        gap: 1rem;
    }

    section {
        padding: 4rem 0;
    }

    .grid-2,
    .grid-3 {
        grid-template-columns: 1fr;
    }
}
