/* Grayscale, App-Matching Blog Styles - September 2025 */
/* Designed to match the app's minimalist grayscale aesthetic */

:root {
    --brand-500: 0 0% 50%;
    --brand-600: 0 0% 40%;
    --background: #ffffff;
    --foreground: #333333;
    --primary: #666666;
    --primary-dark: #555555;
    --accent: #f5f5f5;
    --card-bg: #fafafa;
    --button-text: #ffffff;
    --button-bg: #666666;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-heading: 'Plus Jakarta Sans', 'Georgia', serif;
}

/* Newspaper-style Article Images - REMOVED */
/*
.article-image {
    max-width: 300px;
    width: auto;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e0e0;
    display: block;
    shape-outside: margin-box;
    shape-margin: 1em;
}

.article-image-left {
    float: left;
    margin: 0.5em 2em 1em 0;
    clear: left;
}

.article-image-right {
    float: right;
    margin: 0.5em 0 1em 2em;
    clear: right;
}

.article-image-small {
    max-width: 150px;
}
*/

/* Responsive adjustments for newspaper layout - REMOVED */
/*
@media (max-width: 768px) {
    .article-image {
        float: none;
        display: block;
        margin: 1em auto;
        max-width: 100%;
    }
    
    .article-image-left,
    .article-image-right {
        margin: 1em auto;
    }
}
*/

/* Blog Page Styles */
body:has(.blog-main) {
    display: block;
    align-items: unset;
    justify-content: unset;
    background: var(--background);
    color: var(--foreground);
    font-family: var(--font-sans);
}

.breadcrumb {
    background: var(--accent);
    padding: 12px 32px;
    border-bottom: 1px solid #e0e0e0;
}

.breadcrumb ol {
    max-width: 900px;
    margin: 0 auto;
    list-style: none;
    padding: 0;
    display: flex;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--foreground);
}

.breadcrumb li::after {
    content: "/";
    margin-left: 8px;
    color: #999999;
}

.breadcrumb li:last-child::after {
    content: "";
}

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

.breadcrumb a:hover {
    text-decoration: underline;
}

.blog-main {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 0 48px 0;
    background: none;
    border-radius: 0 0 32px 32px;
    box-shadow: none;
}

.blog-header {
    text-align: center;
    margin-bottom: 48px;
    padding: 40px 24px 24px 24px;
    background: var(--accent);
    border-radius: 32px 32px 0 0;
    border: none;
    box-shadow: 0 2px 16px rgba(0,0,0,0.05);
}

.blog-header h1 {
    font-family: var(--font-heading);
    font-size: 2.6rem;
    color: var(--foreground);
    margin-bottom: 12px;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: -1px;
}

.blog-subtitle {
    font-size: 1.1rem;
    color: #666666;
    margin-bottom: 18px;
    line-height: 1.6;
    font-family: var(--font-heading);
}

.blog-stats {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.blog-stats span {
    background: var(--card-bg);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    border: 1px solid #e0e0e0;
    color: var(--foreground);
}

.blog-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-top: 24px;
}

.blog-nav a {
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 24px;
    font-weight: 600;
    transition: all 0.2s;
    color: var(--foreground);
    background: var(--card-bg);
    border: 1px solid #e0e0e0;
}

.blog-nav a:first-child {
    color: #666666;
    border: 1px solid #e0e0e0;
}

.cta-link {
    background: var(--primary) !important;
    color: white !important;
    border: none !important;
}

.cta-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(233, 80, 89, 0.13);
}

.table-of-contents {
    background: var(--card-bg);
    border-radius: 24px;
    padding: 24px;
    margin-bottom: 32px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 16px rgba(0,0,0,0.05);
}

.table-of-contents h2 {
    font-size: 1.3rem;
    margin-bottom: 16px;
    color: var(--foreground);
    font-family: var(--font-heading);
}

.table-of-contents ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.table-of-contents li {
    margin-bottom: 8px;
}

.table-of-contents a {
    color: var(--foreground);
    text-decoration: none;
    padding: 8px 12px;
    display: block;
    border-radius: 12px;
    transition: all 0.2s;
}

.table-of-contents a:hover {
    background: var(--accent);
    color: var(--primary-dark);
}

.blog-section {
    margin-bottom: 48px;
    padding: 0 24px;
}

.blog-section h2 {
    font-size: 2rem;
    color: var(--primary-dark);
    margin-bottom: 12px;
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.5px;
}

.section-intro {
    font-size: 1.1rem;
    color: #666666;
    margin-bottom: 32px;
    line-height: 1.6;
}

.blog-article {
    background: var(--card-bg);
    border-radius: 24px;
    border: none;
    margin-bottom: 28px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.05);
    transition: box-shadow 0.2s;
    overflow: hidden;
}

.blog-article:hover {
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
}

.blog-article[open] {
    box-shadow: 0 4px 24px rgba(0,0,0,0.1);
}

.blog-article summary {
    padding: 24px 32px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background 0.2s;
    user-select: none;
    border-bottom: 1px solid #e0e0e0;
}

.blog-article summary:hover {
    background: var(--accent);
}

.blog-article summary h3 {
    font-size: 1.15rem;
    color: var(--foreground);
    margin: 0;
    font-family: var(--font-heading);
    font-weight: 700;
    flex: 1;
    letter-spacing: -0.5px;
}

.expand-icon {
    font-size: 1.7rem;
    color: var(--primary);
    font-weight: bold;
    margin-left: 18px;
    transition: transform 0.2s;
}

.blog-article[open] .expand-icon {
    transform: rotate(0deg);
}

