/* THEME: IT / Programowanie (Dark Mode, IDE style)
   PALETTE: Deep Dark, Neon Green, Purple
   PATTERN: Binary/Code braces
*/

:root {
    --bg-main: #f8fafc;
    --bg-card: #ffffff;
    --text-main: #1e293b;
    --text-muted: #475569;
    --primary: #4f46e5;
    --primary-light: #e0e7ff;
    --accent: #4338ca;
    --border: #cbd5e1;
    --radius: 8px;
    --shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
}

body {
    font-family: 'Fira Code', 'Courier New', monospace;
    background-color: var(--bg-main);
    background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Ctext x='10' y='20' font-family='monospace' font-size='10' fill='%2310b981' fill-opacity='0.03'%3E%7B %7D%3C/text%3E%3C/svg%3E");
    color: var(--text-main);
    line-height: 1.6;
}

body::before {
    content: ""; position: fixed; top: 0; left: 0; width: 100%; height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--primary)); z-index: 9999;
}

.site-nav { background: var(--bg-main); 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: 10px; text-decoration: none; }

.site-nav .logo-box .logo-icon {
    background: transparent !important; color: var(--primary) !important;
    width: 30px; height: 30px; border: 2px solid var(--primary) !important; border-radius: var(--radius) !important;
    font-weight: 800; font-size: 16px; display: flex; align-items: center; justify-content: center;
}
.site-nav .logo-box .logo-icon i { color: var(--primary) !important; font-size: 16px; }

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

.nav-menu { display: flex; list-style: none; gap: 5px; }
.nav-menu li a {
    color: var(--text-muted); font-weight: 500; font-size: 14px; padding: 8px 12px; 
    transition: all 0.2s; cursor: pointer; text-decoration: none; border-radius: 4px;
}
.nav-menu li a:hover { color: var(--primary); background: rgba(16, 185, 129, 0.1); }

.btn-read {
    display: inline-block; margin-top: 15px; padding: 10px 20px;
    background: transparent; color: var(--primary) !important; font-size: 14px; font-weight: 600;
    border: 1px solid var(--primary); border-radius: var(--radius); transition: all 0.2s; cursor: pointer; text-align: center;
}
.btn-read:hover { background: var(--primary); color: #000 !important; box-shadow: 0 0 15px rgba(16,185,129,0.4); }

.tile-item { border: 1px solid var(--border) !important; border-radius: var(--radius) !important; overflow: hidden; box-shadow: var(--shadow) !important; transition: all 0.2s; background: var(--bg-card); }
.tile-item:hover { border-color: var(--primary) !important; }
.tile-overlay { background: linear-gradient(to top, rgba(15,23,42,0.95) 0%, rgba(15,23,42,0.6) 50%, transparent 100%) !important; padding: 20px !important; border-bottom: 2px solid var(--primary); }
.tile-overlay h3 { font-weight: 700; font-size: 1.2rem; color: #ffffff !important; }

.card { background: var(--bg-card); border: 1px solid var(--border) !important; transition: all 0.2s; border-radius: var(--radius); overflow: hidden; }
.card:hover { border-color: var(--accent) !important; }
.card-body h4 { font-weight: 700; font-size: 1.1rem; color: var(--text-main); margin-bottom: 12px; }

#sidebar { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
#sidebar h3 { color: var(--primary); padding: 0 0 10px 0; font-weight: 700; margin: 0 0 15px 0; border-bottom: 1px solid var(--border); }

#view-post article { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px; }
#p-title { font-size: 2.2rem; font-weight: 700; color: var(--primary); margin-bottom: 25px; }
#p-title::before { content: "function "; color: var(--accent); font-weight: 400; font-size: 1.5rem; }
#view-post img { border-radius: var(--radius) !important; margin-bottom: 30px; opacity: 0.9; }
.post-content { font-size: 1rem; color: var(--text-muted); line-height: 1.7; }
.post-content h2, .post-content h3 { color: var(--text-main); font-weight: 700; 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; }
}
