/*
Theme Name: Traffic Blog Theme
Author: Vivek
Version: 1.0
*/

:root {
    --primary: #2563eb;
    --dark: #0f172a;
    --light: #f8fafc;
    --gray: #64748b;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Segoe UI', system-ui, sans-serif;
    background: var(--light);
    color: var(--dark);
    line-height: 1.7;
}

/* LINKS */
a {
    color: var(--primary);
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}

/* HEADER */
.site-header {
    background: #fff;
    padding: 18px 40px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-title {
    font-size: 22px;
    font-weight: 700;
}

.main-menu ul {
    list-style: none;
    display: flex;
    gap: 22px;
    margin: 0;
    padding: 0;
}

/* HERO */
.hero {
    background: linear-gradient(120deg, #2563eb, #1e40af);
    color: #fff;
    padding: 80px 20px;
    text-align: center;
}
.hero h1 {
    font-size: 42px;
    margin-bottom: 10px;
}
.hero p {
    opacity: 0.9;
}

/* LAYOUT */
.container {
    max-width: 1100px;
    margin: 40px auto;
    padding: 0 20px;
}

.layout {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 30px;
}

/* POSTS */
.post {
    background: #fff;
    padding: 26px;
    border-radius: 14px;
    margin-bottom: 28px;
    box-shadow: 0 15px 40px rgba(0,0,0,.05);
    transition: transform .3s, box-shadow .3s;
}

.post:hover {
    transform: translateY(-6px);
    box-shadow: 0 25px 60px rgba(0,0,0,.08);
}

.post h2 {
    margin-top: 0;
}

.post-meta {
    font-size: 14px;
    color: var(--gray);
}

/* SIDEBAR */
.sidebar {
    background: #fff;
    padding: 22px;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0,0,0,.05);
}

.widget h3 {
    margin-top: 0;
    font-size: 18px;
}

/* SINGLE POST */
.single-post {
    background: #fff;
    padding: 35px;
    border-radius: 14px;
    box-shadow: 0 15px 40px rgba(0,0,0,.06);
}

/* FOOTER */
.site-footer {
    background: var(--dark);
    color: #fff;
    text-align: center;
    padding: 25px;
    margin-top: 60px;
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .layout {
        grid-template-columns: 1fr;
    }
    .site-header {
        flex-direction: column;
        gap: 10px;
    }
}
