/* ===================================
    Blog Styles
   =================================== */

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f9f9f9;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Navigation */
nav {
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
}

.logo {
    font-size: 1.3em;
    font-weight: 700;
    color: #007bff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.logo:hover {
    color: #0056b3;
}

.nav-menu {
    display: flex;
    gap: 30px;
    list-style: none;
}

.nav-menu a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: #007bff;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #333;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        flex-direction: column;
        background: white;
        gap: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    }

    .nav-menu.active {
        max-height: 400px;
    }

    .nav-menu li {
        border-bottom: 1px solid #eee;
    }

    .nav-menu a {
        display: block;
        padding: 15px 20px;
    }
}

/* Container */
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background: white;
    flex: 1;
}

/* Blog Grid (for index page) */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.blog-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.blog-card-header {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    padding: 20px;
}

.blog-card-number {
    font-size: 0.9em;
    opacity: 0.9;
    margin-bottom: 5px;
}

.blog-card-title {
    font-size: 1.3em;
    font-weight: 600;
    line-height: 1.4;
}

.blog-card-body {
    padding: 20px;
}

.blog-card-excerpt {
    font-size: 0.95em;
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

.blog-card-meta {
    display: flex;
    gap: 15px;
    font-size: 0.85em;
    color: #999;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

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

.blog-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.blog-card-category {
    display: inline-block;
    font-size: 0.8em;
    background: #f0f4f8;
    color: #007bff;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 600;
}

.blog-card-link {
    color: #007bff;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.blog-card-link:hover {
    color: #0056b3;
}

/* Headers */
header {
    margin-bottom: 40px;
    border-bottom: 3px solid #007bff;
    padding-bottom: 20px;
}

h1 {
    font-size: 2.5em;
    margin-bottom: 15px;
    color: #222;
}

h2 {
    font-size: 1.8em;
    margin-bottom: 15px;
    color: #222;
    padding-top: 10px;
}

h3 {
    font-size: 1.3em;
    margin-top: 20px;
    margin-bottom: 12px;
    color: #333;
}

h4 {
    font-size: 1.1em;
    margin-top: 15px;
    margin-bottom: 10px;
    color: #333;
}

/* Meta Information */
.meta {
    color: #666;
    font-size: 0.95em;
    display: flex;
    gap: 20px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Table of Contents */
.toc {
    background: #f0f4f8;
    padding: 20px;
    border-left: 4px solid #007bff;
    margin: 30px 0;
    border-radius: 4px;
}

.toc h3 {
    margin-bottom: 15px;
    color: #222;
    margin-top: 0;
}

.toc ol {
    margin-left: 20px;
}

.toc li {
    margin-bottom: 8px;
    color: #555;
}

.toc a {
    color: #007bff;
    text-decoration: none;
}

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

/* Sections */
section {
    margin: 35px 0;
}

/* Paragraphs */
p {
    margin-bottom: 15px;
    font-size: 1.05em;
    line-height: 1.7;
}

/* Strong Text */
strong {
    color: #222;
    font-weight: 600;
}

/* Lists */
ul,
ol {
    margin-left: 25px;
    margin-bottom: 15px;
}

li {
    margin-bottom: 10px;
    line-height: 1.6;
}

/* Links */
a {
    color: #007bff;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    text-decoration: underline;
}

.external-link::after {
    content: " ↗";
    font-size: 0.9em;
}

/* Highlight Box */
.highlight-box {
    background: #e8f4f8;
    border-left: 4px solid #17a2b8;
    padding: 15px;
    margin: 20px 0;
    border-radius: 4px;
}

.highlight-box strong {
    color: #0c5460;
}

/* Warning Box */
.warning-box {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 15px;
    margin: 20px 0;
    border-radius: 4px;
}

/* Danger Box */
.danger-box {
    background: #f8d7da;
    border-left: 4px solid #dc3545;
    padding: 15px;
    margin: 20px 0;
    border-radius: 4px;
}

/* Safe Box */
.safe-box {
    background: #d4edda;
    border-left: 4px solid #28a745;
    padding: 15px;
    margin: 20px 0;
    border-radius: 4px;
}

/* Step Box */
.step-box {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    padding: 15px;
    margin: 15px 0;
    border-radius: 4px;
}

/* Platform Guide */
.platform-guide {
    background: #f0f8ff;
    border: 2px solid #007bff;
    padding: 20px;
    margin: 20px 0;
    border-radius: 4px;
}

.platform-guide h3 {
    color: #007bff;
    margin-top: 0;
}

/* Comparison Box */
.comparison-box {
    background: #f8f9fa;
    border: 2px solid #dee2e6;
    padding: 20px;
    margin: 20px 0;
    border-radius: 4px;
}

.comparison-box h3 {
    margin-top: 0;
}

.pros {
    background: #d4edda;
    padding: 12px;
    border-radius: 4px;
    margin: 10px 0;
    border-left: 3px solid #28a745;
}

.cons {
    background: #f8d7da;
    padding: 12px;
    border-radius: 4px;
    margin: 10px 0;
    border-left: 3px solid #dc3545;
}

.pros ul,
.cons ul {
    margin-left: 20px;
    margin-bottom: 0;
}

/* Workflow Box */
.workflow-box {
    background: #f0f8ff;
    border: 2px solid #007bff;
    padding: 20px;
    border-radius: 4px;
    margin: 20px 0;
}

.workflow-box h4 {
    color: #007bff;
    margin-bottom: 10px;
    margin-top: 0;
}

/* Code Block */
.code-block {
    background: #282c34;
    color: #abb2bf;
    padding: 20px;
    border-radius: 4px;
    margin: 20px 0;
    overflow-x: auto;
    font-family: 'Courier New', monospace;
    font-size: 0.95em;
    line-height: 1.5;
}

.code-block code {
    color: #abb2bf;
}

/* CTA Box */
.cta-box {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    padding: 25px;
    text-align: center;
    border-radius: 6px;
    margin: 30px 0;
}

.cta-box h3 {
    color: white;
    margin-bottom: 10px;
    margin-top: 0;
}

.cta-box p {
    color: white;
    margin-bottom: 15px;
}

.cta-box.success {
    background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%);
}

/* CTA Button */
.cta-button {
    background: white;
    color: #007bff;
    padding: 12px 30px;
    border: none;
    border-radius: 4px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.cta-box.success .cta-button {
    color: #28a745;
}

/* Related Links */
.related-links {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 6px;
    margin: 30px 0;
    border: 1px solid #dee2e6;
}

.related-links h3 {
    margin-bottom: 15px;
    margin-top: 0;
}

.related-links ul {
    list-style: none;
    margin-left: 0;
}

.related-links li {
    margin-bottom: 10px;
}

.related-links a {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
}

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

/* FAQ Item */
.faq-item {
    background: #f8f9fa;
    padding: 15px;
    margin-bottom: 12px;
    border-radius: 4px;
    border-left: 3px solid #007bff;
}

.faq-item strong {
    display: block;
    margin-bottom: 8px;
    color: #007bff;
}

/* Table */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    overflow-x: auto;
}

th,
td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: left;
}

th {
    background: #f0f4f8;
    font-weight: 600;
    color: #333;
}

tr:nth-child(even) {
    background: #f9f9f9;
}

tr:hover {
    background: #f0f4f8;
}

/* Footer */
footer {
    background: #1a1a1a;
    color: #999;
    padding: 40px 20px;
    margin-top: auto;
    font-size: 0.9em;
}

.footer-container {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 30px;
}

.social-links a {
    color: #999;
    font-size: 1.8em;
    text-decoration: none;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: #007bff;
}

.footer-nav {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.footer-nav a {
    color: #999;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-nav a:hover {
    color: #007bff;
}

.footer-copyright {
    color: #666;
    border-top: 1px solid #333;
    padding-top: 20px;
    margin-top: 20px;
}

/* Intro Section */
.intro {
    font-size: 1.1em;
    margin-bottom: 30px;
}

/* Blog Index Header */
header {
    margin-bottom: 50px;
    text-align: center;
}

.subtitle {
    font-size: 1.2em;
    color: #666;
    margin-bottom: 10px;
}

/* Blog Categories */
.blog-categories {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 30px;
    justify-content: center;
}

.category-btn {
    background: white;
    border: 2px solid #007bff;
    color: #007bff;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.category-btn:hover {
    background: #007bff;
    color: white;
}

.category-btn.active {
    background: #007bff;
    color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        max-width: 100%;
        padding: 15px;
    }

    h1 {
        font-size: 1.8em;
    }

    h2 {
        font-size: 1.4em;
    }

    h3 {
        font-size: 1.15em;
    }

    p {
        font-size: 1em;
    }

    .blog-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .meta {
        gap: 10px;
        font-size: 0.85em;
    }

    .toc {
        padding: 15px;
    }

    .toc ol {
        margin-left: 15px;
    }

    table {
        font-size: 0.85em;
    }

    th,
    td {
        padding: 8px;
    }

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

    .footer-nav {
        gap: 15px;
    }

    .social-links {
        gap: 20px;
    }
}

/* Print Styles */
@media print {
    nav,
    footer,
    .cta-box,
    .related-links {
        display: none;
    }

    body {
        background: white;
    }

    .container {
        max-width: 100%;
        box-shadow: none;
    }

    a {
        color: #007bff;
        text-decoration: underline;
    }
}v