/* ==================================================
   ROJI ROJGAR - ULTRA PRO DYNAMIC BLOG STYLE (v2)
   Modern, Clean, High-Conversion + SEO Friendly
================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
    --primary-color: #d90000;
    --secondary-color: #0f172a;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --bg-light: #f8fafc;
    --glass-bg: rgba(255, 255, 255, 0.9);
    --accent-green: #10b981;
    --accent-red: #ef4444;

    /* Typography scale (fluid) */
    --h1-size: clamp(2rem, 3vw, 2.8rem);
    --h2-size: clamp(1.7rem, 2.4vw, 2.1rem);
    --h3-size: clamp(1.4rem, 2vw, 1.7rem);
    --body-size: 1.1rem;
}

/* Background + base */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, sans-serif !important;
    color: var(--text-main);
}

/* Main Glassmorphism Container */
.main-content {
    max-width: 860px !important;
    margin: 40px auto !important;
    background: var(--glass-bg) !important;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    padding: 48px 56px !important;
    border-radius: 24px !important;
    border: 1px solid rgba(255, 255, 255, 0.5) !important;
    box-shadow: 0 24px 55px -18px rgba(15, 23, 42, 0.35) !important;
    position: relative;
    overflow: hidden;
}

/* Top Accent Line */
.main-content::before {
    content: '';
    position: absolute;
    inset: 0 auto auto 0;
    height: 4px;
    width: 100%;
    background: linear-gradient(90deg, var(--primary-color), #ff4d4d);
}

/* Blog Header Area */
.blog-header {
    margin-bottom: 32px;
}

.blog-header h1 {
    font-size: var(--h1-size) !important;
    font-weight: 800 !important;
    color: var(--secondary-color) !important;
    line-height: 1.15 !important;
    letter-spacing: -0.03em !important;
    margin: 8px 0 16px 0 !important;
}

/* Meta row (category + date + read time) */
.blog-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
    align-items: center;
    margin-bottom: 6px;
}

.blog-cat-badge {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%) !important;
    color: #1d4ed8 !important;
    padding: 7px 18px !important;
    border-radius: 999px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    border: 1px solid #bfdbfe !important;
    box-shadow: 0 4px 12px rgba(29, 78, 216, 0.15) !important;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.blog-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
    font-size: 13px;
    color: var(--text-muted);
}

.blog-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

/* Divider line */
.blog-divider {
    margin: 24px 0 32px 0;
    border: 0;
    border-top: 1px dashed #e2e8f0;
}

/* Article Body */
.article-body {
    font-size: var(--body-size) !important;
    line-height: 1.8 !important;
    color: var(--text-main) !important;
}

/* Headings inside article */
.article-body h2,
.article-body h3,
.article-body h4 {
    color: var(--secondary-color);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.02em;
    margin-top: 36px;
    margin-bottom: 14px;
}

.article-body h2 {
    font-size: var(--h2-size);
    border-left: 4px solid var(--primary-color);
    padding-left: 10px;
}

.article-body h3 {
    font-size: var(--h3-size);
}

.article-body h4 {
    font-size: 1.15rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
}

/* Paragraphs + small text */
.article-body p {
    margin-bottom: 22px !important;
}

.article-body p:last-child {
    margin-bottom: 0 !important;
}

.article-body small {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Ordered / Unordered lists */
.article-body ul,
.article-body ol {
    margin: 0 0 22px 1.2rem;
    padding: 0;
    color: var(--text-main);
}

.article-body li {
    margin-bottom: 8px;
}

.article-body li::marker {
    color: var(--primary-color);
}

/* Blockquote style - highlight important lines */
.article-body blockquote {
    margin: 28px 0;
    padding: 18px 22px;
    border-left: 4px solid var(--primary-color);
    background: #fef2f2;
    border-radius: 14px;
    color: #7f1d1d;
    font-style: italic;
}

/* Table styling */
.article-body table {
    width: 100% !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    border-radius: 14px !important;
    overflow: hidden !important;
    border: 1px solid #e2e8f0 !important;
    margin: 30px 0 !important;
    font-size: 0.98rem;
}

.article-body thead {
    background: #f1f5f9 !important;
}

.article-body th,
.article-body td {
    padding: 13px 14px !important;
}

.article-body th {
    font-weight: 700 !important;
    text-align: left;
    color: #0f172a;
}

.article-body tbody tr:nth-child(even) {
    background: #f9fafb;
}

.article-body td {
    border-top: 1px solid #e2e8f0 !important;
}

/* Callout Boxes */
.pro-tip,
.scam-alert-box {
    padding: 22px 22px 22px 20px !important;
    border-radius: 18px !important;
    margin: 34px 0 !important;
    display: flex;
    gap: 14px;
    align-items: flex-start;
    font-weight: 500;
}

.pro-tip-icon,
.scam-alert-icon {
    font-size: 22px;
    line-height: 1;
    flex-shrink: 0;
    margin-top: 2px;
}

.pro-tip-text,
.scam-alert-text {
    flex: 1;
}

.pro-tip {
    background: #f0fdf4 !important;
    border: 1px solid #bbf7d0 !important;
    border-left: 5px solid var(--accent-green) !important;
    color: #065f46;
}

.scam-alert-box {
    background: #fef2f2 !important;
    border: 1px solid #fecaca !important;
    border-left: 5px solid var(--accent-red) !important;
    color: #991b1b !important;
}

/* Links */
.article-body a {
    color: var(--primary-color) !important;
    text-decoration: none !important;
    font-weight: 700 !important;
    border-bottom: 2px solid rgba(217, 0, 0, 0.18);
    transition: all 0.25s ease;
}

.article-body a:hover {
    border-bottom-color: var(--primary-color);
    background: rgba(217, 0, 0, 0.06);
}

/* Images */
.article-body img {
    width: 100% !important;
    height: auto !important;
    border-radius: 20px !important;
    margin: 32px 0 !important;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.22) !important;
    border: 1px solid rgba(15, 23, 42, 0.06);
    display: block;
}

/* Code snippets inside blog */
.article-body pre,
.article-body code {
    font-family: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 0.9rem;
}

.article-body pre {
    background: #020617;
    color: #e5e7eb;
    padding: 18px 20px;
    border-radius: 14px;
    overflow-x: auto;
    margin: 26px 0;
}

.article-body code {
    background: #f3f4f6;
    padding: 2px 6px;
    border-radius: 4px;
}

/* Responsive */
@media (max-width: 768px) {
    .main-content {
        padding: 28px 18px !important;
        margin: 20px 10px !important;
        border-radius: 18px !important;
    }

    .blog-header h1 {
        letter-spacing: -0.02em !important;
    }

    .blog-meta-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .article-body {
        font-size: 1.02rem !important;
    }

    .article-body table {
        font-size: 0.92rem;
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .pro-tip,
    .scam-alert-box {
        flex-direction: row;
    }
}

/* Extra-small devices */
@media (max-width: 480px) {
    .main-content {
        margin: 14px 8px !important;
        padding: 22px 14px !important;
    }
}
