:root {
    --primary-color: #27ae60;
    --primary-light: #2ecc71;
    --primary-lighter: #82e0aa;
    --primary-lightest: #d5f4e6;
    --text-color: #2c3e50;
    --text-muted: #7f8c8d;
    --white: #ffffff;
    --light-gray: #f8f9fa;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Source Sans Pro', system-ui, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
}

/* Display Typography */
h1, h2 {
    font-family: 'Oswald', sans-serif;
    font-weight: 500;
    letter-spacing: -0.02em;
}

h3, h4, h5, h6 {
    font-family: 'Source Sans Pro', sans-serif;
    font-weight: 600;
}

/* Swiss Grid System */
.swiss-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Fade Animation */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--white);
    box-shadow: 0 2px 12px rgba(39, 174, 96, 0.1);
    padding: 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 24px;
}

.site-logo a {
    font-family: 'Oswald', sans-serif;
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.site-logo a:hover {
    color: var(--primary-light);
}

/* Burger Menu */
.burger-menu {
    background: transparent;
    border: none;
    padding: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.burger-menu:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(39, 174, 96, 0.15);
}

.burger-line {
    width: 24px;
    height: 2px;
    background: var(--primary-color);
    margin: 4px 0;
    transition: 0.3s;
    border-radius: 2px;
}

/* Navigation Sidebar */
.nav-sidebar {
    position: fixed;
    top: 0;
    left: -300px;
    width: 300px;
    height: 100vh;
    background: var(--primary-lightest);
    z-index: 999;
    transition: left 0.3s ease;
    padding: 80px 32px 32px;
}

.nav-sidebar.active {
    left: 0;
}

.nav-sidebar a {
    display: block;
    color: var(--text-color);
    text-decoration: none;
    padding: 16px 0;
    border-bottom: 1px solid rgba(39, 174, 96, 0.1);
    font-weight: 400;
    transition: color 0.3s ease;
}

.nav-sidebar a:hover {
    color: var(--primary-color);
}

/* Homepage Styles */
.homepage {
    padding-top: 80px; /* Account for fixed header */
}

/* Hero Section with Latest Post */
.hero-section {
    padding: 60px 24px;
    background: linear-gradient(135deg, var(--primary-lightest) 0%, var(--white) 100%);
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(39, 174, 96, 0.1);
    transition: transform 0.3s ease;
}

.hero-image img:hover {
    transform: translateY(-4px);
}

.hero-text h1 {
    font-family: 'Oswald', sans-serif;
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    font-weight: 500;
    line-height: 1.2;
}

.hero-text h1 a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.hero-text h1 a:hover {
    color: var(--primary-light);
}

.hero-text p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 30px;
    line-height: 1.6;
}

/* Organized Mosaic Layout */
.mosaic-section {
    padding: 80px 0;
}

.mosaic-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.mosaic-item {
    background: var(--white);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(39, 174, 96, 0.05);
    transition: all 0.3s ease;
    border: 1px solid rgba(39, 174, 96, 0.1);
}

.mosaic-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(39, 174, 96, 0.12);
}

.mosaic-item.large {
    grid-column: span 2;
}

.mosaic-item.tall {
    grid-row: span 2;
}

/* Buttons */
.btn-primary-custom {
    background: var(--primary-color);
    border: none;
    color: var(--white);
    padding: 14px 32px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    font-family: 'Source Sans Pro', sans-serif;
}

.btn-primary-custom:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(39, 174, 96, 0.3);
    color: var(--white);
}

.btn-outline-custom {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    font-family: 'Source Sans Pro', sans-serif;
}

.btn-outline-custom:hover {
    background: var(--primary-color);
    color: var(--white);
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 16px;
    font-weight: 400;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* Stats Section */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 32px;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.stat-item {
    padding: 24px;
}

.stat-number {
    font-size: 3rem;
    font-weight: 300;
    color: var(--primary-color);
    font-family: 'Oswald', sans-serif;
}

.stat-label {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-top: 8px;
}

/* Feature Icon */
.feature-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 24px;
}

