/* Blog CSS - ReviewBuddy */

:root {
    --primary-color: #4F46E5;
    --primary-dark: #4338CA;
    --primary-light: #818CF8;
    --secondary-color: #10B981;
    --accent-color: #F59E0B;
    --text-primary: #1F2937;
    --text-secondary: #6B7280;
    --text-light: #9CA3AF;
    --bg-primary: #FFFFFF;
    --bg-secondary: #F9FAFB;
    --bg-tertiary: #F3F4F6;
    --border-color: #E5E7EB;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-secondary);
}

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

/* Navigation */
.navbar {
    background: var(--bg-primary);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-icon {
    font-size: 28px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 32px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-color);
}

.btn-primary {
    background: var(--primary-color);
    color: white !important;
    padding: 10px 24px;
    border-radius: 8px;
    transition: background 0.3s;
}

.btn-primary:hover {
    background: var(--primary-dark);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-btn span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    border-radius: 3px;
    transition: all 0.3s;
}

/* Hero Section */
.blog-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 80px 0 60px;
    text-align: center;
}

.blog-hero h1 {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 16px;
}

.hero-subtitle {
    font-size: 20px;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto;
}

/* Blog Section */
.blog-section {
    padding: 80px 0;
}

/* Blog Post Card */
.blog-post {
    background: var(--bg-primary);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s, box-shadow 0.3s;
    margin-bottom: 40px;
}

.blog-post:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

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

.read-more-link {
    display: inline-block;
    color: var(--primary-color);
    font-weight: 600;
    margin-top: 16px;
    transition: transform 0.3s;
}

.post-link:hover .read-more-link {
    transform: translateX(4px);
}

.blog-post.featured {
    margin-bottom: 60px;
}

.post-image {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
}

.blog-post.featured .post-image {
    height: 500px;
}

.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-category {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--primary-color);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

.post-content {
    padding: 32px;
}

.blog-post.featured .post-content {
    padding: 40px;
}

.post-meta {
    display: flex;
    gap: 16px;
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 16px;
}

.post-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.post-content h2 {
    font-size: 32px;
    color: var(--text-primary);
    margin-bottom: 16px;
    line-height: 1.3;
}

.blog-post.featured .post-content h2 {
    font-size: 40px;
}

.post-excerpt {
    color: var(--text-secondary);
    font-size: 18px;
    margin-bottom: 24px;
    line-height: 1.7;
}

.post-full-content {
    display: none;
    margin-top: 32px;
    padding-top: 32px;
    border-top: 1px solid var(--border-color);
}

.post-full-content h3 {
    font-size: 28px;
    color: var(--text-primary);
    margin: 32px 0 16px;
}

.post-full-content h4 {
    font-size: 22px;
    color: var(--text-primary);
    margin: 24px 0 12px;
}

.post-full-content p {
    color: var(--text-primary);
    font-size: 17px;
    line-height: 1.8;
    margin-bottom: 20px;
}

.post-full-content ul,
.post-full-content ol {
    margin: 20px 0 20px 24px;
    color: var(--text-primary);
}

.post-full-content li {
    margin-bottom: 12px;
    line-height: 1.7;
}

.post-full-content strong {
    color: var(--text-primary);
    font-weight: 600;
}

.post-full-content blockquote {
    background: var(--bg-tertiary);
    border-left: 4px solid var(--primary-color);
    padding: 20px 24px;
    margin: 24px 0;
    font-style: italic;
}

.post-full-content blockquote p {
    margin-bottom: 8px;
}

.post-full-content blockquote cite {
    font-size: 15px;
    color: var(--text-secondary);
    font-style: normal;
}

.warning-box {
    background: #FEF3C7;
    border-left: 4px solid #F59E0B;
    padding: 20px 24px;
    margin: 24px 0;
    border-radius: 0 8px 8px 0;
}

.warning-box h4 {
    color: #92400E;
    margin-top: 0;
}

.warning-box ul {
    margin: 12px 0 0 24px;
}

.cta-box {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 32px;
    border-radius: 12px;
    text-align: center;
    margin: 40px 0;
}

.cta-box h4 {
    color: white;
    margin-top: 0;
    margin-bottom: 12px;
    font-size: 24px;
}

.cta-box p {
    color: white;
    opacity: 0.95;
    margin-bottom: 24px;
}

.btn-cta {
    display: inline-block;
    background: white;
    color: var(--primary-color);
    padding: 14px 32px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.3s, box-shadow 0.3s;
}

.btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.read-more-btn {
    display: inline-block;
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    margin-top: 16px;
    transition: transform 0.3s;
}

.read-more-btn:hover {
    transform: translateX(4px);
}

/* Blog Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.cta-section h2 {
    font-size: 40px;
    margin-bottom: 16px;
}

.cta-section p {
    font-size: 20px;
    opacity: 0.9;
    margin-bottom: 32px;
}

.btn-cta-large {
    display: inline-block;
    background: white;
    color: var(--primary-color);
    padding: 18px 48px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    font-size: 18px;
    transition: transform 0.3s, box-shadow 0.3s;
}

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

/* Footer */
.footer {
    background: var(--text-primary);
    color: white;
    padding: 60px 0 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 40px;
}

.footer-column h3,
.footer-column h4 {
    margin-bottom: 16px;
}

.footer-logo {
    font-size: 24px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-column p {
    color: var(--text-light);
    line-height: 1.7;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 12px;
}

.footer-column ul li a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-column ul li a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 24px;
    text-align: center;
    color: var(--text-light);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 24px;
        box-shadow: var(--shadow-lg);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 999;
    }

    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .mobile-menu-btn.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-btn.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    .blog-hero h1 {
        font-size: 36px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .blog-section {
        padding: 40px 0;
    }

    .post-image {
        height: 250px;
    }

    .blog-post.featured .post-image {
        height: 300px;
    }

    .post-content h2 {
        font-size: 24px;
    }

    .blog-post.featured .post-content h2 {
        font-size: 28px;
    }

    .post-excerpt {
        font-size: 16px;
    }

    .post-full-content h3 {
        font-size: 22px;
    }

    .post-full-content h4 {
        font-size: 19px;
    }

    .blog-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .cta-section h2 {
        font-size: 28px;
    }

    .cta-section p {
        font-size: 16px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

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

    .post-content {
        padding: 20px;
    }

    .blog-post.featured .post-content {
        padding: 24px;
    }
}

/* Article Page Styles */
.blog-article {
    background: var(--bg-secondary);
}

.article-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 80px 0 60px;
}

.container-article {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 24px;
}

.breadcrumb {
    font-size: 14px;
    margin-bottom: 16px;
    opacity: 0.9;
}

.breadcrumb a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s;
}

.breadcrumb a:hover {
    opacity: 0.8;
}

.article-category {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
}

.article-header h1 {
    font-size: 48px;
    line-height: 1.2;
    margin-bottom: 24px;
}

.article-meta {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    opacity: 0.9;
}

.meta-item {
    font-size: 16px;
}

.article-content {
    background: white;
    padding: 60px 0;
}

.article-content h2 {
    font-size: 36px;
    margin: 48px 0 20px;
    color: var(--text-primary);
}

.article-content h3 {
    font-size: 28px;
    margin: 36px 0 16px;
    color: var(--text-primary);
}

.article-content p {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.article-content ul,
.article-content ol {
    margin: 24px 0 24px 32px;
    font-size: 18px;
    line-height: 1.8;
}

.article-content li {
    margin-bottom: 12px;
}

.article-content blockquote {
    background: var(--bg-tertiary);
    border-left: 4px solid var(--primary-color);
    padding: 24px 32px;
    margin: 32px 0;
    font-size: 20px;
    font-style: italic;
}

.article-content blockquote cite {
    display: block;
    font-size: 16px;
    color: var(--text-secondary);
    margin-top: 12px;
    font-style: normal;
}

/* Related Articles */
.related-articles {
    background: var(--bg-secondary);
    padding: 60px 0;
}

.related-articles h2 {
    font-size: 32px;
    margin-bottom: 32px;
    text-align: center;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.related-post {
    background: white;
    border-radius: 12px;
    padding: 32px;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s, box-shadow 0.3s;
}

.related-post:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.related-post a {
    text-decoration: none;
    color: inherit;
}

.related-post h3 {
    font-size: 22px;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.related-post p {
    color: var(--text-secondary);
    margin-bottom: 16px;
}

/* Print Styles */
@media print {
    .navbar,
    .blog-hero,
    .cta-section,
    .footer,
    .read-more-btn,
    .btn-cta {
        display: none;
    }

    .post-full-content {
        display: block !important;
    }

    body {
        background: white;
    }

    .blog-post {
        box-shadow: none;
        page-break-inside: avoid;
    }
}
