/* ===== Blog Styles for SizeWise ===== */
/* Dark theme matching main site */

/* ===== Font Import ===== */
@font-face {
    font-family: 'Open Runde';
    src: url('https://framerusercontent.com/assets/3exmuO07FP19gMM08TQrpXl3BGQ.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Open Runde';
    src: url('https://framerusercontent.com/assets/HJY4SY2JywrSZ2l1AEW9Tm9cO8.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'Open Runde';
    src: url('https://framerusercontent.com/assets/hG3wmGmFwadB6X5XPVXkMlmLr8o.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
}

@font-face {
    font-family: 'Open Runde';
    src: url('https://framerusercontent.com/assets/sh6WdegxUPLwf6maNVTPdFTJOG8.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
}

/* ===== CSS Variables ===== */
:root {
    --bg-primary: #0f0f11;
    --bg-secondary: #16161a;
    --bg-card: #18181b;
    --bg-card-hover: #1f1f23;
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.6);
    --text-tertiary: rgba(255, 255, 255, 0.4);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.15);
    --accent-color: #8b8cf8;
    --accent-bg: rgba(139, 140, 248, 0.12);
}

/* ===== Reset & Base ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    background: var(--bg-primary);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* ===== Header & Navigation ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(15, 15, 17, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
}

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

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    height: 36px;
    width: auto;
}

.logo span {
    font-family: 'Inter', sans-serif;
    font-size: 17px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-link {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: var(--text-primary);
}

.nav-link.active {
    color: var(--text-primary);
}

.nav-cta {
    padding: 8px 18px;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.2s ease;
}

.nav-cta:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
}

.nav-cta span {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
}

/* ===== Blog Index Page ===== */
.blog-hero {
    padding: 130px 0 50px;
    text-align: center;
}

.blog-hero h1 {
    font-family: 'Open Runde', sans-serif;
    font-size: 44px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 14px;
    letter-spacing: -0.02em;
}

.blog-hero p {
    font-size: 17px;
    color: var(--text-secondary);
    max-width: 550px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ===== Blog Grid - 2 Columns ===== */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
    padding-bottom: 80px;
}

.blog-card {
    display: block;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.blog-card:hover {
    border-color: rgba(139, 140, 248, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(139, 140, 248, 0.1);
}

.blog-card-coming-soon {
    opacity: 0.55;
    pointer-events: none;
}

.blog-card-image {
    width: 100%;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #1a1a24 0%, #12121a 100%);
    border-bottom: 1px solid var(--border-color);
}

.blog-card-content {
    padding: 22px 24px 24px;
}

.blog-card-category {
    display: inline-block;
    padding: 5px 12px;
    background: var(--accent-bg);
    color: var(--accent-color);
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 14px;
    letter-spacing: 0.01em;
}

.blog-card h2 {
    font-family: 'Open Runde', sans-serif;
    font-size: 19px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 10px;
    line-height: 1.35;
    letter-spacing: -0.01em;
}

.blog-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 13px;
    color: var(--text-tertiary);
}

.blog-card-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.blog-card-meta svg {
    opacity: 0.6;
}

/* ===== Blog Post Page ===== */
.blog-post-hero {
    padding: 130px 24px 36px;
    max-width: 780px;
    margin: 0 auto;
}

.blog-post-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 22px;
    font-size: 14px;
    color: var(--text-tertiary);
}

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

.blog-post-category {
    display: inline-block;
    padding: 6px 14px;
    background: var(--accent-bg);
    color: var(--accent-color);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
}

.blog-post-hero h1 {
    font-family: 'Open Runde', sans-serif;
    font-size: 40px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
}

.blog-post-excerpt {
    font-size: 19px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ===== Article Content ===== */
.article-content {
    max-width: 700px;
    margin: 0 auto;
    padding: 36px 24px 60px;
}

.article-content h2 {
    font-family: 'Open Runde', sans-serif;
    font-size: 26px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 44px 0 18px;
    letter-spacing: -0.01em;
}

.article-content h3 {
    font-family: 'Open Runde', sans-serif;
    font-size: 21px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 32px 0 14px;
}

.article-content p {
    font-size: 17px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 22px;
}

.article-content ul,
.article-content ol {
    margin: 0 0 22px 22px;
    color: var(--text-secondary);
}

.article-content li {
    font-size: 17px;
    line-height: 1.8;
    margin-bottom: 8px;
}

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

.article-content a {
    color: var(--accent-color);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.article-content a:hover {
    color: #a5a6ff;
}

.article-content img {
    width: 100%;
    border-radius: 12px;
    margin: 28px 0;
    border: 1px solid var(--border-color);
}

.article-content blockquote {
    margin: 28px 0;
    padding: 22px 26px;
    background: var(--bg-card);
    border-left: 4px solid var(--accent-color);
    border-radius: 0 12px 12px 0;
}

.article-content blockquote p {
    font-size: 17px;
    font-style: italic;
    color: var(--text-primary);
    margin: 0;
}

.article-content pre {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 18px 22px;
    margin: 22px 0;
    overflow-x: auto;
}

.article-content code {
    font-family: 'JetBrains Mono', 'Fira Code', 'SF Mono', monospace;
    font-size: 14px;
    color: #e0e0e0;
}

.article-content p code {
    background: var(--bg-card);
    padding: 3px 8px;
    border-radius: 5px;
    font-size: 15px;
}

/* ===== Author Box ===== */
.author-box {
    display: flex;
    gap: 20px;
    padding: 26px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    margin: 50px 0 36px;
}

.author-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 600;
    color: white;
}

.author-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.author-info h4 {
    font-family: 'Open Runde', sans-serif;
    font-size: 17px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 3px;
}

.author-info .author-title {
    font-size: 13px;
    color: var(--text-tertiary);
    margin-bottom: 10px;
}

.author-info p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ===== CTA Box ===== */
.cta-box {
    text-align: center;
    padding: 44px 36px;
    background: linear-gradient(145deg, rgba(99, 102, 241, 0.08) 0%, rgba(139, 92, 246, 0.08) 100%);
    border: 1px solid rgba(139, 140, 248, 0.15);
    border-radius: 16px;
    margin: 50px 0;
}

.cta-box h3 {
    font-family: 'Open Runde', sans-serif;
    font-size: 26px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.cta-box p {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 22px;
    max-width: 460px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    display: inline-block;
    padding: 13px 30px;
    background: rgba(255, 255, 255, 0.95);
    color: #1a1a1f;
    border-radius: 10px;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.25s ease;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.15);
    background: white;
}

/* ===== Social Share ===== */
.social-share {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 22px 0;
    border-top: 1px solid var(--border-color);
    margin-top: 36px;
}

.social-share span {
    font-size: 13px;
    color: var(--text-tertiary);
    margin-right: 6px;
}

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 9px;
    color: var(--text-secondary);
    transition: all 0.2s ease;
    cursor: pointer;
}

.share-btn:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    color: var(--text-primary);
}

.share-btn svg {
    width: 17px;
    height: 17px;
}

/* ===== Related Posts ===== */
.related-posts {
    padding: 50px 24px 70px;
    border-top: 1px solid var(--border-color);
    margin-top: 50px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.related-posts h3 {
    font-family: 'Open Runde', sans-serif;
    font-size: 22px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 28px;
    text-align: center;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
}

/* ===== Footer ===== */
.footer {
    padding: 44px 0;
    border-top: 1px solid var(--border-color);
    background: var(--bg-primary);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

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

.footer-logo img {
    height: 28px;
}

.footer-logo span {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-secondary);
}

.footer-links {
    display: flex;
    gap: 28px;
}

.footer-links a {
    font-size: 13px;
    color: var(--text-tertiary);
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--text-primary);
}

.footer-copyright {
    width: 100%;
    text-align: center;
    padding-top: 22px;
    margin-top: 22px;
    border-top: 1px solid var(--border-color);
    font-size: 12px;
    color: var(--text-tertiary);
}

/* ===== Toast Notification ===== */
.toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    padding: 12px 22px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    font-size: 14px;
    color: var(--text-primary);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 1000;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* ===== Responsive Design ===== */
@media (max-width: 900px) {
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }

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

@media (max-width: 768px) {
    .blog-hero {
        padding: 110px 0 36px;
    }

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

    .blog-hero p {
        font-size: 15px;
    }

    .blog-post-hero {
        padding: 110px 20px 28px;
    }

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

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

    .article-content {
        padding: 28px 20px 50px;
    }

    .article-content h2 {
        font-size: 22px;
    }

    .article-content h3 {
        font-size: 19px;
    }

    .article-content p,
    .article-content li {
        font-size: 16px;
    }

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

    .cta-box {
        padding: 32px 20px;
    }

    .cta-box h3 {
        font-size: 22px;
    }

    .nav-links {
        gap: 14px;
    }

    .nav-link {
        font-size: 13px;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 18px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .blog-post-meta {
        flex-wrap: wrap;
        gap: 10px;
    }

    .social-share {
        flex-wrap: wrap;
    }

    .logo span {
        display: none;
    }
}
