/* =========================================
   Blog Styles - ThoughtsPlus Alternatives Pages
   =========================================
   Extends the main styles.css with blog-specific styling
*/

/* Blog Main Container */
.blog-main {
    padding-top: var(--header-height);
}

/* Blog Hero Section */
.blog-hero {
    padding: 4rem 0 3rem;
    text-align: center;
    background: linear-gradient(180deg, var(--surface-color) 0%, var(--bg-color) 100%);
    border-bottom: 1px solid var(--border-color);
}

.blog-hero h1 {
    font-size: 2.75rem;
    margin-bottom: 1.25rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.blog-hero-subtitle {
    font-size: 1.15rem;
    max-width: 700px;
    margin: 0 auto 1.5rem;
    color: var(--text-muted);
    line-height: 1.7;
}

/* Breadcrumb */
.blog-breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.blog-breadcrumb a {
    color: var(--text-muted);
    transition: color 0.2s ease;
}

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

.blog-breadcrumb ion-icon {
    font-size: 0.75rem;
}

/* Blog Meta Info */
.blog-meta {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.blog-meta span {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.blog-meta ion-icon {
    font-size: 1rem;
    color: var(--primary-color);
}

/* Table of Contents */
.blog-toc {
    padding: 2rem 0;
}

.toc-card {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.75rem 2rem;
    max-width: 700px;
    margin: 0 auto;
}

.toc-card h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.toc-card h3 ion-icon {
    color: var(--primary-color);
}

.toc-list {
    list-style: decimal;
    padding-left: 1.5rem;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 0.5rem 2rem;
}

.toc-list li {
    padding: 0.25rem 0;
}

.toc-list a {
    color: var(--text-muted);
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

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

/* Blog Content */
.blog-content {
    padding: 3rem 0 5rem;
}

.blog-content .container {
    max-width: 850px;
}

/* Blog Section */
.blog-section {
    margin-bottom: 4rem;
    scroll-margin-top: calc(var(--header-height) + 2rem);
}

.blog-section h2 {
    text-align: left;
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.blog-section p {
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 1.25rem;
}

/* Blog List */
.blog-list {
    margin: 1.5rem 0;
    padding-left: 1.5rem;
}

.blog-list li {
    margin-bottom: 0.75rem;
    line-height: 1.7;
    color: var(--text-muted);
}

.blog-list li strong {
    color: var(--text-main);
}

/* Comparison Table */
.comparison-table-wrapper {
    overflow-x: auto;
    margin: 2rem 0;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
    min-width: 600px;
}

.comparison-table th,
.comparison-table td {
    padding: 1rem 1.25rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.comparison-table th {
    background: var(--surface-color);
    font-weight: 700;
    color: var(--text-main);
    position: sticky;
    top: 0;
}

.comparison-table td {
    background: var(--bg-color);
    color: var(--text-muted);
    vertical-align: top;
}

.comparison-table tbody tr:hover td {
    background: var(--surface-color);
}

/* Featured row keeps its highlight but no extra hover effect */
.comparison-table .featured-row td {
    background: rgba(245, 245, 245, 0.8);
    font-weight: 500;
}

[data-theme="dark"] .comparison-table .featured-row td {
    background: rgba(40, 40, 40, 0.8);
}

.comparison-table .featured-row:hover td {
    background: rgba(245, 245, 245, 0.8);
}

[data-theme="dark"] .comparison-table .featured-row:hover td {
    background: rgba(40, 40, 40, 0.8);
}

/* App Section */
.app-section {
    padding: 2rem;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
}

.app-section.featured-app {
    border-color: rgba(187, 133, 29, 0.3);
    background: var(--bg-color);
}

.app-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.app-logo {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-md);
    object-fit: contain;
}

.app-logo-placeholder {
    width: 64px;
    height: 64px;
    min-width: 64px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
}

.app-header h2 {
    margin-bottom: 0.25rem;
    text-align: left;
}

.app-tagline {
    font-size: 0.95rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0 !important;
}

/* App Screenshots */
.app-screenshot-wrapper {
    margin: 2rem 0;
    text-align: center;
}

.app-screenshot {
    width: 100%;
    max-width: 100%;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.screenshot-caption {
    display: block;
    margin-top: 0.75rem;
    font-size: 0.9rem;
    color: var(--text-muted);
    font-style: italic;
}

/* Feature Highlights Grid */
.feature-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
    margin: 2rem 0;
}

.feature-highlight-card {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    transition: border-color 0.2s ease;
}

.feature-highlight-card:hover {
    border-color: var(--primary-color);
}

.feature-highlight-card ion-icon {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}

.feature-highlight-card h4 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.feature-highlight-card p {
    font-size: 0.9rem;
    margin-bottom: 0;
    line-height: 1.6;
}

.feature-highlight-card kbd {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 0.15rem 0.4rem;
    font-family: monospace;
    font-size: 0.85rem;
}

/* User Reviews */
.user-reviews {
    margin: 2.5rem 0;
}

.user-reviews h3 {
    margin-bottom: 1.25rem;
    font-size: 1.25rem;
}

.review-card {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.review-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.review-stars {
    display: flex;
    gap: 0.15rem;
}

.review-stars ion-icon {
    font-size: 1.1rem;
    color: #f59e0b;
}

.review-author {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-main);
}

.review-title {
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-main);
    margin-bottom: 0.5rem !important;
}

.review-text {
    font-size: 0.95rem;
    margin-bottom: 0 !important;
    line-height: 1.7;
}

/* Pros & Cons */
.pros-cons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.pros,
.cons {
    background: var(--bg-color);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    border: 1px solid var(--border-color);
}

.pros h4,
.cons h4 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.pros h4 ion-icon {
    color: #22c55e;
    font-size: 1.25rem;
}

.cons h4 ion-icon {
    color: #ef4444;
    font-size: 1.25rem;
}

.pros ul,
.cons ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pros li,
.cons li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.pros li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #22c55e;
    font-weight: 700;
}

.cons li::before {
    content: "✗";
    position: absolute;
    left: 0;
    color: #ef4444;
    font-weight: 700;
}

/* Pricing Box */
.pricing-box {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    margin: 2rem 0;
    text-align: center;
}

.pricing-box h4 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.pricing-box p {
    margin-bottom: 0;
    font-size: 1rem;
}

.price-tag {
    font-size: 1.5rem !important;
    font-weight: 800;
    color: var(--primary-color) !important;
    margin-bottom: 0.5rem !important;
}

/* App CTA */
.app-cta {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.app-cta ms-store-badge {
    transform: scale(0.5);
    transform-origin: left center;
    margin-right: -185px;
}

.app-cta .btn {
    border-radius: 6px;
}

/* Conclusion Section */
.conclusion-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.25rem;
    margin: 2rem 0;
}

.conclusion-card {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    transition: border-color 0.2s ease;
}

.conclusion-card:hover {
    border-color: var(--primary-color);
}

.conclusion-card h4 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.conclusion-card h4 ion-icon {
    color: var(--primary-color);
    font-size: 1.25rem;
}

.conclusion-card p {
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* Final CTA */
.final-cta {
    background: linear-gradient(135deg, var(--highlight-bg) 0%, var(--surface-color) 100%);
    border: 2px solid var(--primary-color);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    text-align: center;
    margin-top: 3rem;
}

.final-cta h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.final-cta p {
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.final-cta ms-store-badge {
    transform: scale(0.6);
    display: inline-block;
}

/* Flush CTA - No container, blends with page */
.final-cta-flush {
    text-align: center;
    margin-top: 3rem;
    padding: 2rem 0;
}

.final-cta-flush h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.final-cta-flush p {
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
    color: var(--text-muted);
}

.final-cta-flush ms-store-badge {
    transform: scale(0.6);
    display: inline-block;
}

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

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

    .blog-meta {
        gap: 1rem;
    }

    .toc-list {
        grid-template-columns: 1fr;
    }

    .blog-section h2 {
        font-size: 1.5rem;
    }

    .app-section {
        padding: 1.5rem;
    }

    .app-header {
        flex-direction: column;
        text-align: center;
    }

    .app-header h2 {
        text-align: center;
    }

    .feature-highlights {
        grid-template-columns: 1fr;
    }

    .pros-cons {
        grid-template-columns: 1fr;
    }

    .conclusion-grid {
        grid-template-columns: 1fr;
    }

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

    .final-cta {
        padding: 1.5rem;
    }
}

/* Links in Blog Content */
.blog-content a:not(.btn):not(.toc-list a) {
    color: var(--primary-color);
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: opacity 0.2s ease;
}

.blog-content a:not(.btn):hover {
    opacity: 0.8;
}

/* Code/kbd styling */
.blog-content kbd {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 0.2rem 0.5rem;
    font-family: 'SF Mono', Monaco, 'Cascadia Code', monospace;
    font-size: 0.85em;
    box-shadow: 0 2px 0 var(--border-color);
}

/* Blog Section h3 */
.blog-section h3 {
    font-size: 1.25rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

/* Video Container (for future use) */
.video-container {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 */
    height: 0;
    overflow: hidden;
    margin: 2rem 0;
    border-radius: var(--radius-md);
}

.video-container iframe,
.video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: var(--radius-md);
}