/* ===== BASIC RESET ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f9f9f9;
}

/* ===== CONTAINER ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    gap: 40px;
}

/* ===== HEADER ===== */
.site-header {
    background: white;
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.site-branding h1 {
    font-size: 28px;
    margin-bottom: 5px;
}

.site-branding h1 a {
    text-decoration: none;
    color: #333;
}

.site-branding p {
    color: #666;
    font-size: 14px;
}

/* ===== NAVIGATION ===== */
.main-nav ul {
    display: flex;
    list-style: none;
    gap: 25px;
}

.main-nav a {
    text-decoration: none;
    color: #555;
    font-weight: 500;
    padding: 5px 0;
    position: relative;
}

.main-nav a:hover {
    color: #2563eb;
}

.main-nav a:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #2563eb;
    transition: width 0.3s;
}

.main-nav a:hover:after {
    width: 100%;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    padding: 5px 10px;
}

/* ===== MAIN CONTENT ===== */
.main-content {
    flex: 1;
}

.sidebar {
    width: 300px;
}

/* ===== POSTS ===== */
.post {
    background: white;
    padding: 30px;
    margin-bottom: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.post:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.post h2 {
    font-size: 24px;
    margin-bottom: 10px;
}

.post h2 a {
    text-decoration: none;
    color: #222;
}

.post h2 a:hover {
    color: #2563eb;
}

.post-meta {
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

/* ===== SINGLE POST ===== */
.single-post {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.single-post h1 {
    font-size: 36px;
    margin-bottom: 15px;
    color: #222;
}

.featured-image {
    margin: 30px 0;
}

.featured-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.post-content {
    font-size: 18px;
    line-height: 1.8;
    color: #444;
}

.post-content p {
    margin-bottom: 20px;
}

.post-content h2 {
    font-size: 28px;
    margin: 30px 0 15px;
    color: #333;
}

.post-content h3 {
    font-size: 22px;
    margin: 25px 0 15px;
}

/* ===== COMMENTS ===== */
.comments-area {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

.comment-list {
    list-style: none;
}

.comment {
    background: #f9f9f9;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
}

.comment-author {
    font-weight: bold;
    color: #333;
}

.comment-meta {
    font-size: 12px;
    color: #777;
    margin-bottom: 10px;
}

/* ===== WIDGETS ===== */
.widget {
    background: white;
    padding: 20px;
    margin-bottom: 25px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}

.widget-title {
    font-size: 18px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #2563eb;
}

.widget ul {
    list-style: none;
}

.widget li {
    padding: 8px 0;
    border-bottom: 1px dashed #eee;
}

.widget li:last-child {
    border-bottom: none;
}

.widget a {
    text-decoration: none;
    color: #555;
}

.widget a:hover {
    color: #2563eb;
    padding-left: 5px;
    transition: all 0.3s;
}

/* ===== PAGINATION ===== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 40px 0;
}

.pagination a {
    padding: 10px 20px;
    background: white;
    color: #2563eb;
    text-decoration: none;
    border-radius: 5px;
    border: 2px solid #2563eb;
    transition: all 0.3s;
}

.pagination a:hover {
    background: #2563eb;
    color: white;
}

/* ===== FOOTER ===== */
.site-footer {
    background: #222;
    color: white;
    padding: 40px 0;
    margin-top: 60px;
}

.site-footer .container {
    justify-content: space-between;
    align-items: center;
}

.site-footer a {
    color: #ddd;
    text-decoration: none;
}

.site-footer a:hover {
    color: white;
    text-decoration: underline;
}

/* ===== ERROR 404 ===== */
.error-404 {
    text-align: center;
    padding: 100px 20px;
}

.error-404 h1 {
    font-size: 48px;
    margin-bottom: 20px;
    color: #dc2626;
}

.error-404 p {
    font-size: 20px;
    margin-bottom: 30px;
    color: #666;
}

.error-404 .button {
    display: inline-block;
    padding: 12px 30px;
    background: #2563eb;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
}

.error-404 .button:hover {
    background: #1d4ed8;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
        gap: 30px;
    }
    
    .sidebar {
        width: 100%;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        padding: 20px;
        box-shadow: 0 10px 15px rgba(0,0,0,0.1);
    }
    
    .main-nav.active {
        display: block;
    }
    
    .main-nav ul {
        flex-direction: column;
        gap: 15px;
    }
    
    .post {
        padding: 20px;
    }
    
    .single-post {
        padding: 20px;
    }
    
    .single-post h1 {
        font-size: 28px;
    }
    
    .post-content {
        font-size: 16px;
    }
}

/* ===== UTILITY CLASSES ===== */
.text-center { text-align: center; }
.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }
.p-20 { padding: 20px; }
.hidden { display: none; }