/**
 * Checklist Sites - Shared Stylesheet
 * Clean, professional, not bloggy
 */

:root {
    --primary: #2563eb;
    --primary-dark: #1e40af;
    --bg: #fafafa;
    --surface: #ffffff;
    --text: #1f2937;
    --text-muted: #6b7280;
    --border: #e5e7eb;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    
    --radius: 8px;
    --shadow: 0 1px 3px rgba(0,0,0,0.1);
    --max-width: 900px;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header */
.site-header {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
}

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

.logo {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
}

.site-header nav {
    display: flex;
    gap: 1.5rem;
}

.site-header nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
}

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

/* Main */
main {
    flex: 1;
    padding: 2rem 0;
}

/* Hero */
.hero {
    text-align: center;
    padding: 3rem 0;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.tagline {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.description {
    max-width: 600px;
    margin: 0 auto;
}

/* Sections Grid */
.sections-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.section-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.section-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow);
}

.section-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 0.5rem;
}

.section-icon-large {
    font-size: 3rem;
}

.section-card h2 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.section-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.checklist-count {
    font-size: 0.8rem;
    color: var(--primary);
}

/* Philosophy */
.philosophy {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    margin: 2rem 0;
    text-align: center;
}

.philosophy h2 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.philosophy ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

.philosophy li {
    font-size: 0.9rem;
}

/* Breadcrumb */
.breadcrumb {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.breadcrumb a {
    color: var(--primary);
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* Page Header */
.page-header {
    margin-bottom: 2rem;
}

.page-header h1 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.page-header p {
    color: var(--text-muted);
}

/* Checklists List */
.checklists-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.checklist-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s;
}

.checklist-card:hover {
    border-color: var(--primary);
}

.checklist-card h2 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.checklist-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Checklist Items */
.checklist-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.checklist-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
}

.checklist-item.has-product {
    border-left: 3px solid var(--primary);
}

.item-header {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.item-header h3 {
    font-size: 1rem;
    font-weight: 600;
}

.priority {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.125rem 0.5rem;
    border-radius: 4px;
    flex-shrink: 0;
}

.priority-p0 {
    background: #fee2e2;
    color: #991b1b;
}

.priority-p1 {
    background: #fef3c7;
    color: #92400e;
}

.priority-p2 {
    background: #e0e7ff;
    color: #3730a3;
}

.item-description {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

.timeframe {
    display: inline-block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

.item-product {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.price-range {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
}

.item-info {
    margin-top: 0.75rem;
}

.item-info a {
    font-size: 0.85rem;
    color: var(--primary);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: var(--radius);
    font-size: 0.9rem;
    font-weight: 500;
    transition: background 0.2s;
}

.btn:hover {
    background: var(--primary-dark);
}

.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.8rem;
}

.btn-product {
    background: var(--primary);
}

/* Shopping List */
.shopping-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.shopping-group h2 {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
}

.shopping-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
}

.shopping-item:last-child {
    border-bottom: none;
}

.shopping-item .item-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0;
}

.item-name {
    font-weight: 500;
}

/* Ad Container */
.ad-container {
    margin: 2rem 0;
    padding: 1rem;
    background: var(--surface);
    border: 1px dashed var(--border);
    border-radius: var(--radius);
    text-align: center;
    min-height: 90px;
}

/* Footer */
.site-footer {
    background: var(--surface);
    border-top: 1px solid var(--border);
    padding: 1.5rem 0;
    margin-top: auto;
    text-align: center;
}

.site-footer p {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.affiliate-disclosure {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Responsive */
@media (max-width: 640px) {
    .hero h1 {
        font-size: 1.75rem;
    }
    
    .tagline {
        font-size: 1rem;
    }
    
    .sections-grid {
        grid-template-columns: 1fr;
    }
    
    .philosophy ul {
        flex-direction: column;
        gap: 1rem;
    }
    
    .item-product {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .shopping-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}
