/* The Daily Amen AI - Clean Minimal Theme */

/* Root colors - subtle purple accent only */
:root {
    --primary: #667eea;
    --primary-dark: #5a67d8;
    --primary-light: #f0f4ff;
    --text: #1a202c;
    --text-muted: #718096;
    --bg: #ffffff;
    --bg-alt: #f7fafc;
    --border: #e2e8f0;
}

/* Dark mode */
@media (prefers-color-scheme: dark) {
    :root {
        --text: #f7fafc;
        --text-muted: #a0aec0;
        --bg: #1a202c;
        --bg-alt: #2d3748;
        --border: #4a5568;
        --primary-light: #2d3748;
    }
}

/* Base typography */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text);
}

/* Navigation - clean, no badges */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
}

nav .logo {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text);
    text-decoration: none;
}

nav .links {
    display: flex;
    gap: 1.5rem;
}

nav .links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

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

/* Article containers */
article {
    max-width: 720px;
    margin: 2rem auto;
    padding: 0 1rem;
}

/* Headings */
h1, h2, h3 {
    color: var(--text);
    line-height: 1.3;
}

h1 { font-size: 1.8rem; margin-bottom: 0.5rem; }
h2 { font-size: 1.5rem; margin-bottom: 0.5rem; }
h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }

/* Paragraphs and lists */
p, li {
    color: var(--text);
    font-size: 1rem;
}

a {
    color: var(--primary);
}

/* Email subscription - clean, not dominant */
.email-subscription {
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
    text-align: center;
}

.email-subscription h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
    color: var(--text);
}

.email-subscription p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0 0 1rem 0;
}

.followit-form {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.followit-form input[type="email"] {
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 0.95rem;
    background: var(--bg);
    color: var(--text);
    min-width: 250px;
}

.followit-form input[type="email"]:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.followit-form .subscribe-btn {
    padding: 0.75rem 1.5rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.followit-form .subscribe-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.subscription-note {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 1rem;
}

/* Footer */
footer {
    border-top: 1px solid var(--border);
    padding: 2rem 0;
    margin-top: 3rem;
    text-align: center;
}

footer p {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin: 0.5rem 0;
}

.ai-disclosure-small {
    font-size: 0.8rem;
    opacity: 0.8;
}

.support-link a {
    color: var(--text-muted);
    text-decoration: none;
}

.support-link a:hover {
    color: var(--primary);
}

/* Category badges - subtle */
.category-badge {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary);
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
    text-decoration: none;
}

/* Post list */
.post-list {
    list-style: none;
    padding: 0;
}

.post-list li {
    display: flex;
    justify-content: space-between;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
}

.post-title {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
}

.post-title:hover {
    color: var(--primary);
}

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

/* Tables - clean */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}

table th, table td {
    padding: 0.75rem;
    border: 1px solid var(--border);
    text-align: left;
}

table th {
    background: var(--bg-alt);
    font-weight: 600;
}

/* Code blocks */
code, pre {
    background: var(--bg-alt);
    border-radius: 6px;
    font-size: 0.9em;
}

/* Blockquotes */
blockquote {
    border-left: 3px solid var(--primary);
    padding-left: 1rem;
    margin: 1.5rem 0;
    color: var(--text-muted);
}

/* Mobile */
@media (max-width: 768px) {
    nav {
        flex-direction: column;
        gap: 1rem;
    }

    nav .links {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .post-list li {
        flex-direction: column;
        gap: 0.5rem;
    }

    .followit-form {
        flex-direction: column;
    }

    .followit-form input[type="email"],
    .followit-form .subscribe-btn {
        width: 100%;
    }
}


/* Sticky Header - stays on screen when scrolling */
nav {
    position: sticky;
    top: 0;
    background: var(--bg);
    z-index: 1000;
    padding: 0.75rem 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

/* Smaller footer on desktop */
@media (min-width: 769px) {
    footer {
        padding: 1rem 0;
        margin-top: 2rem;
    }

    footer p {
        font-size: 0.75rem;
        margin: 0.25rem 0;
    }

    .ai-disclosure-small {
        font-size: 0.7rem;
    }

    .email-subscription {
        padding: 1.25rem;
        margin: 1.5rem 0;
    }

    .email-subscription h4 {
        font-size: 0.95rem;
    }

    .email-subscription p {
        font-size: 0.8rem;
    }
}
