/* Query Curious - Data Engineering theme - Softer dark mode */
:root{
	--bg:#1f2329;
	--card:#2a2e36;
	--text:#d4d6da;
	--muted:#9ca0a6;
	--accent:#6dd47e;
	--accent-2:#6bb3d6;
	--danger:#e67e7e;
	--shadow:rgba(0,0,0,0.25);
	--border:#3d4149;
}
*{box-sizing:border-box}
html,body{margin:0;padding:0;background-color:var(--bg);color:var(--text);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;line-height:1.6;font-size:16px}
body{background:
		linear-gradient(rgba(31,35,41,.80),rgba(31,35,41,.80)),
		url("../img/data-bg.png") center / cover fixed no-repeat}
a{color:var(--accent-2);text-decoration:none}
a:hover{text-decoration:underline}
.container{max-width:1024px;margin:0 auto;padding:16px}
.site-header{position:relative;overflow:hidden;border-bottom:1px solid var(--border)}
.header-content{display:flex;align-items:center;justify-content:space-between;gap:20px;min-height:120px}
.brand-wrapper{display:flex;flex-direction:column;gap:12px;flex:1}
.brand{display:flex;flex-direction:row;align-items:center;gap:12px;color:var(--text);text-decoration:none}
.brand-logo{height:64px;width:64px;object-fit:contain;display:block}
.brand-text{display:flex;flex-direction:column;gap:2px}
.brand-title{font-weight:800;font-size:1.6rem;letter-spacing:.2px}
.brand-tagline{color:var(--muted);font-size:.88rem;white-space:nowrap}
.nowrap{white-space:nowrap}
.profile-pic{width:120px;height:120px;border-radius:50%;object-fit:cover;border:3px solid var(--accent-2);box-shadow:0 4px 16px var(--shadow);flex-shrink:0}
.nav{display:flex;gap:16px;align-items:center}
@media (max-width: 768px){
	.header-content{flex-direction:row;align-items:center;justify-content:flex-start;gap:12px;min-height:auto;padding:8px 0}
	.profile-pic{width:60px;height:60px;border-width:2px;flex-shrink:0;order:0}
	.brand-wrapper{flex:1;min-width:0;gap:4px}
	.brand{flex-direction:row;gap:8px;text-align:left}
	.brand-logo{height:32px;width:32px}
	.brand-title{font-size:1.2rem;line-height:1.2}
	.brand-tagline{font-size:.75rem;white-space:normal;line-height:1.2}
	.nav{display:none}
	.top-filters{margin:4px 0 12px 0;gap:8px}
	.search-form{flex-direction:row;flex-wrap:wrap;gap:3px;align-items:center;height:auto}
	.search-form input[type="text"]{flex:1 1 auto;min-width:0;font-size:13px;padding:6px 8px;height:32px;box-sizing:border-box;order:1}
	.search-form .btn{flex:0 0 auto;padding:6px 10px;font-size:12px;white-space:nowrap;height:32px;box-sizing:border-box;line-height:1;order:2}
	.search-form select{flex:1 1 100%;min-width:100%;max-width:100%;font-size:12px;padding:6px 4px;height:32px;box-sizing:border-box;order:3;width:100%}
	.tag-cloud{justify-content:center}
	.footer-content{grid-template-columns:1fr;text-align:center}
	.social-links{justify-content:center}
}
.nav a{color:var(--text);opacity:.9}
.author-bio{color:var(--muted);max-width:1024px;margin:4px auto 8px auto;padding:0 16px}
.author-bio summary{cursor:pointer;color:var(--accent-2)}
.author-bio .bio-text{white-space:pre-line;margin-top:6px}
.site-footer{border-top:1px solid var(--border);margin-top:48px;padding:32px 0 24px 0}
.footer-content{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:24px;margin-bottom:20px}
.footer-section h4{margin:0 0 12px 0;color:var(--accent-2);font-size:1rem}
.footer-section ul{list-style:none;padding:0;margin:0}
.footer-section li{margin:8px 0}
.footer-section a{color:var(--muted);transition:color 0.2s ease}
.footer-section a:hover{color:var(--accent-2)}
.social-links{display:flex;gap:12px;margin-top:8px}
.social-links a{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;border-radius:50%;border:1px solid var(--border);color:var(--text);transition:all 0.3s ease}
.social-links a:hover{border-color:var(--accent-2);background:rgba(107,179,214,.12);transform:translateY(-2px)}
.footer-bottom{text-align:center;padding-top:20px;border-top:1px solid var(--border);color:var(--muted);font-size:.9rem}
.scroll-top{position:fixed;bottom:24px;right:24px;width:48px;height:48px;background:linear-gradient(135deg,var(--accent-2),var(--accent));border:none;border-radius:50%;color:var(--bg);font-size:1.5rem;cursor:pointer;box-shadow:0 4px 16px rgba(107,179,214,.25);opacity:0;visibility:hidden;transition:all 0.3s ease;z-index:1000}
.scroll-top.visible{opacity:1;visibility:visible}
.scroll-top:hover{transform:translateY(-4px);box-shadow:0 8px 24px rgba(107,179,214,.35)}
.empty-state{text-align:center;padding:48px 24px;color:var(--muted)}
.empty-state-icon{font-size:3rem;margin-bottom:16px;opacity:0.5}
.empty-state h3{color:var(--text);margin:0 0 8px 0}
.empty-state p{margin:0 0 16px 0}
.flashes{list-style:none;padding:0;margin:12px 0}
.flash{padding:10px 12px;border:1px solid var(--border);background:var(--card);border-radius:8px;margin:6px 0}
.flash.success{border-color:rgba(109,212,126,.25)}
.flash.error{border-color:rgba(230,126,126,.3)}
.posts-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:24px}
.post-card{background:linear-gradient(180deg,rgba(42,46,54,.85),rgba(42,46,54,.65));border:1px solid var(--border);border-radius:12px;box-shadow:0 8px 24px var(--shadow);padding:14px;position:relative;transition:all 0.3s ease;overflow:hidden}
.post-card:hover{transform:translateY(-4px);box-shadow:0 12px 32px var(--shadow),0 0 0 1px var(--accent-2);border-color:var(--accent-2)}
.post-card .card-link{color:inherit;text-decoration:none;display:block}
.post-title{margin:0 0 6px 0;font-size:1.1rem;line-height:1.3}
.featured-title{font-size:1.4rem;line-height:1.3;margin-bottom:8px}
.post-excerpt{color:var(--muted);margin:0 0 8px 0;opacity:0.9;font-size:1rem;line-height:1.7;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.post-meta{display:flex;gap:6px;align-items:center;justify-content:space-between;color:var(--muted);font-size:.85rem;flex-wrap:wrap;margin-top:8px}
.post-card-content{display:flex;gap:12px;margin:10px 0}
.post-card .thumb{flex:0 0 140px;width:140px;border-radius:8px;overflow:hidden;aspect-ratio:4/3;background:linear-gradient(135deg,rgba(107,179,214,.12),rgba(109,212,126,.12))}
.post-card .thumb img{width:100%;height:100%;object-fit:cover;display:block;transition:transform 0.3s ease}
.post-card:hover .thumb img{transform:scale(1.05)}
.post-card .thumb.placeholder{display:flex;align-items:center;justify-content:center;font-size:2rem;font-weight:800;color:var(--accent-2);opacity:0.3}
.post-text-content{flex:1;min-width:0}
.tags{display:flex;gap:6px;list-style:none;margin:0;padding:0;flex-wrap:wrap;max-width:100%}
.tags li{border:1px solid var(--border);padding:2px 8px;border-radius:999px;font-size:.8rem;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;transition:all 0.2s ease}
.tags li:hover{border-color:var(--accent-2);background:rgba(107,179,214,.08)}
.tags a{color:var(--accent-2);text-decoration:none}
.read-time{font-size:.85rem;color:var(--muted);opacity:0.8}
.comment-count{font-size:.85rem;color:var(--muted);opacity:0.8}
.featured-post{padding:16px;margin-bottom:24px}
.featured-post .thumb{flex:0 0 180px;width:180px}
.featured-excerpt{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.featured-title{font-size:1.6rem;line-height:1.25;margin-bottom:8px}
.featured-excerpt{font-size:1.1rem;line-height:1.7}

@media (max-width: 768px){
	.posts-grid{grid-template-columns:1fr}
}
@media (max-width: 640px){
	.header-content{gap:8px;padding:6px 0}
	.profile-pic{width:50px;height:50px;border-width:2px}
	.brand-title{font-size:1.1rem}
	.brand-tagline{font-size:.7rem}
	.post-card-content{flex-direction:column}
	.post-card .thumb{flex:0 0 auto;width:100%;aspect-ratio:16/9}
	.post-meta{flex-direction:column;align-items:flex-start;gap:6px}
	.top-filters{margin:2px 0 10px 0;gap:6px}
	.search-form{gap:2px;height:auto;flex-wrap:wrap}
	.search-form input[type="text"]{font-size:12px;padding:5px 6px;height:30px;box-sizing:border-box;order:1;flex:1 1 auto;min-width:0}
	.search-form .btn{padding:5px 8px;font-size:11px;height:30px;box-sizing:border-box;line-height:1;order:2;flex:0 0 auto}
	.search-form select{min-width:100%;max-width:100%;width:100%;font-size:11px;padding:5px 3px;height:30px;box-sizing:border-box;order:3;flex:1 1 100%}
}
.pagination{display:flex;gap:8px;align-items:center;justify-content:center;margin:24px 0}
.page-info{color:var(--muted)}
.top-filters{display:flex;flex-direction:column;gap:12px;margin:6px 0 20px 0}
.search-form{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.search-form input[type="text"]{flex:1 1 280px;border:1px solid rgba(107,179,214,.25);box-shadow:0 0 0 0 rgba(107,179,214,.15);transition:all 0.3s ease;order:1}
.search-form input[type="text"]:focus{border-color:var(--accent-2);box-shadow:0 0 0 3px rgba(107,179,214,.15)}
.search-form .btn{transition:all 0.3s ease;order:2;flex:0 0 auto}
.search-form .btn:hover{background:linear-gradient(180deg,rgba(107,179,214,.18),rgba(107,179,214,.10));box-shadow:0 0 12px rgba(107,179,214,.25)}
.search-form select{background:var(--card);color:var(--text);border:1px solid var(--border);border-radius:8px;padding:8px 10px;order:3;flex:0 0 auto}
.search-results-info{color:var(--muted);font-size:.9rem;margin-bottom:12px}
.tag-cloud{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-top:8px}
.tag-cloud-item{display:inline-block;padding:6px 14px;border-radius:20px;border:1px solid var(--border);background:rgba(17,23,51,.6);color:var(--text);text-decoration:none;transition:all 0.3s ease;font-size:var(--tag-size,.9rem)}
.tag-cloud-item:hover{background:rgba(107,179,214,.12);border-color:var(--accent-2);transform:translateY(-2px);box-shadow:0 4px 12px rgba(107,179,214,.2)}
.tag-cloud-item .count{font-size:.75rem;opacity:0.7;margin-left:4px}
.tag-expand-btn{color:var(--accent-2);cursor:pointer;font-size:.9rem;padding:6px 12px;border:1px dashed var(--border);border-radius:20px;transition:all 0.3s ease}
.tag-expand-btn:hover{border-color:var(--accent-2);background:rgba(107,179,214,.08)}
/* Full blog post styling - white background for better readability */
.post{background:#ffffff;padding:32px;border-radius:12px;margin:20px 0;box-shadow:0 4px 16px rgba(0,0,0,0.15)}
.post h1{margin:0 0 8px 0;color:#1a1a1a}
.post-meta{border-bottom:1px solid #e0e0e0;padding-bottom:16px;margin-bottom:24px}
.post-meta span{color:#666}
.post-content{margin-top:12px;font-size:1.125rem;line-height:1.8;font-family:Georgia,"Times New Roman",Times,serif;max-width:100%}
.post-content p{margin:12px 0;font-size:1.125rem;line-height:1.8;color:#333}
.post-content h1,.post-content h2,.post-content h3,.post-content h4,.post-content h5,.post-content h6{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;font-weight:600;margin-top:24px;margin-bottom:12px;line-height:1.4;color:#1a1a1a}
.post-content h1{font-size:2rem}
.post-content h2{font-size:1.75rem}
.post-content h3{font-size:1.5rem}
.post-content h4{font-size:1.25rem}
.post-content ul,.post-content ol{margin:16px 0;padding-left:24px}
.post-content li{margin:8px 0;line-height:1.8;color:#333}
.post-content blockquote{border-left:4px solid #6bb3d6;padding-left:16px;margin:20px 0;font-style:italic;color:#555;background:#f5f5f5;padding:12px 12px 12px 16px;border-radius:4px}
.post-content code{font-family:"SF Mono",Monaco,"Cascadia Code","Roboto Mono",Consolas,"Courier New",monospace;font-size:0.9em;background:#f5f5f5;color:#d73a49;padding:2px 6px;border-radius:4px}
.post-content pre{background:#2d2d2d;padding:16px;border-radius:8px;overflow-x:auto;margin:20px 0}
.post-content pre code{background:transparent;padding:0;color:#f8f8f2}
.post-content img{max-width:100%;height:auto;border-radius:8px;margin:20px 0}
.post-content img[style*="float:left"],.post-content img.img-left{float:left;margin:0 15px 10px 0;max-width:50%;clear:left}
.post-content img[style*="float:right"],.post-content img.img-right{float:right;margin:0 0 10px 15px;max-width:50%;clear:right}
.post-content img[style*="float:none"],.post-content img.img-center{float:none;display:block;margin:20px auto;max-width:100%;clear:both}
.post-content table{width:100%;border-collapse:collapse;margin:20px 0;border:1px solid #ddd}
.post-content table th,.post-content table td{padding:12px;border:1px solid #ddd;color:#333}
.post-content table th{background:#f5f5f5;font-weight:600;color:#1a1a1a}
.post-content,.post-content *{color:#333 !important}
.post-content a{color:#0066cc !important;text-decoration:underline}
.post-content a:hover{color:#0052a3 !important}
.post-content strong{color:#1a1a1a !important}
/* Override for excerpts on home page - keep dark theme for cards */
.post-excerpt *[style*="background-color: white"],
.post-excerpt *[style*="background-color:#fff"],
.post-excerpt *[style*="background-color:#ffffff"],
.post-excerpt *[style*="background-color:White"],
.post-excerpt *[style*="background: white"],
.post-excerpt *[style*="background:#fff"],
.post-excerpt *[style*="background:#ffffff"],
.post-excerpt *[style*="background:White"],
.post-excerpt *[style*="background-color: rgb(255, 255, 255)"],
.post-excerpt *[style*="background: rgb(255, 255, 255)"]{background-color:transparent !important;background:transparent !important}
.post-excerpt *[style*="color: black"],
.post-excerpt *[style*="color:#000"],
.post-excerpt *[style*="color:#000000"],
.post-excerpt *[style*="color:Black"],
.post-excerpt *[style*="color: rgb(0, 0, 0)"]{color:var(--text) !important}
.btn{background:linear-gradient(180deg,rgba(107,179,214,.12),rgba(107,179,214,.05));color:var(--text);border:1px solid var(--accent-2);padding:8px 12px;border-radius:8px;cursor:pointer;display:inline-block;text-decoration:none}
.btn-secondary{border-color:var(--border);background:transparent}
.btn-danger{border-color:var(--danger);color:#f5d0d0}
.btn-small{padding:4px 8px;font-size:.9rem}
.form{display:flex;flex-direction:column;gap:12px}
.form .form-row{display:flex;flex-direction:column;gap:6px}
.form .row-inline{flex-direction:row;align-items:center;gap:12px}
label{font-weight:600}
input[type="text"],input[type="email"],input[type="password"],input[type="datetime-local"],textarea{background:var(--card);color:var(--text);border:1px solid var(--border);border-radius:8px;padding:10px 12px;outline:none}
input::placeholder,textarea::placeholder{color:var(--muted)}
.table{width:100%;border-collapse:collapse;border:1px solid var(--border);background:var(--card);border-radius:8px;overflow:hidden}
.table th,.table td{padding:10px;border-bottom:1px solid var(--border);text-align:left;vertical-align:top}
.table .actions{display:flex;gap:8px}
.auth-card{max-width:420px;margin:48px auto;background:var(--card);padding:18px;border:1px solid var(--border);border-radius:12px;box-shadow:0 8px 24px var(--shadow)}
.muted{color:var(--muted);font-size:.9rem}
.admin-layout{display:grid;grid-template-columns:220px 1fr;gap:16px}
.admin-sidebar{background:var(--card);border:1px solid var(--border);border-radius:10px;padding:12px}
.admin-sidebar ul{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:8px}
.admin-sidebar a{color:var(--text)}
.admin-content{background:var(--card);border:1px solid var(--border);border-radius:10px;padding:16px}
.header-row{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}
.stats{display:flex;gap:16px}
.stat{background:rgba(109,212,126,.06);border:1px solid rgba(109,212,126,.2);border-radius:10px;padding:12px 16px}
.stat-number{font-size:1.4rem;font-weight:800}
.stat-label{display:block;color:var(--muted);font-size:.9rem}
.comments{margin-top:48px;background:#ffffff;padding:32px;border-radius:12px;box-shadow:0 4px 16px rgba(0,0,0,0.15)}
.comments h2{color:#1a1a1a;margin-top:0}
.related-posts{margin-top:24px;padding:32px;background:#ffffff;border-radius:12px;box-shadow:0 4px 16px rgba(0,0,0,0.15)}
.related-posts h2{margin-bottom:24px;color:#0066cc;margin-top:0}
.related-posts-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:24px}
.comment-list{list-style:none;padding:0;margin:24px 0}
.comment{background:#f9f9f9;border:1px solid #e0e0e0;border-radius:8px;padding:16px;margin-bottom:16px}
.comment-meta{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px;padding-bottom:8px;border-bottom:1px solid #e0e0e0}
.comment-meta strong{color:#0066cc}
.comment-meta time{color:#666;font-size:.85rem}
.comment-content{color:#333;line-height:1.6}
.comment-content p{margin:8px 0;color:#333}
.comment-content a{color:#0066cc}
.comment-content code{background:#e8e8e8;color:#d73a49;padding:2px 6px;border-radius:4px;font-size:.9em}
.comment-form{background:#f9f9f9;padding:24px;border-radius:8px;border:1px solid #e0e0e0;margin-top:24px}
.comment-form h3{color:#1a1a1a;margin-top:0}

/* decorative header elements resembling tech/data vibe */
.site-header .pattern,.bar,.accent,.shadow,.glow,.grid,.dots{position:absolute;pointer-events:none}
.site-header .pattern{inset:auto 0 0 0;height:6px;background:linear-gradient(90deg,transparent,rgba(107,179,214,.35),transparent)}
.site-header .bar{inset:0 0 auto 0;height:2px;background:linear-gradient(90deg,transparent,rgba(109,212,126,.5),transparent)}
.site-header .accent{top:0;right:10%;width:120px;height:120px;background:radial-gradient(circle at 30% 30%,rgba(107,179,214,.18),transparent 60%)}
.site-header .shadow{bottom:-40px;left:50%;width:60%;height:80px;transform:translateX(-50%);filter:blur(40px);background:radial-gradient(ellipse at center,rgba(0,0,0,.25),transparent 70%)}
.site-header .glow{top:-40px;left:20%;width:160px;height:160px;background:radial-gradient(circle at center,rgba(109,212,126,.08),transparent 65%)}
.site-header .grid{top:0;left:0;right:0;height:100%;background-image:linear-gradient(rgba(255,255,255,.03) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.03) 1px,transparent 1px);background-size:30px 30px}
.site-header .dots{right:12px;bottom:6px;width:120px;height:40px;background-image:radial-gradient(rgba(255,255,255,.06) 1px,transparent 1px);background-size:8px 8px}


