/* assets/css/style.css */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
    --primary: #111827;
    --accent: #2563eb;
    --bg: #f9fafb;
    --text: #374151;
    --border: #e5e7eb;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: var(--accent); }
a:hover { text-decoration: underline; }

/* Header */
.site-header {
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 15px 20px;
    position: sticky;
    top: 0;
    z-index: 100;
}
.header-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo { font-size: 24px; font-weight: 700; color: var(--primary); letter-spacing: -0.5px; }
.logo a { color: var(--primary); text-decoration: none; }
.nav-links { display: flex; gap: 20px; }
.nav-links a { color: var(--text); font-weight: 500; font-size: 15px; }

/* Main Container */
.container { max-width: 1100px; margin: 40px auto; padding: 0 20px; }

/* Article Cards (Homepage) */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 30px; }
.card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
    transition: transform 0.2s;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1); }
.card-img { width: 100%; height: 200px; object-fit: cover; }
.card-body { padding: 20px; }
.card-category { color: var(--accent); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px; }
.card-title { font-size: 20px; font-weight: 700; color: var(--primary); margin-bottom: 10px; line-height: 1.3; }
.card-title a { color: var(--primary); }
.card-meta { font-size: 13px; color: #6b7280; margin-top: 15px; }

/* Single Article */
.single-article { max-width: 750px; margin: 0 auto; background: #fff; padding: 40px; border-radius: 8px; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05); }
.article-header { margin-bottom: 30px; }
.article-header h1 { font-size: 36px; color: var(--primary); line-height: 1.2; margin-bottom: 15px; }
.article-content { font-size: 18px; line-height: 1.8; color: #1f2937; }
.article-content img { max-width: 100%; border-radius: 8px; margin: 20px 0; }

/* Footer */
.site-footer {
    background: #fff;
    border-top: 1px solid var(--border);
    padding: 40px 20px;
    margin-top: 60px;
    text-align: center;
}
.footer-links { margin-bottom: 20px; display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; }
.footer-links a { color: var(--text); font-size: 14px; }
.copyright { color: #9ca3af; font-size: 13px; }

/* Mobile */
@media (max-width: 768px) {
    .header-container { flex-direction: column; gap: 15px; }
    .nav-links { flex-wrap: wrap; justify-content: center; gap: 15px; }
    .single-article { padding: 20px; border-radius: 0; box-shadow: none; }
    .article-header h1 { font-size: 28px; }
}