/* Yakko.org Website Styles */

:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #FF9900;
    --text-color: #333;
    --bg-color: #ffffff;
    --light-bg: #f8f9fa;
    --border-color: #e0e0e0;
    --shadow: 0 2px 8px rgba(0,0,0,0.1);
    --shadow-hover: 0 4px 16px rgba(0,0,0,0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: var(--bg-color);
}

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

/* Header */
.site-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 40px 0;
    text-align: center;
    box-shadow: var(--shadow);
}

.site-title {
    font-size: 2.5em;
    margin-bottom: 10px;
    font-weight: 700;
}

.site-title a {
    color: white;
    text-decoration: none;
}

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

.site-tagline {
    font-size: 1.2em;
    opacity: 0.95;
    font-weight: 300;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 60px 20px;
    background: var(--light-bg);
    margin: 40px 0;
    border-radius: 8px;
}

.hero h2 {
    font-size: 2.5em;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2em;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* Posts Grid */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    padding: 40px 0;
}

.post-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.post-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.post-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: var(--light-bg);
}

.post-image-placeholder {
    width: 100%;
    height: 200px;
    background: var(--light-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4em;
}

.post-content {
    padding: 20px;
}

.post-title {
    font-size: 1.3em;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-weight: 600;
}

.post-excerpt {
    color: #666;
    margin-bottom: 15px;
    line-height: 1.5;
}

.post-date {
    color: #999;
    font-size: 0.9em;
    display: block;
}

.no-posts {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #999;
    font-size: 1.1em;
}

/* Footer */
.site-footer {
    background: var(--primary-color);
    color: white;
    padding: 40px 0;
    margin-top: 60px;
    text-align: center;
}

.site-footer p {
    margin: 10px 0;
}

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

/* Blog Post Styles */
article h1 {
    font-size: 2.5em;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.post-meta {
    color: #666;
    font-size: 0.95em;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

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

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

.content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 30px 0;
}

/* Affiliate Link Button */
.affiliate-link-box {
    margin: 40px 0;
    padding: 30px;
    background: linear-gradient(135deg, #fff5e6, #ffe6cc);
    border-radius: 8px;
    border: 2px solid var(--accent-color);
    text-align: center;
}

.affiliate-link-box h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.5em;
}

.affiliate-button {
    display: inline-block;
    padding: 15px 40px;
    background: var(--accent-color);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    font-size: 1.1em;
    transition: background 0.3s ease;
}

.affiliate-button:hover {
    background: #e68900;
}

/* Responsive */
@media (max-width: 768px) {
    .site-title {
        font-size: 2em;
    }
    
    .hero h2 {
        font-size: 2em;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    article h1 {
        font-size: 2em;
    }
}
