/* ============================================================
   SeasOptima Blog v2 - Index + Show
   ============================================================ */

body.v2.blog-v2 main { padding: 0 !important; }

/* ---------- INDEX ---------- */
body.v2 .blg-hero {
    background: linear-gradient(180deg, var(--bg-page) 0%, var(--bg-subtle) 100%);
    padding: 64px 24px 48px; text-align: center;
    border-bottom: 1px solid var(--border);
}
body.v2 .blg-eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 5px 12px; border-radius: 999px;
    background: var(--brand-light); color: var(--brand);
    font-family: var(--font-mono);
    font-size: 10px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
    margin-bottom: 14px;
}
body.v2 .blg-eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--brand); }
body.v2 .blg-hero h1 {
    font-family: var(--font-display);
    font-size: 38px; font-weight: 700; letter-spacing: -0.025em; line-height: 1.15;
    color: var(--text-primary); margin: 0 0 12px;
}
body.v2 .blg-hero p {
    color: var(--text-secondary); font-size: 15px; line-height: 1.65;
    max-width: 600px; margin: 0 auto;
}

body.v2 .blg-section { padding: 56px 24px; }
body.v2 .blg-grid {
    max-width: 1200px; margin: 0 auto;
    display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px;
}
body.v2 .blg-card {
    background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px;
    overflow: hidden; display: flex; flex-direction: column;
    transition: all .2s;
}
body.v2 .blg-card:hover {
    border-color: var(--brand); transform: translateY(-2px);
    box-shadow: 0 12px 24px -16px rgba(249,115,22,.25);
}
body.v2 .blg-card-image {
    aspect-ratio: 16/9; background: var(--bg-subtle); overflow: hidden;
    border-bottom: 1px solid var(--border);
}
body.v2 .blg-card-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
body.v2 .blg-card-fallback {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-mono); font-size: 32px; font-weight: 700;
    color: var(--brand); background: var(--brand-light);
    letter-spacing: 0.1em;
}
body.v2 .blg-card-body {
    padding: 20px; flex: 1; display: flex; flex-direction: column;
}
body.v2 .blg-card-title {
    font-family: var(--font-display);
    font-size: 17px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.3;
    margin: 0 0 10px;
}
body.v2 .blg-card-title a { color: var(--text-primary); text-decoration: none; }
body.v2 .blg-card-title a:hover { color: var(--brand); }
body.v2 .blg-card-desc {
    color: var(--text-secondary); font-size: 13.5px; line-height: 1.55;
    margin: 0 0 16px; flex: 1;
}
body.v2 .blg-card-foot {
    display: flex; justify-content: space-between; align-items: center;
    font-size: 12px; padding-top: 12px;
    border-top: 1px solid var(--border);
}
body.v2 .blg-card-foot time { color: var(--text-tertiary); font-family: var(--font-mono); }
body.v2 .blg-card-foot a { color: var(--brand); font-weight: 600; text-decoration: none; }
body.v2 .blg-empty {
    text-align: center; padding: 60px 20px;
    color: var(--text-tertiary); max-width: 1200px; margin: 0 auto;
}

/* ---------- SHOW ---------- */
body.v2 .blg-show-root {
    background: var(--bg-page);
    padding: 36px 24px 64px;
    min-height: calc(100vh - 200px);
}
body.v2 .blg-show-page { max-width: 820px; margin: 0 auto; }

body.v2 .blg-breadcrumb {
    display: flex; flex-wrap: wrap; gap: 6px; align-items: center;
    font-size: 12px; color: var(--text-tertiary); margin-bottom: 18px;
    font-family: var(--font-mono);
}
body.v2 .blg-breadcrumb a { color: var(--text-secondary); font-weight: 500; text-decoration: none; }
body.v2 .blg-breadcrumb a:hover { color: var(--brand); }
body.v2 .blg-breadcrumb .sep { color: var(--text-tertiary); }

body.v2 .blg-article-top { margin-bottom: 24px; }
body.v2 .blg-article-hero {
    width: 100%; max-height: 380px; overflow: hidden;
    border-radius: 14px; margin-bottom: 22px;
    border: 1px solid var(--border);
}
body.v2 .blg-article-hero img { width: 100%; height: 100%; object-fit: cover; display: block; }
body.v2 .blg-article-top h1 {
    font-family: var(--font-display);
    font-size: 36px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.2;
    color: var(--text-primary); margin: 0 0 10px;
}
body.v2 .blg-article-meta {
    color: var(--text-tertiary); font-size: 12px;
    font-family: var(--font-mono); letter-spacing: 0.05em;
}

