/* Modern Premium Design System */
:root {
    --primary: #6366f1;
    --primary-hover: #4f46e5;
    --bg-dark: #0f172a;
    --bg-card: #1e293b;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --accent: #10b981;
    --glass: rgba(255, 255, 255, 0.03);
    --border: rgba(255, 255, 255, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

/* Header */
header {
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 1.5rem 5%;
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(to right, var(--primary), #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Layout Grid & Sidebar */
.main-wrapper {
    display: flex;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.content-area {
    flex: 3;
}

.sidebar {
    flex: 1;
    min-width: 300px;
}

.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.5rem;
}

/* Slider */
.hero-slider {
    width: 100%;
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 20px;
    position: relative;
}

.slide {
    height: 450px;
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    background: #1e293b;
    display: flex;
    align-items: flex-end;
}

.slide img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
}

.slide-content {
    position: relative;
    z-index: 10;
    padding: 3rem;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.9), transparent);
    width: 100%;
}

.slide-content h2 { font-size: 2.5rem; margin-bottom: 1rem; }

/* Sidebar Widget */
.widget {
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: 20px;
    margin-bottom: 2rem;
    border: 1px solid var(--border);
}

.widget-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid var(--border);
    color: var(--primary);
}

.widget-list { list-style: none; }
.widget-list li { margin-bottom: 1rem; }
.widget-list a { display: flex; gap: 10px; align-items: center; color: var(--text-secondary); font-size: 0.9rem; }
.widget-list a:hover { color: var(--primary); }

/* WordPress Compatibility */
.aligncenter { display: block; margin: 2rem auto; text-align: center; }
.alignleft { float: left; margin: 0 2rem 1rem 0; }
.alignright { float: right; margin: 0 0 1rem 2rem; }
.wp-block-image img { max-width: 100%; height: auto; border-radius: 12px; }
.wp-block-table table { width: 100%; border-collapse: collapse; margin: 2rem 0; }
.wp-block-table td { border: 1px solid var(--border); padding: 12px; }
.wp-block-heading { color: #fff; margin: 2.5rem 0 1rem; }
blockquote { border-left: 4px solid var(--primary); padding-left: 2rem; margin: 2rem 0; font-style: italic; color: var(--text-primary); }

/* Footer */
footer {
    padding: 4rem 5%;
    background: #0b1120;
    border-top: 1px solid var(--border);
    text-align: center;
    color: var(--text-secondary);
}

@media (max-width: 1024px) {
    .main-wrapper { flex-direction: column; }
    .sidebar { width: 100%; }
    .slide-content h2 { font-size: 1.8rem; }
}

@media (max-width: 768px) {
    .single-post-header h1 { font-size: 2rem; }
    .post-grid { grid-template-columns: 1fr; }
    .slide { height: 300px; }
    .slide-content { padding: 1.5rem; }
}
