/* ==========================================================================
   GiantTurtle Studio - Blog & Article Stylesheet
   Inherits design tokens and base styles from root styles.css
   ========================================================================== */

/* Blog Layout Container */
.blog-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 7rem 1.5rem 4rem;
}

.article-container {
    max-width: 860px;
    margin: 0 auto;
    padding: 7rem 1.5rem 5rem;
}

/* Breadcrumbs */
.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.breadcrumbs a {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
}

.breadcrumbs a:hover {
    color: var(--primary);
}

.breadcrumbs .separator {
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.75rem;
}

.breadcrumbs .current {
    color: var(--text-main);
    font-weight: 500;
}

/* Article Hero Header */
.article-header {
    margin-bottom: 2.5rem;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 2rem;
}

.article-category-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.85rem;
    background: rgba(61, 220, 132, 0.12);
    border: 1px solid rgba(61, 220, 132, 0.3);
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.2rem;
}

.article-category-badge.macos {
    background: rgba(124, 106, 239, 0.15);
    border-color: rgba(124, 106, 239, 0.4);
    color: #a78bfa;
}

.article-category-badge.android {
    background: rgba(61, 220, 132, 0.12);
    border-color: rgba(61, 220, 132, 0.35);
    color: #3DDC84;
}

.article-category-badge.desktop {
    background: rgba(6, 214, 160, 0.12);
    border-color: rgba(6, 214, 160, 0.35);
    color: #06d6a0;
}

.article-category-badge.ai {
    background: rgba(236, 72, 153, 0.14);
    border-color: rgba(236, 72, 153, 0.38);
    color: #f472b6;
}

.article-category-badge.hardware {
    background: rgba(245, 158, 11, 0.14);
    border-color: rgba(245, 158, 11, 0.38);
    color: #fbbf24;
}

.article-title {
    font-size: clamp(2rem, 4vw, 2.75rem);
    line-height: 1.25;
    margin-bottom: 1.25rem;
    color: #ffffff;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.article-lead {
    font-size: 1.2rem;
    line-height: 1.6;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.article-meta-bar {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    font-size: 0.9rem;
    color: var(--text-muted);
}

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

.article-meta-item i {
    color: var(--primary);
    font-size: 0.88rem;
}

/* Featured Header Image */
.article-featured-image {
    width: 100%;
    max-height: 480px;
    object-fit: contain;
    background: rgba(0, 0, 0, 0.35);
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    margin: 1.5rem 0 2.5rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    display: block;
}

/* Table of Contents */
.toc-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 1.5rem 1.8rem;
    margin: 2rem 0 3rem;
    backdrop-filter: blur(10px);
}

.toc-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.toc-title i {
    color: var(--primary);
}

.toc-list {
    list-style: none;
    padding-left: 0;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.toc-list li {
    font-size: 0.95rem;
}

.toc-list a {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
    display: inline-block;
}

.toc-list a:hover {
    color: var(--primary);
    transform: translateX(4px);
}

/* Article Body Typography & Content */
.article-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #d1d5db;
}

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

.article-content h2 {
    font-size: 1.85rem;
    line-height: 1.35;
    color: #ffffff;
    margin-top: 3.5rem;
    margin-bottom: 1.2rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    scroll-margin-top: 90px;
}

.article-content h3 {
    font-size: 1.4rem;
    line-height: 1.4;
    color: #f3f4f6;
    margin-top: 2.2rem;
    margin-bottom: 0.9rem;
    scroll-margin-top: 90px;
}

.article-content h4 {
    font-size: 1.15rem;
    color: #e5e7eb;
    margin-top: 1.8rem;
    margin-bottom: 0.6rem;
}

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

.article-content li {
    margin-bottom: 0.6rem;
}

.article-content strong {
    color: #ffffff;
    font-weight: 600;
}

.article-content a:not(.btn-primary-cta):not(.btn-secondary-cta):not(.store-btn):not(.action-badge):not(.install-badge) {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: var(--transition);
}

.article-content a:not(.btn-primary-cta):not(.btn-secondary-cta):not(.store-btn):not(.action-badge):not(.install-badge):hover {
    color: #ffffff;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    margin: 2rem 0 1rem;
    display: block;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.img-caption {
    font-size: 0.88rem;
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 2rem;
    font-style: italic;
}

/* Callout Boxes */
.callout {
    background: rgba(255, 255, 255, 0.04);
    border-left: 4px solid var(--primary);
    border-radius: 0 10px 10px 0;
    padding: 1.25rem 1.5rem;
    margin: 2.2rem 0;
}

.callout.tip {
    border-left-color: #3DDC84;
    background: rgba(61, 220, 132, 0.08);
}

.callout.warning {
    border-left-color: #f59e0b;
    background: rgba(245, 158, 11, 0.08);
}

.callout.info {
    border-left-color: #60a5fa;
    background: rgba(96, 165, 250, 0.08);
}

.callout-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: #ffffff;
}

.callout.tip .callout-header { color: #3DDC84; }
.callout.warning .callout-header { color: #f59e0b; }
.callout.info .callout-header { color: #60a5fa; }

.callout p:last-child {
    margin-bottom: 0;
}

/* Step by Step Blocks */
.step-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 1.5rem 1.8rem;
    margin-bottom: 1.5rem;
    position: relative;
}

.step-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary);
    color: #0a0e14;
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 0.8rem;
}

.step-card h4 {
    margin-top: 0;
    color: #ffffff;
    font-size: 1.2rem;
    margin-bottom: 0.6rem;
}

/* Responsive Table Wrapper */
.table-wrapper {
    overflow-x: auto;
    margin: 2.5rem 0;
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    background: rgba(10, 14, 20, 0.7);
}