.article-content {
    padding: 0 32px 32px 32px;
    line-height: 1.8;
    color: var(--foreground);
    font-size: 1.08rem;
}

.article-content h4 {
    color: var(--primary-dark);
    font-size: 1.1rem;
    margin: 24px 0 12px 0;
    font-weight: 600;
    font-family: var(--font-heading);
}

.article-content h5 {
    color: var(--foreground);
    font-size: 1rem;
    margin: 16px 0 8px 0;
    font-weight: 600;
}

.article-content ul, .article-content ol {
    padding-left: 20px;
    margin: 16px 0;
}

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

.pro-tip {
    background: var(--accent);
    border-radius: 16px;
    padding: 18px 24px;
    margin: 24px 0;
    color: var(--foreground);
    font-size: 1rem;
    box-shadow: 0 1px 8px rgba(0,0,0,0.03);
}

.pro-tip h4 {
    margin-top: 0;
}

.real-mom-quote {
    background: var(--card-bg);
    border-left: 4px solid var(--primary);
    padding: 18px 24px;
    margin: 20px 0;
    border-radius: 0 16px 16px 0;
    font-size: 1rem;
    color: var(--foreground);
}

.real-mom-quote blockquote {
    margin: 0;
    font-style: italic;
    color: var(--foreground);
}

.output-ranges {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin: 20px 0;
}

.range-item {
    background: var(--card-bg);
    padding: 16px;
    border-radius: 16px;
    border: 1px solid #e0e0e0;
}

.range-item h4 {
    margin-top: 0;
    color: var(--foreground);
    font-size: 1rem;
}

.comparison-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 24px 0;
}

.feature-comparison {
    background: var(--card-bg);
    padding: 20px;
    border-radius: 16px;
    border: 1px solid #e0e0e0;
}

.feature-comparison h5 {
    margin-top: 0;
    color: var(--foreground);
}

.feature-list {
    margin: 24px 0;
}

.feature-item {
    background: var(--card-bg);
    padding: 20px;
    border-radius: 16px;
    margin-bottom: 16px;
    border: 1px solid #e0e0e0;
}

.feature-item h5 {
    margin-top: 0;
    color: var(--foreground);
    display: flex;
    align-items: center;
    gap: 8px;
}

.success-stories {
    margin: 24px 0;
}

.success-stories blockquote {
    background: var(--card-bg);
    border-left: 4px solid var(--primary);
    padding: 16px 20px;
    margin: 12px 0;
    border-radius: 0 16px 16px 0;
    font-style: italic;
    color: var(--foreground);
}

.action-buttons {
    display: flex;
    gap: 12px;
    margin: 24px 0 0 0;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.app-download-btn {
    background: var(--primary);
    color: var(--button-text);
    padding: 14px 28px;
    border-radius: 24px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.08rem;
    transition: all 0.2s;
    border: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.app-download-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.secondary-btn {
    background: transparent;
    color: var(--primary);
    padding: 14px 28px;
    border: 2px solid var(--primary);
    border-radius: 24px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
}

.secondary-btn:hover {
    background: var(--primary);
    color: white;
}

.download-section {
    background: var(--accent);
    border: 1px solid #e0e0e0;
    border-radius: 32px;
    padding: 48px 32px;
    margin: 48px 0;
    text-align: center;
    box-shadow: 0 2px 16px rgba(0,0,0,0.05);
}

.download-content h2 {
    font-size: 2.5rem;
    color: var(--foreground);
    margin-bottom: 16px;
    font-family: var(--font-heading);
}

.download-benefits {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin: 32px 0;
}

.benefit-item {
    text-align: center;
}

.benefit-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 12px;
}

.benefit-item h3 {
    color: var(--foreground);
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.store-buttons {
    margin: 32px 0;
    display: flex;
}

.download-note {
    color: #666666;
    font-size: 0.9rem;
    margin-top: 16px;
}

.blog-footer {
    text-align: center;
    margin-top: 64px;
    padding: 32px;
    background: var(--accent);
    border-radius: 0 0 32px 32px;
    color: var(--foreground);
    font-size: 1.08rem;
    border-top: none;
}

.footer-content {
    max-width: 900px;
    margin: 0 auto;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 16px;
}

.footer-links a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.footer-links a:hover {
    text-decoration: underline;
}

.challenge-list {
    margin: 20px 0;
}

.challenge-item {
    background: var(--accent);
    padding: 16px;
    border-radius: 16px;
    margin-bottom: 12px;
    border-left: 3px solid var(--primary);
}

.challenge-item h5 {
    margin-top: 0;
    color: var(--foreground);
    display: flex;
    align-items: center;
    gap: 8px;
}

.steps-list {
    margin: 24px 0;
}

.step-item {
    background: var(--card-bg);
    padding: 20px;
    border-radius: 16px;
    margin-bottom: 16px;
    border: 1px solid #e0e0e0;
    position: relative;
}

.step-item:last-child::before {
    display: none;
}

.step-item h5 {
    margin-top: 0;
    color: var(--foreground);
    display: flex;
    align-items: center;
    gap: 8px;
}

.storage-guide {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 24px 0;
}

.storage-guide h4 {
    margin-top: 0;
    color: var(--foreground);
}

.storage-guide p {
    color: var(--foreground);
}

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

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

    .blog-article summary {
        padding: 20px 24px;
    }

    .article-content {
        padding: 0 24px 24px 24px;
    }

    .blog-stats {
        gap: 12px;
    }

    .blog-nav {
        flex-direction: column;
        align-items: center;
    }

    .action-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .store-buttons {
        flex-direction: column;
        align-items: center;
    }
}
