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

body {
    font-family: 'Georgia', serif;
    line-height: 1.6;
    color: #333;
    background-color: #fefefe;
}

a {
    color: #2c5aa0;
    text-decoration: none;
}

a:hover {
    color: #1a4480;
    text-decoration: underline;
}

/* Container */
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    text-align: center;
}

header h1 a {
    color: white;
    text-decoration: none;
}

header nav {
    text-align: center;
    margin-top: 1rem;
}

header nav a {
    color: white;
    margin: 0 1rem;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: background 0.3s;
    font-weight: 500;
}

header nav a:hover {
    background: rgba(255,255,255,0.2);
    text-decoration: none;
}

/* Main Content */
main {
    padding: 2rem 0;
    min-height: 60vh;
}

/* Home Page */
.intro {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem;
    background: linear-gradient(135deg, #ffeaa7 0%, #fab1a0 100%);
    border-radius: 10px;
    color: #2d3436;
}

.intro h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #2d3436;
}

.intro p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Post Grid */
.posts-grid {
    display: grid;
    gap: 2rem;
    margin-bottom: 3rem;
}

.post-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.post-card-content {
    padding: 1.5rem;
}

.post-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #2d3436;
}

.post-card h3 a {
    color: #2d3436;
}

.post-card time {
    color: #636e72;
    font-style: italic;
    display: block;
    margin-bottom: 1rem;
}

.post-card p {
    color: #2d3436;
    line-height: 1.6;
}

/* Single Post */
article {
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    padding: 2rem;
    margin-bottom: 2rem;
}

article h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #2d3436;
    text-align: center;
}

article time {
    display: block;
    text-align: center;
    color: #636e72;
    font-style: italic;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

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

article .content h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #2d3436;
}

article .content h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    color: #2d3436;
}

article .content p {
    margin-bottom: 1rem;
}

article .content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Tags */
.tags {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.tags strong {
    color: #636e72;
    margin-right: 0.5rem;
}

.tags a {
    background: #74b9ff;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    margin-right: 0.5rem;
    font-size: 0.9rem;
    display: inline-block;
    margin-bottom: 0.5rem;
}

.tags a:hover {
    background: #0984e3;
    text-decoration: none;
}

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

.post-tags .tag {
    background: #e17055;
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.8rem;
    margin-right: 0.5rem;
    display: inline-block;
}

/* Post Navigation */
.post-navigation {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    margin-top: 2rem;
    text-align: center;
}

.post-navigation h3 {
    margin-bottom: 1rem;
    color: #2d3436;
}

.post-navigation a {
    color: #2c5aa0;
    font-size: 1.1rem;
}

.post-navigation a:hover {
    color: #1a4480;
}

/* Landing Page */
.landing-page {
    padding: 0;
}

.hero-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 3rem 0;
}

.hero-image {
    margin-bottom: 2rem;
    max-width: 100%;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    max-height: 400px;
    object-fit: cover;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #2d3436;
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    max-width: 600px;
    color: #636e72;
    line-height: 1.6;
}

.cta-section {
    margin-top: 2rem;
}

.cta-button {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1rem 2rem;
    border-radius: 25px;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 600;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    text-decoration: none;
    color: white;
}

/* List Page */
.list-page {
    padding: 2rem 0;
}

.page-header {
    text-align: center;
    margin-bottom: 3rem;
}

.page-header h1 {
    font-size: 2.5rem;
    color: #2d3436;
    margin-bottom: 1rem;
}

.page-description {
    font-size: 1.1rem;
    color: #636e72;
    max-width: 600px;
    margin: 0 auto;
}

.no-posts {
    text-align: center;
    padding: 3rem 0;
    color: #636e72;
    font-size: 1.1rem;
}

/* Footer */
footer {
    background: #2d3436;
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: 3rem;
}

footer a {
    color: #74b9ff;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
    }
    
    .cta-button {
        padding: 0.8rem 1.5rem;
        font-size: 1.1rem;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    article {
        padding: 1.5rem;
    }
    
    article h1 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.8rem;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .cta-button {
        padding: 0.7rem 1.2rem;
        font-size: 1rem;
    }
    
    .page-header h1 {
        font-size: 1.8rem;
    }
    
    article {
        padding: 1rem;
    }
    
    article h1 {
        font-size: 1.8rem;
    }
}