/* ==============================================
   HERE2HELP Blog Styles

   Extends main style.css with blog-specific styles
   Blog index, article pages, and related components
   ============================================== */

/* Blog Hero Section */
.blog-hero {
    padding-top: 120px;
    padding-bottom: 3rem;
    background: linear-gradient(135deg, var(--lighter-bg) 0%, var(--light-bg) 100%);
    border-bottom: 1px solid var(--border-light);
}

.blog-hero-content {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
    text-align: center;
}

.blog-hero h1 {
    font-size: 2.5rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.blog-hero p {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
    font-weight: 500;
}

/* Blog Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    max-width: var(--max-width);
    margin: 3rem auto;
    padding: 0 1.5rem;
}

/* Blog Card */
.blog-card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.blog-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(74, 173, 160, 0.15);
    border-color: var(--primary-light);
}

.blog-card-header {
    padding: 1.5rem;
    background: linear-gradient(135deg, var(--light-bg) 0%, rgba(93, 191, 179, 0.1) 100%);
    border-bottom: 2px solid var(--border-light);
}

.blog-card-tag {
    display: inline-block;
    background: var(--primary);
    color: var(--white);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.75rem;
}

.blog-card-title {
    font-size: 1.25rem;
    color: var(--text-dark);
    margin: 0;
    line-height: 1.3;
    font-weight: 700;
}

.blog-card-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-card-excerpt {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex: 1;
}

.blog-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-muted);
    padding-top: 1rem;
    border-top: 1px solid var(--border-light);
}

.blog-card-date {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.blog-card-readtime {
    background: var(--lighter-bg);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-weight: 500;
    color: var(--primary);
}

.blog-card a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    margin-top: 1rem;
    display: inline-block;
    transition: all 0.2s;
}

.blog-card a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Blog Pagination */
.blog-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin: 3rem 0;
    max-width: var(--max-width);
    margin-left: auto;
    margin-right: auto;
}

.blog-pagination a,
.blog-pagination button {
    padding: 0.5rem 0.8rem;
    border-radius: 6px;
    border: 1px solid var(--border-light);
    background: var(--white);
    color: var(--text-dark);
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 500;
    font-size: 0.9rem;
}

