/* Notion-like styles - clean, minimal, professional */

:root {
    /* Notion colors */
    --notion-bg: #ffffff;
    --notion-gray: #f7f6f3;
    --notion-text: #37352f;
    --notion-text-light: #787774;
    --notion-text-lighter: #9b9a97;
    --notion-border: #e9e9e7;
    --notion-blue: #2383e2;
    --notion-shadow: rgba(15, 15, 15, 0.05);
}

/* Theme override via JS: html[data-theme-resolved="dark"] */
html[data-theme-resolved="dark"] {
    --notion-bg: #0b0f19;
    --notion-gray: #111827;
    --notion-text: #e5e7eb;
    --notion-text-light: #9ca3af;
    --notion-text-lighter: #6b7280;
    --notion-border: #1f2937;
    --notion-blue: #60a5fa;
    --notion-shadow: rgba(0, 0, 0, 0.35);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--notion-text);
    background: var(--notion-gray);
    padding: 32px 20px;
}

.theme-toggle {
    position: absolute;
    top: 12px;
    right: 12px;
    border: 1px solid var(--notion-border);
    background: var(--notion-gray);
    color: var(--notion-text-light);
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    cursor: pointer;
}

.collapsible-header {
    cursor: pointer;
}

.collapsible-toggle {
    margin-left: auto;
    border: 1px solid var(--notion-border);
    background: var(--notion-gray);
    color: var(--notion-text-light);
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 12px;
    cursor: pointer;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    background: var(--notion-bg);
    border-radius: 3px;
    box-shadow: 0 1px 2px var(--notion-shadow);
}

/* Header */
header {
    padding: 48px 48px 24px;
    border-bottom: 1px solid var(--notion-border);
}

header h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 4px;
    line-height: 1.2;
}

header .date {
    font-size: 14px;
    color: var(--notion-text-light);
}

/* Sections */
.section {
    padding: 32px 48px;
    border-bottom: 1px solid var(--notion-border);
}

.section:last-child {
    border-bottom: none;
}

.section-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-icon {
    font-size: 20px;
}

/* Items */
.item {
    margin-bottom: 24px;
}

.item:last-child {
    margin-bottom: 0;
}

.item-header {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.item-image {
    width: 180px;
    height: 120px;
    object-fit: cover;
    border-radius: 3px;
    flex-shrink: 0;
    background: var(--notion-gray);
}

.item-content {
    flex: 1;
    min-width: 0;
}

.item-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--notion-text);
    text-decoration: none;
    display: block;
}

.item-title:hover {
    color: var(--notion-blue);
}

.item-text {
    font-size: 14px;
    color: var(--notion-text-light);
    line-height: 1.6;
    margin-bottom: 8px;
}

.item-meta {
    font-size: 13px;
    color: var(--notion-text-lighter);
    display: flex;
    align-items: center;
    gap: 12px;
}

.item-source {
    color: var(--notion-blue);
    text-decoration: none;
}

.item-source:hover {
    text-decoration: underline;
}

/* Stats */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
}

.stat-card {
    background: var(--notion-gray);
    padding: 16px;
    border-radius: 3px;
    text-align: center;
}

.stat-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--notion-text);
    margin-bottom: 4px;
}

.stat-label {
    font-size: 12px;
    color: var(--notion-text-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
}

/* Highlight */
.highlight-box {
    background: var(--notion-gray);
    padding: 20px;
    border-radius: 3px;
    border-left: 3px solid var(--notion-blue);
    margin-bottom: 24px;
}

.highlight-box h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

.highlight-box p {
    font-size: 14px;
    color: var(--notion-text-light);
    line-height: 1.6;
}

/* Tags */
.tag {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 500;
    background: var(--notion-gray);
    color: var(--notion-text);
    margin-right: 6px;
}

/* Footer */
footer {
    padding: 24px 48px;
    text-align: center;
    font-size: 13px;
    color: var(--notion-text-lighter);
    border-top: 1px solid var(--notion-border);
}

footer a {
    color: var(--notion-blue);
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    body {
        padding: 16px;
    }
    
    .container {
        border-radius: 0;
    }
    
    header,
    .section,
    footer {
        padding-left: 24px;
        padding-right: 24px;
    }
    
    .item-image {
        width: 100px;
        height: 67px;
    }
    
    .stat-grid {
        grid-template-columns: 1fr 1fr;
    }
}
