/* styles-blog.css
Clean, minimalist blog styles tuned to eventcast.se look & feel.
Responsive, accessible, and easily customizable.
*/

/* Basic reset */
* { box-sizing: border-box; margin: 0; padding: 0; }
html,body { height: 100%; }
body {
font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
line-height: 1.55;
color: #111;
background: linear-gradient(180deg, #e7e4ec 0%, #ac96da 45%, #d4c7dd 100%);
-webkit-font-smoothing:antialiased;
-moz-osx-font-smoothing:grayscale;
font-size: 16px;
}

/* Utility */
.container { max-width: 1100px; margin: 0 auto; padding: 28px; }
.row { display:flex; gap:28px; align-items:flex-start; }

/* Header (matches EVENT CAST look) */
.site-header {
border-bottom: 1px solid rgba(0,0,0,0.06);
padding: 22px 0;
margin-bottom: 26px;
}
.site-brand {
font-weight: 700;
letter-spacing: 2px;
font-size: 20px;
text-transform: uppercase;
color: #050b13; /* deep navy */
text-decoration: none;
}
.site-nav {
margin-top: 8px;
display:flex;
gap: 18px;
flex-wrap:wrap;
}
.site-nav a {
color: #02060a;
text-decoration:none;
font-weight:600;
font-size:14px;
opacity:0.9;
}
.header-top { display:flex; justify-content:space-between; align-items:center; gap:16px; flex-wrap:wrap; }

/* Blog hero */
.blog-hero {
margin: 18px 0 32px;
padding: 28px;
background: linear-gradient(180deg, rgba(32, 121, 216, 0.03), rgba(11,37,64,0.01));
border-radius: 10px;
}
.blog-hero h1 {
font-size: 34px;
margin-bottom: 8px;
color: #081830;
}
.blog-hero p { color: #070a0e; opacity: 0.9; }

/* Grid of posts */
.posts-grid {
display:grid;
grid-template-columns: repeat(3, 1fr);
gap: 20px;
align-items: start;
}
.post-card {
border: 1px solid rgba(11,37,64,0.06);
border-radius: 10px;
overflow: hidden;
background: #e1b2ec;
display:flex;
flex-direction:column;
min-height: 260px;
transition: transform .18s ease, box-shadow .18s ease;
}
.post-card:hover { transform: translateY(-6px); box-shadow: 0 8px 30px rgba(11,37,64,0.06); }
.post-thumb { width:100%; height:160px; object-fit:cover; display:block; }
.post-body { padding: 16px; flex:1; display:flex; flex-direction:column; }
.post-meta { font-size:13px; color:rgb(12, 12, 19); margin-bottom:8px; }
.post-title { font-size:18px; font-weight:700; margin-bottom:10px; color:#05080a; text-decoration:none; }
.post-excerpt { color:#0e1214; opacity:0.9; margin-top:auto; font-size:14px; }

/* Sidebar */
.sidebar {
width: 290px;
margin-left: auto;
}
.widget {
border:1px solid rgba(11,37,64,0.06);
padding:14px;
margin-bottom:18px;
border-radius:8px;
background:#e482ec;
}
.widget h4 { font-size:14px; margin-bottom:10px; color:#0b2540; }

/* Post page */
.post-article { max-width:780px; margin: 0 auto; }
.featured-image { width:100%; height:380px; object-fit:cover; border-radius:10px; margin-bottom:18px; }
.post-title-page { font-size:34px; color:#081830; margin-bottom:10px; }
.post-meta-row { color:rgb(4, 4, 14); font-size:13px; margin-bottom:20px; display:flex; gap:12px; align-items:center; }

/* Post content */
.post-content h2 { font-size:22px; margin-top:18px; margin-bottom:10px; color:#0b2540; }
.post-content p { margin-bottom:14px; color:#222; font-size:16px; }
.post-content ul { padding-left:18px; margin-bottom:14px; }
blockquote {
border-left:4px solid rgba(11,37,64,0.12);
padding-left:12px;
color:#2b3840;
font-style:italic;
}

/* CTA box */
.cta-box {
border-radius:10px;
padding:18px;
background: linear-gradient(90deg, rgba(0,115,230,0.08), rgba(11,37,64,0.03));
margin-top:26px;
display:flex;
justify-content:space-between;
align-items:center;
gap:12px;
}
.cta-box .btn {
background: #0073e6;
color: #ee43e0;
padding:10px 16px;
border-radius:8px;
text-decoration:none;
font-weight:700;
display:inline-block;
}

/* Related posts */
.related-list { display:grid; gap:10px; grid-template-columns:1fr; margin-top:22px; }
.related-item a { text-decoration:none; color:#0b2540; font-weight:600; }

/* Footer */
.site-footer { border-top:1px solid rgba(0,0,0,0.06); padding:20px 0; margin-top:32px; color:rgb(3, 3, 24); font-size:14px; }
.site-footer a { color:inherit; text-decoration:none; }

/* Responsive */
@media (max-width: 980px) {
.posts-grid { grid-template-columns: repeat(2, 1fr); }
.sidebar { width: 240px; }
}
@media (max-width: 720px) {
.container { padding:16px; }
.posts-grid { grid-template-columns: 1fr; }
.row { flex-direction:column; }
.header-top { flex-direction:column; align-items:flex-start; gap:10px; }
.site-nav { margin-top:6px; }
.sidebar { width:100%; margin-left:0; }
.featured-image { height:220px; }
}
