/* /blog/style.css */
:root {
    --primary: #2A9D8F;
    --secondary: #264653;
    --accent: #E9C46A;
    --bg: #F4F9F9;
    --text: #333;
    --white: #ffffff;
    --shadow: 0 4px 20px rgba(0,0,0,0.08);
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Poppins', sans-serif; }
body { background-color: var(--bg); color: var(--text); overflow-x: hidden; }

/* HEADER */
header { background: var(--white); padding: 1rem 5%; display: flex; justify-content: space-between; align-items: center; box-shadow: 0 2px 10px rgba(0,0,0,0.05); position: sticky; top: 0; z-index: 100; }
.brand { font-size: 1.5rem; font-weight: 700; color: var(--secondary); text-decoration: none; cursor: pointer; }
.brand span { color: var(--primary); }

/* LAYOUT UTAMA */
.container { max-width: 1200px; margin: 0 auto; padding: 2rem 20px; min-height: 80vh; }

/* GRID ARTIKEL */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 2rem; animation: fadeIn 0.5s ease; }

/* KARTU ARTIKEL */
.article-card { background: var(--white); border-radius: 15px; overflow: hidden; box-shadow: var(--shadow); transition: 0.3s; cursor: pointer; display: flex; flex-direction: column; }
.article-card:hover { transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0,0,0,0.12); }
.card-img { width: 100%; height: 200px; object-fit: cover; }
.card-body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.card-date { font-size: 0.8rem; color: #888; margin-bottom: 0.5rem; }
.card-title { font-size: 1.2rem; font-weight: 600; color: var(--secondary); margin-bottom: 0.8rem; line-height: 1.4; }
.card-excerpt { font-size: 0.9rem; color: #555; line-height: 1.6; margin-bottom: 1.5rem; flex: 1; }
.read-more { color: var(--primary); font-weight: 600; text-transform: uppercase; font-size: 0.85rem; margin-top: auto; }

/* SINGLE PAGE VIEW (DETAIL ARTIKEL) */
.single-view { background: var(--white); padding: 3rem; border-radius: 20px; box-shadow: var(--shadow); animation: slideUp 0.5s ease; max-width: 900px; margin: 0 auto; }
.back-btn { display: inline-block; margin-bottom: 1.5rem; color: var(--secondary); text-decoration: none; font-weight: 600; cursor: pointer; }
.back-btn:hover { color: var(--primary); }
.article-header { margin-bottom: 2rem; border-bottom: 1px solid #eee; padding-bottom: 1rem; }
.article-header h1 { font-size: 2.5rem; color: var(--secondary); margin-bottom: 0.5rem; line-height: 1.2; }
.meta-info { color: #888; font-size: 0.9rem; }
.main-image { width: 100%; height: auto; max-height: 500px; object-fit: cover; border-radius: 10px; margin-bottom: 2rem; }
.article-content { font-size: 1.1rem; line-height: 1.8; color: #444; }
.article-content p { margin-bottom: 1.5rem; }
.article-content h2 { color: var(--primary); margin-top: 2rem; margin-bottom: 1rem; }

/* ADMIN EDITOR */
.admin-container { max-width: 800px; margin: 2rem auto; background: var(--white); padding: 2rem; border-radius: 15px; box-shadow: var(--shadow); }
.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; margin-bottom: 0.5rem; font-weight: 600; color: var(--secondary); }
.form-control { width: 100%; padding: 12px; border: 2px solid #eee; border-radius: 8px; font-size: 1rem; transition: 0.3s; }
.form-control:focus { border-color: var(--primary); outline: none; }
.editor-toolbar { margin-bottom: 10px; display: flex; gap: 10px; background: #f9f9f9; padding: 10px; border-radius: 8px; }
.tool-btn { padding: 5px 10px; background: #ddd; border: none; border-radius: 4px; cursor: pointer; font-weight: bold; }
.tool-btn:hover { background: var(--primary); color: white; }
.content-area { min-height: 300px; border: 2px solid #eee; border-radius: 8px; padding: 15px; outline: none; line-height: 1.6; }
.content-area:focus { border-color: var(--primary); }

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

/* RESPONSIVE */
@media (max-width: 768px) {
    .blog-grid { grid-template-columns: 1fr; }
    .single-view { padding: 1.5rem; }
    .article-header h1 { font-size: 1.8rem; }
}