.styled-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
    text-align: left;
}

.styled-table th,
.styled-table td {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.styled-table th {
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
    font-weight: 600;
}

.styled-table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

.styled-table .badge-good {
    color: #3DDC84;
    font-weight: 600;
}

.styled-table .badge-poor {
    color: #ef4444;
    font-weight: 600;
}

.styled-table .badge-med {
    color: #f59e0b;
    font-weight: 600;
}

/* High-Converting App CTA Banner */
.app-cta-banner {
    background: linear-gradient(135deg, rgba(61, 220, 132, 0.12) 0%, rgba(18, 18, 42, 0.85) 100%);
    border: 1px solid rgba(61, 220, 132, 0.35);
    border-radius: 16px;
    padding: 2.2rem;
    margin: 3.5rem 0;
    display: flex;
    align-items: center;
    gap: 2rem;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.45);
}

.app-cta-banner.macos-banner {
    background: linear-gradient(135deg, rgba(124, 106, 239, 0.16) 0%, rgba(18, 18, 42, 0.9) 100%);
    border-color: rgba(124, 106, 239, 0.4);
}

.app-cta-banner.ai-banner {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.16) 0%, rgba(18, 18, 42, 0.9) 100%);
    border-color: rgba(236, 72, 153, 0.4);
}

.app-cta-icon {
    width: 90px;
    height: 90px;
    border-radius: 20px;
    object-fit: cover;
    flex-shrink: 0;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

.app-cta-content {
    flex-grow: 1;
}

.app-cta-content h3 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-size: 1.45rem;
    color: #ffffff;
}

.app-cta-content p {
    color: #d1d5db;
    font-size: 0.98rem;
    margin-bottom: 1.2rem;
    line-height: 1.5;
}

.app-cta-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-primary-cta,
.article-content .btn-primary-cta,
.app-cta-banner .btn-primary-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.75rem 1.4rem;
    background: var(--primary);
    color: #0a0e14 !important;
    font-weight: 700;
    font-size: 0.95rem;
    border-radius: 8px;
    text-decoration: none !important;
    transition: var(--transition);
}

.btn-primary-cta:hover,
.article-content .btn-primary-cta:hover,
.app-cta-banner .btn-primary-cta:hover {
    background: var(--primary-dark);
    color: #000000 !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(61, 220, 132, 0.3);
    text-decoration: none !important;
}

.btn-secondary-cta,
.article-content .btn-secondary-cta,
.app-cta-banner .btn-secondary-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.75rem 1.4rem;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff !important;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 8px;
    text-decoration: none !important;
    border: 1px solid var(--glass-border);
    transition: var(--transition);
}

.btn-secondary-cta:hover,
.article-content .btn-secondary-cta:hover,
.app-cta-banner .btn-secondary-cta:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff !important;
    transform: translateY(-2px);
    text-decoration: none !important;
}

/* FAQ Accordion / Cards */
.faq-container {
    margin: 3.5rem 0;
}

.faq-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    margin-bottom: 1.2rem;
    padding: 1.5rem;
    transition: var(--transition);
}

.faq-card:hover {
    border-color: rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.05);
}

.faq-question {
    font-size: 1.2rem;
    color: #ffffff;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
}

.faq-question i {
    color: var(--primary);
    margin-top: 0.2rem;
    font-size: 1rem;
}

.faq-answer {
    color: var(--text-muted);
    line-height: 1.7;
    font-size: 1rem;
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

/* Author Box */
.author-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    padding: 2rem;
    margin: 4rem 0 3rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.author-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary);
    flex-shrink: 0;
}

.author-info h4 {
    margin-top: 0;
    margin-bottom: 0.3rem;
    font-size: 1.15rem;
    color: #ffffff;
}

.author-title {
    font-size: 0.85rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.author-bio {
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.5;
    margin-bottom: 0;
}

/* Related Posts Section */
.related-posts {
    margin: 4rem 0 2rem;
}

.related-posts h3 {
    font-size: 1.6rem;
    color: #ffffff;
    margin-bottom: 1.5rem;
    text-align: center;
}

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

.related-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    padding: 1.5rem;
    text-decoration: none;
    color: var(--text-main);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition);
}

.related-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.related-card h4 {
    color: #ffffff;
    font-size: 1.1rem;
    margin-top: 0.5rem;
    margin-bottom: 0.6rem;
    line-height: 1.4;
}

.related-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 1rem;
}

.related-link {
    font-size: 0.88rem;
    color: var(--primary);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

/* Blog Index Specific Styles */
.blog-hero {
    text-align: center;
    padding-bottom: 3rem;
}

.blog-hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    margin-bottom: 1rem;
    color: #ffffff;
}

.blog-hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 680px;
    margin: 0 auto 2rem;
}

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

.blog-post-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: var(--text-main);
    transition: var(--transition);
}

.blog-post-card:hover {
    transform: translateY(-6px);
    border-color: rgba(61, 220, 132, 0.5);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
}

.blog-card-thumb {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: #0f141c;
    border-bottom: 1px solid var(--glass-border);
}

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

.blog-card-title {
    font-size: 1.35rem;
    color: #ffffff;
    margin: 0.75rem 0;
    line-height: 1.4;
    font-weight: 700;
}

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

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

.blog-card-cta {
    color: var(--primary);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .article-container,
    .blog-container {
        padding-top: 5.5rem;
    }

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

    .app-cta-banner {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }

    .app-cta-buttons {
        justify-content: center;
    }

    .author-card {
        flex-direction: column;
        text-align: center;
    }
}
