/* THEME: {ThemeName}
   PALETTE: {PaletteName}
*/

:root {
    --bg-main: #fafafa;
    --bg-card: #ffffff;
    --text-main: #171717;
    --text-muted: #737373;
    --primary: #000000;
    --primary-light: #e5e5e5;
    --accent: #404040;
    --border: #e5e5e5;
    --radius: 4px;
    --shadow: 0 15px 30px rgba(0,0,0,0.05);
}; 
    --bg-card: {bg_card};
    --text-main: {text_main};
    --text-muted: {text_muted};
    --primary: {primary};
    --primary-light: {primary_light};
    --accent: {accent};  
    --border: {border};
    --radius: {radius};     
    --shadow: {shadow}; 
}

body {
    font-family: {font_family};
    background-color: var(--bg-main);
    background-image: url("data:image/svg+xml,%3Csvg%20width%3D'40'%20height%3D'40'%20viewBox%3D'0%200%2040%2040'%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%3E%3Cpath%20d%3D''%20fill%3D'none'%20stroke%3D'%23000000'%20stroke-width%3D'2'%20stroke-opacity%3D'0.05'%2F%3E%3C%2Fsvg%3E");
    color: var(--text-main);
    line-height: 1.6;
}

body::before {
    content: ""; position: fixed; top: 0; left: 0; width: 100%; height: 5px;
    background: var(--primary); z-index: 9999;
}

.site-nav { background: #ffffff; border-bottom: 1px solid var(--border); padding: 15px 0; }
.nav-inner { display: flex; align-items: center; justify-content: space-between; }
.logo-box { display: flex; align-items: center; gap: 12px; text-decoration: none; }

.logo-icon {
    background: var(--primary) !important; color: #fff !important;
    width: 44px; height: 44px; border-radius: var(--radius) !important; 
    font-weight: 800; font-size: 24px; display: flex; align-items: center; justify-content: center;
}

.logo-text { color: var(--text-main) !important; font-weight: 600; font-size: 24px; letter-spacing: 0;  }

.nav-menu { display: flex; list-style: none; gap: 10px; }
.nav-menu li a {
    color: var(--text-muted); font-weight: 600; font-size: 14px; padding: 8px 15px; 
    transition: all 0.3s; cursor: pointer; text-decoration: none; border-radius: 6px; 
}
.nav-menu li a:hover { color: var(--primary); }

.btn-read {
    display: inline-block; margin-top: 15px; padding: 12px 24px;
    background: var(--primary); color: #fff !important; font-size: 14px; font-weight: 700; 
    border: none; border-radius: var(--radius); transition: all 0.3s; cursor: pointer; text-align: center; 
}
.btn-read:hover { background: var(--accent); }

.tile-item { border: 1px solid var(--border) !important; border-radius: var(--radius) !important; overflow: hidden; box-shadow: var(--shadow) !important; transition: all 0.4s; background: var(--bg-card); }
.tile-item:hover { transform: translateY(-4px); border-color: var(--primary) !important; }
.tile-overlay { background: linear-gradient(to top, rgba(0,0,0,0.9), transparent) !important; padding: 25px !important; border-bottom: none; }
.tile-overlay h3 { font-weight: 800; font-size: 1.4rem; color: #ffffff !important;  }

.card { background: var(--bg-card); border: 1px solid var(--border) !important; transition: all 0.3s; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.card:hover { border-color: var(--primary) !important; }
.card-body h4 { font-weight: 800; font-size: 1.25rem; color: var(--text-main); margin-bottom: 12px;  }

#sidebar { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px; box-shadow: none; }
#sidebar h3 { color: var(--primary); padding: 0 0 10px 0; font-weight: 800; margin: 0 0 20px 0; border-bottom: 2px solid var(--primary-light); font-size: 16px;  }

#view-post article { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 50px; box-shadow: none; }
#p-title { font-size: 2.6rem; font-weight: 800; color: var(--text-main); margin-bottom: 25px; line-height: 1.2;   }
#view-post img { border-radius: var(--radius) !important; margin-bottom: 30px;  }
.post-content { font-size: 1.1rem; color: var(--text-main); line-height: 1.8; }
.post-content h2, .post-content h3 { color: var(--primary); font-weight: 800; margin-top: 2em; margin-bottom: 1em;  }

@media (max-width: 768px) {
    .nav-inner { flex-direction: column; gap: 15px; } .nav-menu { flex-wrap: wrap; justify-content: center; }
}
