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

:root {
    --bg-main: #ffffff;
    --bg-card: #f1f5f9;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --primary: #3b82f6;
    --primary-light: #eff6ff;
    --accent: #2563eb;
    --border: #e2e8f0;
    --radius: 12px;
    --shadow: 0 2px 10px rgba(0,0,0,0.05);
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, var(--bg-main) 0%, var(--bg-card) 100%);
    background-attachment: fixed;
    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: color-mix(in srgb, var(--bg-card) 90%, transparent); 
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    position: sticky; top: 0; z-index: 1000;
    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;
    background: linear-gradient(135deg, var(--primary), var(--accent)) !important;
            }

.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; flex-wrap: wrap; justify-content: flex-end; }
.nav-menu li a {
    color: var(--text-main); font-weight: 600; font-size: 14px; padding: 8px 15px; 
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); cursor: pointer; text-decoration: none; white-space: nowrap; border-radius: 6px; 
}
.nav-menu li a:hover { transform: translateY(-1px); 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.4s cubic-bezier(0.4, 0, 0.2, 1); cursor: pointer; text-align: center; 
}
.btn-read:hover { transform: translateY(-3px); box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); 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.5s cubic-bezier(0.4, 0, 0.2, 1); background: var(--bg-card); }
.tile-item:hover { transform: translateY(-8px); box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25) !important; 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.4s cubic-bezier(0.4, 0, 0.2, 1); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.card:hover { transform: translateY(-5px); box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04); 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; letter-spacing: -0.03em; 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; }
}

