/* 
 * Gotochi Blog Styles
 * Version: 1.0
 */

/* Blog Page Header Override - Use green gradient instead of red */
body header {
    background: linear-gradient(135deg, #6c9a8b 0%, #f5f3ef 100%) !important;
    min-height: auto !important;
    padding: 1rem 0 !important;
}

/* Blog Hero Section */
.blog-hero {
    background: linear-gradient(135deg, #6c9a8b 0%, #f5f3ef 100%);
    color: white;
    padding: 4rem 0 3rem;
    text-align: center;
    min-height: 350px; /* Adjusted for blog hero */
    max-height: 60vh; /* Prevent excessive height */
}

.blog-hero-content h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.blog-hero-content p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
    opacity: 0.9;
}

/* Featured Post */
.featured-post {
    padding: 4rem 0;
    background-color: white;
}

.featured-article {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-top: 2rem;
}

.featured-image {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.featured-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.featured-article:hover .featured-image img {
    transform: scale(1.05);
}

.featured-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background-color: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 0.9rem;
}

.featured-content h3 {
    font-size: 2rem;
    margin: 1rem 0;
    line-height: 1.3;
}

.featured-content h3 a {
    color: var(--text-color);
    transition: color 0.3s ease;
}

.featured-content h3 a:hover {
    color: var(--primary-color);
}

.featured-content p {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

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

.post-meta .category {
    background-color: var(--secondary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-weight: 500;
}

.post-meta .date,
.post-meta .read-time {
    display: flex;
    align-items: center;
}

.read-more {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

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

/* Blog Categories */
.blog-categories {
    padding: 4rem 0;
    background-color: var(--light-color);
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.category-card {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--box-shadow);
    transition: all 0.3s ease;
    cursor: pointer;
}

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

.category-card.active {
    border: 2px solid var(--primary-color);
    transform: translateY(-5px);
}

.category-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.category-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.category-card p {
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.post-count {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--dark-color);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Recent Posts */
.recent-posts {
    padding: 4rem 0;
    background-color: white;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

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

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

.post-image {
    position: relative;
    overflow: hidden;
}

.post-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.post-card:hover .post-image img {
    transform: scale(1.05);
}

.post-content {
    padding: 1.5rem;
}

.post-content h3 {
    font-size: 1.2rem;
    margin: 0.5rem 0 1rem;
    line-height: 1.4;
}

.post-content h3 a {
    color: var(--text-color);
    transition: color 0.3s ease;
}

.post-content h3 a:hover {
    color: var(--primary-color);
}

.post-content p {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1rem;
}

/* Load More */
.load-more-container {
    text-align: center;
    margin-top: 3rem;
}

.load-more-btn {
    padding: 1rem 2rem;
    font-size: 1rem;
}

/* Newsletter Signup */
.newsletter-signup {
    background: linear-gradient(135deg, #6c9a8b 0%, #f5f3ef 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.newsletter-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.newsletter-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.newsletter-form .input-group {
    display: flex;
    max-width: 500px;
    margin: 0 auto 1rem;
    gap: 1rem;
}

.newsletter-form input {
    flex: 1;
    padding: 1rem;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
}

.newsletter-form button {
    padding: 1rem 2rem;
    white-space: nowrap;
}

.newsletter-note {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Navigation Active State */
.nav-links a.active {
    color: var(--accent-color);
    font-weight: 600;
}

.nav-links a.active:after {
    width: 100%;
}

/* Mobile Styles */
@media (max-width: 768px) {
    .blog-hero-content h1 {
        font-size: 2rem;
    }

    .blog-hero-content p {
        font-size: 1rem;
    }

    .featured-article {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

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

    .category-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .posts-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .post-meta {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .newsletter-content h2 {
        font-size: 2rem;
    }

    .newsletter-form .input-group {
        flex-direction: column;
        gap: 1rem;
    }

    .newsletter-form button {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .blog-hero {
        padding: 2rem 0;
    }

    .featured-post,
    .blog-categories,
    .recent-posts,
    .newsletter-signup {
        padding: 2rem 0;
    }

    .featured-content,
    .post-content {
        padding: 1rem;
    }

    .category-card {
        padding: 1.5rem;
    }
}

/* Blog Post Page Styles */
.blog-post-header {
    background: linear-gradient(135deg, #6c9a8b 0%, #f5f3ef 100%);
    color: white;
    padding: 3rem 0 2rem;
    min-height: 250px; /* Adjusted for blog post header */
    max-height: 50vh; /* Prevent excessive height */
}

.blog-post-meta {
    margin-bottom: 1rem;
}

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

.blog-post-excerpt {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 800px;
}

.blog-post-content {
    padding: 3rem 0;
    max-width: 800px;
    margin: 0 auto;
}

.blog-post-content img {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    margin: 2rem 0;
    box-shadow: var(--box-shadow);
}

.blog-post-content h2 {
    font-size: 2rem;
    margin: 2rem 0 1rem;
    color: var(--primary-color);
}

.blog-post-content h3 {
    font-size: 1.5rem;
    margin: 1.5rem 0 1rem;
    color: var(--secondary-color);
}

.blog-post-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

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

.blog-post-content li {
    margin-bottom: 0.5rem;
    line-height: 1.7;
}

/* Social Sharing */
.social-sharing {
    background-color: var(--light-color);
    padding: 2rem 0;
    text-align: center;
}

.social-sharing h3 {
    margin-bottom: 1rem;
    color: var(--text-color);
}

.social-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.social-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.social-btn.twitter {
    background-color: #1DA1F2;
    color: white;
}

.social-btn.facebook {
    background-color: #4267B2;
    color: white;
}

.social-btn.linkedin {
    background-color: #0077B5;
    color: white;
}

.social-btn.copy {
    background-color: var(--secondary-color);
    color: white;
}

.social-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Related Posts */
.related-posts {
    padding: 3rem 0;
    background-color: white;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

/* Back to Blog */
.back-to-blog {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 2rem;
    transition: color 0.3s ease;
}

.back-to-blog:hover {
    color: var(--dark-color);
} 