.blog-pagination a:hover,
.blog-pagination button:hover {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

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

/* Article Page Layout */
.article-container {
    max-width: 740px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.article-header {
    padding-top: 120px;
    padding-bottom: 3rem;
    border-bottom: 1px solid var(--border-light);
    margin-bottom: 2rem;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.article-meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.article-tag {
    display: inline-block;
    background: var(--primary);
    color: var(--white);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.article-title {
    font-size: 2rem;
    color: var(--text-dark);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.article-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    font-weight: 500;
    line-height: 1.6;
}

/* Article Content */
.article-content {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-dark);
}

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

.article-content h2 {
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
    font-weight: 700;
}

.article-content h3 {
    font-size: 1.25rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
    font-weight: 600;
}

.article-content ul,
.article-content ol {
    margin-bottom: 1.5rem;
    margin-left: 1.5rem;
}

.article-content li {
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.article-content a {
    color: var(--primary);
    text-decoration: underline;
    font-weight: 500;
}

.article-content a:hover {
    color: var(--primary-dark);
}

/* Breadcrumb Navigation */
.breadcrumb {
    max-width: 740px;
    margin: 0 auto;
    padding: 1.5rem;
    display: flex;
    gap: 0.5rem;
    align-items: center;
    font-size: 0.9rem;
}

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

.breadcrumb a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.breadcrumb span {
    color: var(--text-muted);
    margin: 0 0.5rem;
}

.breadcrumb .current {
    color: var(--text-dark);
    font-weight: 600;
}

/* Info Box (Teal-themed) */
.info-box {
    background: var(--light-bg);
    border-left: 4px solid var(--primary);
    padding: 1.25rem 1.5rem;
    border-radius: var(--border-radius);
    margin: 1.5rem 0;
}

.info-box h4 {
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 1.05rem;
}

.info-box p {
    color: var(--text-dark);
    margin: 0;
    line-height: 1.6;
}

.info-box ul {
    margin-left: 1.5rem;
    margin-top: 0.5rem;
    margin-bottom: 0;
}

.info-box li {
    color: var(--text-dark);
    margin-bottom: 0.4rem;
}

/* Tip Box (Warm accent-themed) */
.tip-box {
    background: linear-gradient(135deg, rgba(245, 158, 66, 0.08) 0%, rgba(245, 158, 66, 0.04) 100%);
    border-left: 4px solid var(--warm-accent);
    padding: 1.25rem 1.5rem;
    border-radius: var(--border-radius);
    margin: 1.5rem 0;
}

.tip-box h4 {
    color: #D67C1A;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 1.05rem;
}

.tip-box p {
    color: var(--text-dark);
    margin: 0;
    line-height: 1.6;
}

.tip-box ul {
    margin-left: 1.5rem;
    margin-top: 0.5rem;
    margin-bottom: 0;
}

.tip-box li {
    color: var(--text-dark);
    margin-bottom: 0.4rem;
}

/* Quick Facts Table */
.quick-facts {
    width: 100%;
    margin: 1.5rem 0;
    border-collapse: collapse;
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.quick-facts th {
    background: var(--primary);
    color: var(--white);
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.95rem;
}

.quick-facts td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-dark);
}

.quick-facts tr:last-child td {
    border-bottom: none;
}

.quick-facts tr:nth-child(even) {
    background: var(--lighter-bg);
}

.quick-facts tr:hover {
    background: linear-gradient(135deg, var(--light-bg) 0%, var(--lighter-bg) 100%);
}

/* CTA Box at End of Article */
.article-cta {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    margin-top: 3rem;
    text-align: center;
    box-shadow: 0 8px 24px rgba(74, 173, 160, 0.25);
}

.article-cta h3 {
    color: var(--white);
    margin-bottom: 0.75rem;
    font-size: 1.4rem;
}

.article-cta p {
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.article-cta .btn {
    background: var(--warm-accent);
    color: var(--text-dark);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s;
}

.article-cta .btn:hover {
    background: #E08A32;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

/* Related Articles */
.related-articles {
    background: var(--lighter-bg);
    padding: 2.5rem 1.5rem;
    margin-top: 3rem;
    border-radius: var(--border-radius);
}

.related-articles h3 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.related-articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.related-article-item {
    background: var(--white);
    padding: 1.25rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-light);
    transition: all 0.2s;
}

.related-article-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(74, 173, 160, 0.1);
}

.related-article-item h4 {
    font-size: 0.95rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.related-article-item a {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.85rem;
}

/* Share Article */
.article-share {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-light);
}

.article-share span {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.9rem;
}

.article-share a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--light-bg);
    border-radius: 50%;
    color: var(--primary);
    font-weight: 600;
    transition: all 0.2s;
}

.article-share a:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
}

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

    .blog-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 1.5rem;
        margin: 2rem auto;
    }

    .article-header {
        padding-top: 100px;
        padding-bottom: 2rem;
    }

    .article-title {
        font-size: 1.75rem;
    }

    .article-meta {
        font-size: 0.85rem;
    }

    .blog-card {
        margin-bottom: 1rem;
    }

    .article-cta {
        padding: 1.5rem;
    }

    .article-cta h3 {
        font-size: 1.2rem;
    }

    .related-articles-grid {
        grid-template-columns: 1fr;
    }
}

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

    .blog-hero h1 {
        font-size: 1.5rem;
    }

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

    .blog-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin: 1.5rem auto;
    }

    .blog-card-header,
    .blog-card-body {
        padding: 1.25rem;
    }

    .article-header {
        padding-top: 80px;
        padding-bottom: 1.5rem;
    }

    .article-title {
        font-size: 1.3rem;
        margin-bottom: 0.75rem;
    }

    .article-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .article-content {
        font-size: 0.95rem;
        line-height: 1.7;
    }

    .article-content h2 {
        font-size: 1.25rem;
        margin-top: 1.5rem;
    }

    .article-content h3 {
        font-size: 1.1rem;
    }

    .quick-facts {
        font-size: 0.9rem;
    }

    .quick-facts th,
    .quick-facts td {
        padding: 0.75rem;
    }

    .article-cta {
        padding: 1.25rem;
        margin-top: 2rem;
    }

    .article-cta h3 {
        font-size: 1.1rem;
    }

    .article-cta p {
        font-size: 0.95rem;
    }

    .breadcrumb {
        padding: 1rem;
        font-size: 0.85rem;
    }

    .article-share {
        flex-wrap: wrap;
        margin-top: 1.5rem;
        padding-top: 1.5rem;
    }
}
