/* Blog Styles - RashiGPT */

:root {
    --primary-color: #D4AF37;
    --primary-dark: #B5952F;
    --secondary-color: #2C3E50;
    --text-dark: #1A1A1A;
    --text-light: #666666;
    --bg-light: #F9F9F9;
    --bg-white: #FFFFFF;
    --accent-pink: #FFF0F5;
}

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

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    background-color: #fff;
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* Blog Layout */
.blog-page {
    padding-top: 100px;
}

.blog-wrapper {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
    margin-bottom: 60px;
}

@media (max-width: 900px) {
    .blog-wrapper {
        grid-template-columns: 1fr;
    }
}

/* Blog Article */
.blog-article {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
}

.blog-header {
    margin-bottom: 2rem;
    text-align: center;
}

.blog-category {
    display: inline-block;
    padding: 5px 14px;
    background-color: var(--accent-pink);
    color: var(--primary-dark);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.blog-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.4rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
    line-height: 1.2;
}

.blog-meta {
    font-size: 0.9rem;
    color: var(--text-light);
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.blog-featured-image {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Article Typography */
.blog-article h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
    border-left: 4px solid var(--primary-color);
    padding-left: 1rem;
}

.blog-article h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

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

.blog-article ul, .blog-article ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.blog-article li {
    margin-bottom: 0.7rem;
}

.blog-article blockquote {
    background-color: var(--bg-light);
    border-left: 4px solid var(--secondary-color);
    padding: 1.5rem;
    font-style: italic;
    margin: 2rem 0;
    border-radius: 0 8px 8px 0;
}

/* Table of Contents */
.toc {
    background-color: var(--bg-light);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.toc-title {
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.toc ul {
    margin: 0;
    padding-left: 1.2rem;
}

.toc li {
    margin-bottom: 0.5rem;
}

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

.toc a:hover {
    color: var(--secondary-color);
}

/* CTA Inline */
.cta-box {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), rgba(212, 175, 55, 0.05));
    border: 1px solid rgba(212, 175, 55, 0.3);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    margin: 3rem 0;
}

.cta-box h3 {
    margin-top: 0;
    color: var(--primary-dark);
}

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    margin-top: 1rem;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.3);
}

/* Sidebar */
.blog-sidebar {
    position: relative;
}

.sticky-box {
    position: sticky;
    top: 120px;
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid rgba(212, 175, 55, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.sticky-box img {
    width: 70px;
    margin-bottom: 1rem;
}

.sticky-box h3 {
    margin-top: 0;
    font-size: 1.4rem;
    color: var(--secondary-color);
}

.sticky-box p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.sticky-box ul {
    text-align: left;
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    padding-left: 0;
}

.sticky-box li {
    list-style: none;
    margin-bottom: 0.6rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sticky-box li i {
    color: #4CAF50;
    font-size: 0.9rem;
}

/* Share Section */
.share-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
}

.share-section p {
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.share-links {
    display: flex;
    gap: 1rem;
}

.share-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-light);
    color: var(--secondary-color);
    text-decoration: none;
    transition: all 0.3s;
}

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

/* Footer */
.blog-footer {
    background: var(--secondary-color);
    color: white;
    padding: 3rem 0;
    margin-top: 4rem;
    text-align: center;
}

.blog-footer p {
    margin: 0;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .blog-title {
        font-size: 1.8rem;
    }

    .blog-article h2 {
        font-size: 1.4rem;
    }

    .blog-meta {
        gap: 1rem;
    }

    .sticky-box {
        position: static;
    }
}
