/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --text-color: #333;
    --text-light: #666;
    --bg-color: #ffffff;
    --bg-light: #f8f9fa;
    --bg-gray: #ecf0f1;
    --border-color: #ddd;
    --shadow: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-lg: 0 4px 6px rgba(0,0,0,0.1);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-light);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--accent-color);
}

/* Header Banner */
.site-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, #34495e 100%);
    color: white;
    box-shadow: var(--shadow-lg);
    position: relative;
}

.header-banner {
    padding: 3rem 0 2rem;
    border-bottom: 3px solid var(--secondary-color);
    background-image: url('../images/cropped-2011-08-13-19.09.45-3.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.header-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(44, 62, 80, 0.75);
    z-index: 1;
}

.header-banner .container {
    position: relative;
    z-index: 2;
}

.site-branding {
    text-align: center;
}

.site-title {
    font-size: 2.8rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
    letter-spacing: -1px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.site-title a {
    color: white;
    text-decoration: none;
    transition: opacity 0.2s;
}

.site-title a:hover {
    opacity: 0.9;
    color: white;
}

.site-tagline {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    font-weight: 300;
    margin: 0;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

/* Navigation Menu */
.main-nav {
    background-color: rgba(0, 0, 0, 0.1);
}

.nav-menu {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0;
    padding: 0;
    margin: 0;
}

.nav-menu li {
    margin: 0;
}

.nav-menu a {
    display: block;
    color: white;
    padding: 1rem 1.5rem;
    font-weight: 500;
    transition: background-color 0.2s;
    border-bottom: 3px solid transparent;
}

.nav-menu a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-bottom-color: var(--secondary-color);
    color: white;
}

/* Main Content Area */
.site-content {
    padding: 3rem 0;
    min-height: 60vh;
}

.content-wrapper {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 3rem;
}

/* Main Content (Left Column) */
.main-content {
    background-color: var(--bg-color);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

/* Sidebar (Right Column) */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.widget {
    background-color: var(--bg-color);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.widget-title {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--secondary-color);
}

/* Archive Widget */
.archive-list,
.category-list {
    list-style: none;
}

.archive-list li,
.category-list li {
    margin-bottom: 0.5rem;
}

.archive-list a,
.category-list a {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.archive-list a:hover,
.category-list a:hover {
    background-color: var(--bg-light);
}

.count {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Tags Widget */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    background-color: var(--bg-gray);
    border-radius: 20px;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.tag:hover {
    background-color: var(--secondary-color);
    color: white;
}

.tag .count {
    font-size: 0.8rem;
}

/* Posts List */
.posts-list h2 {
    color: var(--primary-color);
    margin-bottom: 2rem;
    font-size: 2rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid var(--secondary-color);
}

/* Archive Header (Category/Tag pages) */
.archive-header {
    margin-bottom: 3rem;
    padding-bottom: 1.5rem;
    border-bottom: 3px solid var(--secondary-color);
}

.archive-header h1 {
    color: var(--primary-color);
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
}

.archive-header .category-description,
.archive-header .post-count {
    color: var(--text-light);
    margin: 0.5rem 0;
}

.post-summary {
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.post-summary:last-child {
    border-bottom: none;
}

.post-title {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.post-title a {
    color: var(--primary-color);
}

.post-meta {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.post-excerpt {
    margin-bottom: 1rem;
    line-height: 1.7;
}

.read-more {
    display: inline-block;
    padding: 0.5rem 1.2rem;
    background-color: var(--secondary-color);
    color: white;
    border-radius: 4px;
    font-weight: 500;
    transition: background-color 0.2s;
}

.read-more:hover {
    background-color: var(--accent-color);
    color: white;
}

/* Individual Post */
.post-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}

.post-header .post-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.post-content {
    font-size: 1.05rem;
    line-height: 1.8;
}

.post-content h1,
.post-content h2,
.post-content h3 {
    color: var(--primary-color);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.post-content h1 {
    font-size: 2rem;
}

.post-content h2 {
    font-size: 1.6rem;
}

.post-content h3 {
    font-size: 1.3rem;
}

.post-content p {
    margin-bottom: 1.5rem;
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin: 1.5rem 0;
}

.post-content ul,
.post-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.post-content li {
    margin-bottom: 0.5rem;
}

.post-content blockquote {
    border-left: 4px solid var(--secondary-color);
    padding-left: 1.5rem;
    margin: 1.5rem 0;
    color: var(--text-light);
    font-style: italic;
}

.post-content code {
    background-color: var(--bg-gray);
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    font-size: 0.9em;
}

.post-content pre {
    background-color: var(--primary-color);
    color: white;
    padding: 1rem;
    border-radius: 4px;
    overflow-x: auto;
    margin: 1.5rem 0;
}

.post-content pre code {
    background: none;
    padding: 0;
}

/* Pages */
.page-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}

.page-header .page-title {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin: 0;
}

.page-content {
    font-size: 1.05rem;
    line-height: 1.8;
}

.page-content h1,
.page-content h2,
.page-content h3 {
    color: var(--primary-color);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.page-content h1 {
    font-size: 2rem;
}

.page-content h2 {
    font-size: 1.6rem;
}

.page-content h3 {
    font-size: 1.3rem;
}

.page-content p {
    margin-bottom: 1.5rem;
}

.page-content img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin: 1.5rem 0;
}

.page-content ul,
.page-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.page-content li {
    margin-bottom: 0.5rem;
}

.page-navigation {
    margin-top: 2rem;
    padding-top: 1.5rem;
    text-align: center;
}

.page-navigation .back-home {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background-color: var(--bg-gray);
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.2s;
}

.page-navigation .back-home:hover {
    background-color: var(--secondary-color);
    color: white;
}

/* Post Categories and Tags */
.post-categories,
.post-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    align-items: center;
}

.post-categories a,
.post-tags a {
    padding: 0.3rem 0.8rem;
    background-color: var(--bg-gray);
    border-radius: 4px;
    font-size: 0.9rem;
}

.post-categories a:hover,
.post-tags a:hover {
    background-color: var(--secondary-color);
    color: white;
}

/* Post Footer */
.post-footer {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid var(--border-color);
}

/* Post Navigation */
.post-navigation {
    margin-top: 2rem;
    padding-top: 1.5rem;
    text-align: center;
}

.post-navigation .back-home {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background-color: var(--bg-gray);
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.2s;
}

.post-navigation .back-home:hover {
    background-color: var(--secondary-color);
    color: white;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.pagination a,
.pagination span {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    transition: all 0.2s;
}

.pagination a:hover {
    background-color: var(--secondary-color);
    color: white;
    border-color: var(--secondary-color);
}

.pagination .current {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Footer */
.site-footer {
    background: linear-gradient(135deg, var(--primary-color) 0%, #34495e 100%);
    color: white;
    padding: 2rem 0;
    margin-top: 4rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-info p {
    margin: 0.25rem 0;
    font-size: 0.9rem;
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    color: white;
    font-weight: 500;
    transition: opacity 0.2s;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.footer-links a:hover {
    opacity: 0.8;
    color: white;
}

/* Responsive Design */
@media (max-width: 968px) {
    .content-wrapper {
        grid-template-columns: 1fr;
    }
    
    .main-content {
        padding: 1.5rem;
    }
}

@media (max-width: 768px) {
    .site-title {
        font-size: 2rem;
    }
    
    .site-tagline {
        font-size: 1rem;
    }
    
    .nav-menu {
        flex-direction: column;
    }
    
    .nav-menu a {
        text-align: center;
    }
    
    .post-header .post-title {
        font-size: 1.8rem;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.post-title a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s;
}

.post-title a:hover {
    color: var(--secondary-color);
}

.post-meta {
    color: #7f8c8d;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.post-meta span {
    margin-right: 1rem;
}

.post-meta a {
    color: #7f8c8d;
    text-decoration: none;
}

.post-meta a:hover {
    color: var(--secondary-color);
}

.post-excerpt {
    margin-bottom: 1rem;
    line-height: 1.8;
}

.read-more {
    color: var(--link-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.read-more:hover {
    color: var(--link-hover);
}

.post-tags {
    margin-top: 1rem;
    font-size: 0.9rem;
}

.tag {
    display: inline-block;
    background-color: var(--light-gray);
    color: var(--text-color);
    padding: 0.2rem 0.6rem;
    margin-right: 0.5rem;
    border-radius: 3px;
    text-decoration: none;
    font-size: 0.85rem;
    transition: background-color 0.2s;
}

.tag:hover {
    background-color: var(--border-color);
}

/* Single Post */
.post {
    max-width: 800px;
}

.post-header {
    margin-bottom: 2rem;
}

.post-header .post-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.post-categories {
    margin-top: 0.5rem;
    font-size: 0.95rem;
}

.post-categories a {
    color: var(--link-color);
    text-decoration: none;
}

.post-categories a:hover {
    text-decoration: underline;
}

.post-content {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.post-content h2,
.post-content h3,
.post-content h4 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.post-content h2 {
    font-size: 1.8rem;
}

.post-content h3 {
    font-size: 1.5rem;
}

.post-content p {
    margin-bottom: 1.5rem;
}

.post-content img {
    max-width: 100%;
    height: auto;
    margin: 2rem 0;
}

.post-content a {
    color: var(--link-color);
    text-decoration: none;
    border-bottom: 1px solid var(--link-color);
}

.post-content a:hover {
    color: var(--link-hover);
    border-bottom-color: var(--link-hover);
}

.post-content ul,
.post-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.post-content li {
    margin-bottom: 0.5rem;
}

.post-content blockquote {
    border-left: 4px solid var(--secondary-color);
    padding-left: 1.5rem;
    margin: 2rem 0;
    color: #555;
    font-style: italic;
}

.post-content code {
    background-color: var(--light-gray);
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    font-family: "Monaco", "Courier New", monospace;
    font-size: 0.9em;
}

.post-content pre {
    background-color: var(--light-gray);
    padding: 1.5rem;
    border-radius: 5px;
    overflow-x: auto;
    margin-bottom: 1.5rem;
}

.post-content pre code {
    background-color: transparent;
    padding: 0;
}

.post-footer {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

/* Page */
.page {
    max-width: 800px;
}

.page-header {
    margin-bottom: 2rem;
}

.page-title {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.page-content {
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Archive Pages */
.archive-header {
    margin-bottom: 3rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--primary-color);
}

.archive-header h1 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.category-description {
    color: #7f8c8d;
    margin: 0.5rem 0;
}

.post-count {
    color: #7f8c8d;
    font-size: 0.9rem;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 3rem 0;
    padding: 1rem 0;
    border-top: 1px solid var(--border-color);
}

.pagination a {
    color: var(--link-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.pagination a:hover {
    color: var(--link-hover);
}

.page-number {
    color: #7f8c8d;
}

/* Navigation */
.post-navigation,
.page-navigation,
.archive-navigation {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.back-home {
    color: var(--link-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.back-home:hover {
    color: var(--link-hover);
}

/* Responsive Design */
@media (max-width: 768px) {
    .site-title {
        font-size: 2rem;
    }

    .post-title {
        font-size: 1.5rem;
    }

    .post-header .post-title {
        font-size: 2rem;
    }

    .main-nav ul {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .pagination {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .post-content,
    .page-content {
        font-size: 1rem;
    }
}