body.v2 .blg-article {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: 14px; padding: 32px;
}
body.v2 .blg-lang-switcher {
    display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 22px;
    padding-bottom: 16px; border-bottom: 1px solid var(--border);
}
body.v2 .blg-lang-btn {
    padding: 4px 10px; font-size: 11px; font-weight: 700;
    color: var(--text-secondary); background: var(--bg-subtle);
    border: 1px solid var(--border); border-radius: 6px;
    text-decoration: none; letter-spacing: 0.04em;
}
body.v2 .blg-lang-btn:hover { border-color: var(--brand); color: var(--brand); }
body.v2 .blg-lang-btn.active { background: var(--brand); color: #fff; border-color: var(--brand); }

body.v2 .blg-content { color: var(--text-primary); font-size: 16px; line-height: 1.75; }
body.v2 .blg-content h2 {
    font-family: var(--font-display);
    font-size: 24px; font-weight: 700; letter-spacing: -0.02em;
    margin: 32px 0 14px; color: var(--text-primary);
}
body.v2 .blg-content h3 {
    font-family: var(--font-display);
    font-size: 18px; font-weight: 700; margin: 24px 0 10px; color: var(--text-primary);
}
body.v2 .blg-content h4 {
    font-family: var(--font-display);
    font-size: 15px; font-weight: 700; margin: 18px 0 8px; color: var(--text-primary);
}
body.v2 .blg-content p {
    color: var(--text-secondary); font-size: 16px; line-height: 1.75;
    margin: 0 0 16px;
}
body.v2 .blg-content ul,
body.v2 .blg-content ol {
    color: var(--text-secondary); font-size: 16px; line-height: 1.75;
    margin: 12px 0 18px 24px; padding: 0;
}
body.v2 .blg-content li { margin-bottom: 8px; }
body.v2 .blg-content a { color: var(--brand); font-weight: 600; text-decoration: none; }
body.v2 .blg-content a:hover { text-decoration: underline; }
body.v2 .blg-content strong, body.v2 .blg-content b { color: var(--text-primary); }
body.v2 .blg-content img { max-width: 100%; height: auto; border-radius: 10px; margin: 20px 0; }
body.v2 .blg-content code {
    font-family: var(--font-mono); font-size: 13px;
    padding: 2px 6px; background: var(--bg-subtle);
    border-radius: 4px; color: var(--text-primary);
}
body.v2 .blg-content blockquote {
    border-left: 3px solid var(--brand); background: var(--brand-light);
    padding: 12px 18px; margin: 20px 0; color: var(--text-primary);
    border-radius: 0 10px 10px 0;
}
body.v2 .blg-content pre {
    background: var(--bg-dark); color: #F3F4F6;
    padding: 14px 16px; border-radius: 10px; overflow-x: auto;
    margin: 20px 0; font-family: var(--font-mono); font-size: 13px;
}
body.v2 .blg-content table {
    width: 100%; border-collapse: collapse; margin: 20px 0;
    font-size: 14px; background: var(--bg-card);
    border: 1px solid var(--border); border-radius: 10px; overflow: hidden;
}
body.v2 .blg-content th,
body.v2 .blg-content td {
    border-bottom: 1px solid var(--border); padding: 10px 14px;
    text-align: left; color: var(--text-secondary);
    background: transparent;
}
body.v2 .blg-content th {
    background: var(--bg-subtle); font-weight: 700; color: var(--text-secondary);
    font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em;
}

body.v2 .blg-cta {
    background: linear-gradient(135deg, #0B1220 0%, #1F2937 100%);
    color: #F3F4F6; padding: 32px; border-radius: 14px;
    text-align: center; margin: 32px 0 0;
    position: relative; overflow: hidden;
}
body.v2 .blg-cta::before {
    content: ""; position: absolute; top: -100px; right: -100px;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(249,115,22,0.18), transparent 60%);
    pointer-events: none;
}
body.v2 .blg-cta h3 {
    color: #F3F4F6 !important; -webkit-text-fill-color: #F3F4F6;
    font-family: var(--font-display);
    font-size: 22px; font-weight: 700; letter-spacing: -0.01em;
    margin: 0 0 10px; position: relative;
}
body.v2 .blg-cta p {
    color: #CBD5E1; font-size: 15px; margin: 0 0 18px; position: relative;
}
body.v2 .blg-cta a {
    display: inline-block; padding: 12px 24px;
    background: var(--brand); color: #fff;
    border-radius: 10px; font-weight: 600; text-decoration: none;
    font-size: 14px; position: relative;
}
body.v2 .blg-cta a:hover { background: var(--brand-hover); }

body.v2 .blg-nav {
    display: grid; grid-template-columns: 1fr auto 1fr;
    gap: 14px; margin-top: 32px; align-items: center;
}
body.v2 .blg-nav a {
    padding: 12px 16px; background: var(--bg-card);
    border: 1px solid var(--border); border-radius: 10px;
    color: var(--text-secondary); text-decoration: none;
    font-size: 13px; font-weight: 600; transition: all .15s;
}
body.v2 .blg-nav a:hover { border-color: var(--brand); color: var(--brand); }
body.v2 .blg-nav .blg-nav-back { text-align: center; }
body.v2 .blg-nav .blg-nav-next { text-align: right; }

@media (max-width: 700px) {
    body.v2 .blg-hero h1 { font-size: 28px; }
    body.v2 .blg-article-top h1 { font-size: 26px; }
    body.v2 .blg-article { padding: 22px; }
    body.v2 .blg-nav { grid-template-columns: 1fr; }
}