/* Footer */
.footer {
    background: var(--primary-lightest);
    padding: 80px 0 40px;
    margin-top: 80px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.footer-section h4 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-section a {
    color: var(--text-muted);
    text-decoration: none;
    display: block;
    margin-bottom: 8px;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid rgba(39, 174, 96, 0.1);
    color: var(--text-muted);
}

/* Subtle Parallax */
.parallax-bg {
    position: absolute;
    top: -10%;
    left: -10%;
    width: 120%;
    height: 120%;
    background: linear-gradient(45deg, var(--primary-lightest), transparent);
    z-index: 1;
    transition: transform 0.1s ease-out;
}

/* Random Posts Section */
.random-posts {
    padding: 80px 24px;
    background: var(--white);
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto 60px;
}

.post-card {
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(39, 174, 96, 0.05);
    transition: all 0.3s ease;
    border: 1px solid rgba(39, 174, 96, 0.1);
    overflow: hidden;
}

.post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(39, 174, 96, 0.12);
}

.post-thumbnail img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.post-card:hover .post-thumbnail img {
    transform: scale(1.05);
}

.post-content {
    padding: 20px;
}

.post-content h3 {
    font-size: 1.1rem;
    margin: 0;
    line-height: 1.4;
}

.post-content h3 a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-content h3 a:hover {
    color: var(--primary-color);
}

/* Blog Link */
.blog-link {
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
}

.no-posts {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 0;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    margin: 40px 0;
}

.page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin: 0 5px;
    border-radius: 8px;
    background: var(--white);
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 1px solid rgba(39, 174, 96, 0.1);
}

.page-numbers.current {
    background: var(--primary-color);
    color: var(--white);
}

.page-numbers:hover:not(.current) {
    background: var(--primary-lightest);
    color: var(--primary-color);
}

.next.page-numbers,
.prev.page-numbers {
    width: auto;
    padding: 0 15px;
}

/* Breadcrumbs */
.breadcrumbs {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 24px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.breadcrumbs a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumbs a:hover {
    color: var(--primary-light);
}

.breadcrumbs span {
    margin: 0 5px;
}

/* Single Post/Page Content */
.page-content {
    max-width: 800px;
    margin: 40px auto;
    padding: 40px;
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(39, 174, 96, 0.05);
}

.page-content h1 {
    color: var(--primary-color);
    margin-bottom: 20px;
    text-align: center;
}

.page-content .content {
    color: var(--text-color);
}

.page-content .content p {
    margin-bottom: 20px;
}

/* 404 Page */
.error-404 {
    text-align: center;
    padding: 60px 20px;
}

.error-404 h1 {
    font-size: 6rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.error-404 h2 {
    font-size: 2rem;
    margin-bottom: 30px;
}

.error-404 p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 30px;
}

/* Responsive */
@media (max-width: 768px) {
    .homepage {
        padding-top: 70px;
    }
    
    .header-container {
        padding: 12px 20px;
    }
    
    .site-logo a {
        font-size: 1.3rem;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .hero-text h1 {
        font-size: 2rem;
    }
    
    .hero-image img {
        height: 300px;
    }
    
    .posts-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }
    
    .random-posts {
        padding: 60px 20px;
    }

    .mosaic-item.large,
    .mosaic-item.tall {
        grid-column: span 1;
        grid-row: span 1;
    }

    .section-header h2 {
        font-size: 2rem;
    }
    
    .page-content {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 1.75rem;
    }
    
    .hero-section {
        padding: 40px 20px;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
    }
    
    .section-header h2 {
        font-size: 1.75rem;
    }
    
    .breadcrumbs {
        font-size: 0.8rem;
    }
    
    .footer-grid {
        gap: 30px;
    }
}