﻿:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --accent: #22d3ee;
    --accent-glow: rgba(34, 211, 238, 0.4);
    --bg-dark: #0a0a0f;
    --bg-card: rgba(255, 255, 255, 0.03);
    --bg-card-hover: rgba(255, 255, 255, 0.06);
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --border: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.15);
    --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-hero: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f0f23 100%);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.5);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Vazirmatn', system-ui, -apple-system, sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.8;
}

 Background Effects 
.bg-pattern {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle at 20% 80%, rgba(99, 102, 241, 0.15) 0%, transparent 50%), radial-gradient(circle at 80% 20%, rgba(34, 211, 238, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.grid-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(rgba(255,255,255,0.015) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.015) 1px, transparent 1px);
    background-size: 80px 80px;
    pointer-events: none;
    z-index: 0;
}

/* ==================== HEADER ==================== */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 0.875rem 1rem;
    /*background: rgba(10, 10, 15, 0.9);*/
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transition: all 0.3s ease;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
}

.logo-icon {
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

    .logo-icon img {
        width: 55px;
        height: 55px;
    }


    /* Desktop Navigation - Centered */
    .nav-desktop {
        display: none;
        gap: 0.25rem;
        background: rgba(255, 255, 255, 0.03);
        padding: 0.3rem;
        border-radius: 50px;
        border: 1px solid var(--border);
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }

    .nav-desktop a {
        color: var(--text-secondary);
        text-decoration: none;
        font-size: 0.875rem;
        font-weight: 500;
        padding: 0.5rem 1rem;
        border-radius: 50px;
        transition: all 0.3s ease;
    }

        .nav-desktop a:hover,
        .nav-desktop a.active {
            color: var(--text-primary);
            background: rgba(99, 102, 241, 0.15);
        }

/* Header Actions (Search & CTA) */
.header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.header-cta-btn {
    display: none;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    background: var(--gradient-1);
    color: white;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(99, 102, 241, 0.3);
}

    .header-cta-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
    }

    .header-cta-btn svg {
        width: 14px;
        height: 14px;
    }

.search-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

    .search-btn:hover {
        border-color: var(--accent);
        color: var(--accent);
        background: rgba(34, 211, 238, 0.1);
    }

    .search-btn svg {
        width: 18px;
        height: 18px;
    }

/* Mobile Menu Button */
.menu-btn {
    width: 40px;
    height: 40px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: transparent;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
}

    .menu-btn span {
        width: 20px;
        height: 2px;
        background: currentColor;
        border-radius: 2px;
        transition: all 0.3s;
    }

/* Mobile Navigation */
.nav-mobile {
    display: none;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: rgba(10, 10, 15, 0.98);
    border-bottom: 1px solid var(--border);
    padding: 1rem;
    z-index: 99;
}

    .nav-mobile.active {
        display: block;
    }

    .nav-mobile a {
        display: block;
        color: var(--text-secondary);
        text-decoration: none;
        padding: 0.875rem 1rem;
        border-radius: var(--radius-sm);
        transition: all 0.3s;
    }

        .nav-mobile a:hover,
        .nav-mobile a.active {
            color: var(--text-primary);
            background: rgba(99, 102, 241, 0.1);
        }

/* ==================== MAIN CONTENT ==================== */
main {
    position: relative;
    z-index: 1;
    padding-top: 60px;
}

.aitool-name {
    text-align: center !important;
    font-size: 2rem;
    margin-bottom: 1.1rem;
    color: #818cf8;
}

/* ==================== ARTICLE HERO ==================== */
.article-hero {
    padding: 2rem 1rem;
    position: relative;
}

    .article-hero::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(180deg, rgba(99, 102, 241, 0.08) 0%, transparent 100%);
        pointer-events: none;
    }

.article-hero-content {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-size: 0.8rem;
    flex-wrap: wrap;
}

    .breadcrumb a {
        color: var(--text-muted);
        text-decoration: none;
    }

        .breadcrumb a:hover {
            color: var(--accent);
        }

    .breadcrumb span {
        color: var(--text-muted);
    }

    .breadcrumb .current {
        color: var(--text-secondary);
    }

/* Category Badge */
.article-category {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.3);
    padding: 0.35rem 0.875rem;
    border-radius: 50px;
    font-size: 0.8rem;
    color: var(--primary-light);
    margin-bottom: 1rem;
}

    .article-category svg {
        width: 14px;
        height: 14px;
    }

/* Title */
.article-title {
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1.5;
    margin-bottom: 1rem;
    color: var(--text-primary);
    text-align: center;
}

/* Meta Info */
.article-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

    .article-meta span {
        display: flex;
        align-items: center;
        gap: 0.35rem;
    }

    .article-meta svg {
        width: 14px;
        height: 14px;
    }

/* Excerpt */
.article-excerpt {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

/* Author Box */
.author-box {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
}

.author-avatar {
    width: 48px;
    height: 48px;
    background: var(--gradient-1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.author-info h4 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.15rem;
}

.author-info p {
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* ==================== FEATURED IMAGE ==================== */
.featured-image {
    max-width: 750px;
    margin: 0 auto 2rem;
    padding: 0 1rem;
}

.featured-image-wrapper {
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
}

.featured-image-placeholder {
    width: 100%;
    aspect-ratio: 16/9;
    background: var(--gradient-hero);
    display: flex;
    flex-direction: column;
    /*align-items: center;*/
    justify-content: center;
    gap: 0.75rem;
    color: var(--text-muted);
}

    .featured-image-placeholder svg {
        width: 50px;
        height: 50px;
        opacity: 0.5;
    }

    .featured-image-placeholder span {
        font-size: 0.875rem;
    }

/* ==================== ARTICLE LAYOUT ==================== */
.article-layout {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem 3rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* ==================== ARTICLE CONTENT ==================== */
.article-content {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
}

    .article-content h2 {
        font-size: 1.35rem;
        font-weight: 700;
        margin: 2rem 0 1rem;
        color: var(--text-primary);
        position: relative;
        padding-right: 1rem;
    }

        .article-content h2::before {
            content: '';
            position: absolute;
            right: 0;
            top: 0;
            bottom: 0;
            width: 4px;
            background: var(--gradient-1);
            border-radius: 4px;
        }

        .article-content h2:first-child {
            margin-top: 0;
        }

    .article-content h3 {
        font-size: 1.1rem;
        font-weight: 600;
        margin: 1.5rem 0 0.75rem;
        color: var(--text-primary);
    }

    .article-content p {
        margin-bottom: 1.25rem;
        color: var(--text-secondary);
        font-size: 0.95rem;
        line-height: 1.9;
        text-align: justify;
        text-justify: inter-word;
    }

    .article-content a {
        color: var(--accent);
        text-decoration: none;
    }

    .article-content ul,
    .article-content ol {
        margin: 1.25rem 0;
        padding-right: 1.25rem;
    }

    .article-content li {
        margin-bottom: 0.6rem;
        color: var(--text-secondary);
        font-size: 0.95rem;
    }

    .article-content blockquote {
        margin: 1.5rem 0;
        padding: 1rem 1.25rem;
        background: rgba(99, 102, 241, 0.08);
        border-right: 4px solid var(--primary);
        border-radius: var(--radius-sm);
        font-style: italic;
        color: var(--text-secondary);
    }

    .article-content code {
        background: rgba(255, 255, 255, 0.08);
        padding: 0.15rem 0.4rem;
        border-radius: 4px;
        font-size: 0.85em;
        color: var(--accent);
    }

    .article-content pre {
        background: #1e1e2e;
        padding: 1rem;
        border-radius: var(--radius-md);
        overflow-x: auto;
        margin: 1.25rem 0;
        border: 1px solid var(--border);
        font-size: 0.85rem;
    }

        .article-content pre code {
            background: transparent;
            padding: 0;
            color: var(--text-primary);
        }

/* ==================== INFO BOX ==================== */
.info-box {
    margin: 1.5rem 0;
    padding: 1rem;
    border-radius: var(--radius-md);
    display: flex;
    gap: 0.875rem;
}

    .info-box.tip {
        background: rgba(34, 211, 238, 0.1);
        border: 1px solid rgba(34, 211, 238, 0.3);
    }

    .info-box.warning {
        background: rgba(251, 191, 36, 0.1);
        border: 1px solid rgba(251, 191, 36, 0.3);
    }

.info-box-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.info-box-content h4 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
}

.info-box-content p {
    margin: 0;
    font-size: 0.875rem;
}

/* ==================== SPECS TABLE (SIMPLE 2 COLUMNS) ==================== */
.specs-table-wrapper {
    margin: 2rem 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.specs-header {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.05) 100%);
    border-bottom: 1px solid var(--border);
}

.specs-icon {
    width: 44px;
    height: 44px;
    /*background: var(--gradient-1);*/
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.specs-title h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.15rem;
}

.specs-title p {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 0;
}

.specs-table {
    width: 100%;
    border-collapse: collapse;
}

    .specs-table tr {
        border-bottom: 1px solid var(--border);
    }

        .specs-table tr:last-child {
            border-bottom: none;
        }

        .specs-table tr:nth-child(even) {
            background: rgba(0, 0, 0, 0.15);
        }

    .specs-table th,
    .specs-table td {
        padding: 0.875rem 1rem;
        text-align: right;
        font-size: 0.9rem;
    }

    .specs-table th {
        background: rgba(0, 0, 0, 0.2);
        font-weight: 600;
        color: var(--text-primary);
    }

    .specs-table td:first-child {
        color: var(--text-secondary);
        width: 30%;
    }

    .specs-table td:last-child {
        color: var(--text-primary);
        font-weight: 500;
    }

.spec-badge {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
}

    .spec-badge.free {
        background: rgba(16, 185, 129, 0.15);
        color: #10b981;
    }

    .spec-badge.paid {
        background: rgba(99, 102, 241, 0.15);
        color: var(--primary-light);
    }

    .spec-badge.yes {
        background: rgba(34, 211, 238, 0.15);
        color: var(--accent);
    }

    .spec-badge.no {
        background: rgb(238 34 34 / 15%);
        color: #ee2222;
    }

.specs-footer {
    padding: 1rem;
    background: rgba(0, 0, 0, 0.1);
    border-top: 1px solid var(--border);
}

    .specs-footer p {
        font-size: 0.8rem;
        color: var(--text-muted);
        margin: 0;
        text-align: center;
    }

    .specs-footer > a:not(.specs-cta-btn) {
        color: var(--accent);
        text-decoration: none;
    }

.specs-cta-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    padding: 1rem;
    background: var(--gradient-1);
    color: white;
    text-decoration: none;
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

    .specs-cta-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
    }

.specs-cta-icon {
    font-size: 1.5rem;
}

.specs-cta-text {
    display: flex;
    flex-direction: column;
    text-align: right;
}

    .specs-cta-text strong {
        font-size: 0.95rem;
        font-weight: 700;
    }

    .specs-cta-text small {
        font-size: 0.75rem;
        opacity: 0.85;
    }

.specs-cta-btn svg {
    width: 20px;
    height: 20px;
    margin-right: auto;
}

/* ==================== CONTENT IMAGES ==================== */
.content-image {
    margin: 1.5rem 0;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border);
}

.image-placeholder {
    width: 100%;
    aspect-ratio: 16/9;
    background: linear-gradient(135deg, #1a1a2e 0%, #252538 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    color: var(--text-muted);
}

    .image-placeholder svg {
        width: 50px;
        height: 50px;
        opacity: 0.5;
    }

    .image-placeholder span {
        font-size: 0.85rem;
        text-align: center;
        padding: 0 1rem;
    }

    .image-placeholder.code-screenshot {
        background: linear-gradient(135deg, #1e1e2e 0%, #2d1b4e 100%);
    }

.content-image figcaption {
    padding: 0.75rem 1rem;
    background: rgba(0, 0, 0, 0.2);
    font-size: 0.8rem;
    color: var(--text-muted);
    text-align: center;
}

    .content-image figcaption strong {
        color: var(--text-secondary);
    }

/* ==================== VIDEO ==================== */
.content-video {
    margin: 2rem 0;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border);
}

.video-placeholder {
    width: 100%;
    aspect-ratio: 16/9;
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #0f172a 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    color: var(--text-secondary);
    cursor: pointer;
    position: relative;
    transition: all 0.3s;
}

    .video-placeholder:hover {
        background: linear-gradient(135deg, #1e293b 0%, #312e81 50%, #1e293b 100%);
    }

.play-button {
    width: 64px;
    height: 64px;
    background: var(--gradient-1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.4);
    transition: transform 0.3s;
}

.video-placeholder:hover .play-button {
    transform: scale(1.1);
}

.play-button svg {
    width: 24px;
    height: 24px;
    color: white;
    margin-right: -2px;
}

.video-placeholder > span {
    font-size: 0.9rem;
}

.video-duration {
    position: absolute;
    bottom: 0.75rem;
    left: 0.75rem;
    background: rgba(0, 0, 0, 0.7);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    color: white;
}

.content-video figcaption {
    padding: 0.75rem 1rem;
    background: rgba(0, 0, 0, 0.2);
    font-size: 0.8rem;
    color: var(--text-muted);
    text-align: center;
}

/* ==================== SIDEBAR ==================== */
.article-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.sidebar-widget {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
}

/* Tool CTA Widget */
.tool-cta-widget {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.05) 100%);
    border-color: rgba(99, 102, 241, 0.2);
}

.tool-cta-header {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    margin-bottom: 1rem;
}

.tool-cta-logo {
    width: 50px;
    height: 50px;
    background: white;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    flex-shrink: 0;
}

    .tool-cta-logo img {
        width: 32px;
        height: 32px;
        object-fit: contain;
    }

.tool-cta-info h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.tool-cta-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

    .tool-cta-rating .stars {
        color: #fbbf24;
        font-size: 0.85rem;
        letter-spacing: -1px;
    }

    .tool-cta-rating .rating-text {
        font-size: 0.8rem;
        color: var(--text-muted);
    }

.tool-cta-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

    .tool-cta-features span {
        display: inline-flex;
        align-items: center;
        gap: 0.3rem;
        font-size: 0.8rem;
        color: var(--text-secondary);
        background: rgba(255, 255, 255, 0.05);
        padding: 0.3rem 0.6rem;
        border-radius: 50px;
    }

    .tool-cta-features svg {
        width: 12px;
        height: 12px;
        color: #10b981;
    }

.tool-cta-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.875rem 1rem;
    background: var(--gradient-1);
    color: white;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

    .tool-cta-button:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
    }

    .tool-cta-button svg {
        width: 16px;
        height: 16px;
    }

.tool-cta-note {
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.75rem;
    margin-bottom: 0;
}

.sidebar-widget h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

    .sidebar-widget h3 svg {
        width: 18px;
        height: 18px;
    }

/* TOC */
.toc-list {
    list-style: none;
}

    .toc-list li {
        margin-bottom: 0.35rem;
    }

    .toc-list a {
        display: block;
        padding: 0.5rem 0.75rem;
        color: var(--text-secondary);
        text-decoration: none;
        font-size: 0.85rem;
        border-radius: var(--radius-sm);
        border-right: 2px solid transparent;
        transition: all 0.3s;
    }

        .toc-list a:hover,
        .toc-list a.active {
            background: rgba(99, 102, 241, 0.1);
            color: var(--text-primary);
            border-right-color: var(--primary);
        }

.category-list {
    list-style: none;
}

    .category-list li {
        margin-bottom: 0.5rem;
    }

    .category-list a {
        display: block;
        padding: 0.6rem 1rem;
        color: var(--text-secondary);
        text-decoration: none;
        font-size: 0.99rem;
        border-radius: var(--radius-sm);
        transition: all 0.3s;
        border-right: 2px solid transparent;
    }

        .category-list a:hover,
        .category-list a.active {
            background: rgba(99, 102, 241, 0.1);
            color: var(--text-primary);
            border-right-color: var(--primary);
        }

/* Related Articles */
.related-item {
    display: flex;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
}

    .related-item:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

    .related-item:first-child {
        padding-top: 0;
    }

.related-thumb {
    width: 75px;
    height: 75px;
    background: var(--gradient-hero);
    border-radius: var(--radius-sm);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.related-info h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
    line-height: 1.4;
}

    .related-info h4 a {
        color: var(--text-primary);
        text-decoration: none;
        transition: color 0.3s;
    }

        .related-info h4 a:hover {
            color: var(--accent);
        }

.related-info h5 {
    color: var(--text-muted);
}

.related-info span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.ai-logo img {
    border-radius: 8px;
}

/* Share Buttons */
.share-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.share-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

    .share-btn:hover {
        border-color: var(--accent);
        color: var(--accent);
    }

    .share-btn svg {
        width: 18px;
        height: 18px;
    }

/* Related Articles */
.related-item {
    display: flex;
    gap: 0.875rem;
    padding: 0.875rem 0;
    border-bottom: 1px solid var(--border);
}

    .related-item:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

    .related-item:first-child {
        padding-top: 0;
    }

.related-thumb {
    width: 56px;
    height: 56px;
    background: var(--gradient-hero);
    border-radius: var(--radius-sm);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.related-info h4 {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.2rem;
    line-height: 1.4;
}

    .related-info h4 a {
        color: var(--text-primary);
        text-decoration: none;
    }

        .related-info h4 a:hover {
            color: var(--accent);
        }

.related-info span {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ==================== TAGS ==================== */
.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.article-tag {
    display: inline-flex;
    padding: 0.4rem 0.875rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 50px;
    color: var(--text-secondary);
    font-size: 0.8rem;
    text-decoration: none;
    transition: all 0.3s;
}

    .article-tag:hover {
        border-color: var(--accent);
        color: var(--accent);
    }

/* ==================== COMMENTS ==================== */
.comments-section {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1rem 3rem;
}

.comments-container {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
}

.comments-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

    .comments-header h3 {
        font-size: 1.1rem;
        font-weight: 600;
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

        .comments-header h3 svg {
            width: 20px;
            height: 20px;
        }

.comment-count {
    background: var(--gradient-1);
    padding: 0.2rem 0.6rem;
    border-radius: 50px;
    font-size: 0.75rem;
}

/* Comment Form */
.comment-form textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.9rem;
    resize: vertical;
    min-height: 100px;
}

    .comment-form textarea:focus {
        outline: none;
        border-color: var(--primary);
    }

    .comment-form textarea::placeholder {
        color: var(--text-muted);
    }

.comment-form-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 0.875rem;
}

/* Button */
.btn {
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: none;
}

.btn-primary {
    background: var(--gradient-1);
    color: white;
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.3);
}

    .btn-primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
    }

.btn svg {
    width: 16px;
    height: 16px;
}

/* Comment List */
.comment-list {
    list-style: none;
    margin-top: 1.5rem;
}

.comment-item {
    padding: 1.25rem 0;
    border-top: 1px solid var(--border);
}

.comment-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.comment-avatar {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #10a37f, #1a7f64);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.comment-meta h4 {
    font-size: 0.9rem;
    font-weight: 600;
}

.comment-meta span {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.comment-body {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.7;
}

.comment-actions {
    display: flex;
    gap: 1rem;
    margin-top: 0.75rem;
}

.comment-action {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--text-muted);
    font-size: 0.8rem;
    cursor: pointer;
    background: none;
    border: none;
}

    .comment-action:hover {
        color: var(--accent);
    }

    .comment-action svg {
        width: 14px;
        height: 14px;
    }

/* Comment Form Row */
.comment-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.comment-form-row input {
    width: 100%;
    padding: 0.875rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.9rem;
}

.comment-form-row input:focus {
    outline: none;
    border-color: var(--primary);
}

.comment-form-row input::placeholder {
    color: var(--text-muted);
}

/* Replying To Indicator */
.replying-to {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: var(--radius-sm);
    padding: 0.5rem 0.75rem;
    margin-bottom: 0.75rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.replying-to strong {
    color: var(--accent);
}

.cancel-reply {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.25rem;
    display: flex;
    align-items: center;
    transition: color 0.3s;
}

.cancel-reply:hover {
    color: #ef4444;
}

.cancel-reply svg {
    width: 16px;
    height: 16px;
}

/* Comment Message */
.comment-message {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    margin-top: 0.75rem;
    animation: fadeIn 0.3s ease;
}

.comment-message.success {
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #22c55e;
}

.comment-message.error {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

.comment-message svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* Comment Replies */
.comment-replies {
    list-style: none;
    margin-top: 1rem;
    padding-right: 2rem;
    border-right: 2px solid rgba(99, 102, 241, 0.2);
}

.reply-item {
    padding: 1rem 0;
    border-top: 1px solid var(--border);
}

.reply-item:first-child {
    border-top: none;
    padding-top: 0;
}

.reply-item .comment-avatar {
    width: 32px;
    height: 32px;
    font-size: 0.8rem;
}

.reply-item .comment-meta h4 {
    font-size: 0.85rem;
}

.reply-item .comment-body {
    font-size: 0.85rem;
}

/* No Comments */
.no-comments {
    text-align: center;
    padding: 2rem 1rem;
    color: var(--text-muted);
}

.no-comments svg {
    width: 48px;
    height: 48px;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.no-comments p {
    font-size: 0.9rem;
}

/* Comment Button Loading */
#submitCommentBtn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

#submitCommentBtn .spinner {
    width: 18px;
    height: 18px;
    animation: spin 1s linear infinite;
}

/* Responsive Comments */
@media (max-width: 576px) {
    .comment-form-row {
        grid-template-columns: 1fr;
    }

    .comment-replies {
        padding-right: 1rem;
    }
}

/* ==================== CTA SECTION ==================== */
.cta-section {
    padding: 3rem 1rem;
}

.cta-container {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    background: var(--gradient-hero);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 2.5rem 1.5rem;
    position: relative;
    overflow: hidden;
}

    .cta-container::before {
        content: '';
        position: absolute;
        top: -50%;
        left: -50%;
        width: 200%;
        height: 200%;
        background: conic-gradient(from 0deg, transparent 0deg, var(--accent-glow) 45deg, transparent 90deg);
        animation: rotate 15s linear infinite;
        opacity: 0.15;
    }

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.cta-text {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: 1px solid var(--border);
}

    .btn-secondary:hover {
        border-color: var(--primary-light);
        background: rgba(99, 102, 241, 0.1);
    }

/* ==================== FOOTER ==================== */
footer {
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid var(--border);
    padding: 2.5rem 1rem 1.5rem;
    position: relative;
    z-index: 1;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

.footer-brand .logo {
    justify-content: center;
    margin-bottom: 0.75rem;
}

.footer-brand p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.7;
    text-align: justify;
    text-justify: inter-word;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

    .footer-links a {
        color: var(--text-secondary);
        text-decoration: none;
        font-size: 0.875rem;
    }

        .footer-links a:hover {
            color: var(--accent);
        }

.footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.footer-copyright {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.footer-social {
    display: flex;
    gap: 0.75rem;
}

    .footer-social a {
        width: 36px;
        height: 36px;
        border-radius: 50%;
        border: 1px solid var(--border);
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--text-secondary);
        transition: all 0.3s;
    }

        .footer-social a:hover {
            border-color: var(--accent);
            color: var(--accent);
        }

    .footer-social svg {
        width: 16px;
        height: 16px;
    }

/* ==================== FLOATING MOBILE CTA ==================== */
.floating-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    position: fixed;
    bottom: 1rem;
    left: 1rem;
    right: 1rem;
    padding: 1rem;
    background: var(--gradient-1);
    color: white;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
    z-index: 90;
    transition: all 0.3s ease;
    transform: translateY(100px);
    opacity: 0;
}

    .floating-cta.visible {
        transform: translateY(0);
        opacity: 1;
    }

    .floating-cta:hover {
        box-shadow: 0 6px 25px rgba(99, 102, 241, 0.5);
    }

    .floating-cta svg {
        width: 18px;
        height: 18px;
    }

/* ==================== RESPONSIVE - TABLET ==================== */
@media (min-width: 768px) {
    header {
        padding: 1rem 1.5rem;
    }

    .menu-btn {
        display: none;
    }

    .nav-desktop {
        display: flex;
    }

    .header-cta-btn {
        display: inline-flex;
    }

    .header-actions {
        gap: 0.5rem;
    }

    .floating-cta {
        display: none;
    }

    .article-hero {
        padding: 3rem 1.5rem;
    }

    .article-title {
        font-size: 2.25rem;
    }

    .article-content {
        padding: 2rem;
    }

        .article-content h2 {
            font-size: 1.5rem;
        }

    .article-sidebar {
        flex-direction: row;
    }

    .sidebar-widget {
        flex: 1;
    }

    .cta-container {
        padding: 3rem 2rem;
    }

    .cta-title {
        font-size: 1.75rem;
    }

    .footer-grid {
        grid-template-columns: 2fr 1fr;
        text-align: right;
    }

    .footer-brand .logo {
        justify-content: flex-start;
    }

    .footer-links {
        justify-content: flex-end;
    }

    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
    }
}

/* ==================== RESPONSIVE - DESKTOP ==================== */
@media (min-width: 1024px) {
    .article-hero {
        padding: 4rem 2rem;
    }

    .article-title {
        font-size: 2.5rem;
    }

    .article-excerpt {
        font-size: 1.1rem;
    }

    .article-layout {
        flex-direction: row;
        padding: 0 2rem 4rem;
    }

    .article-content {
        flex: 1;
        padding: 2.5rem;
    }

    .article-sidebar {
        width: 300px;
        flex-direction: column;
        position: sticky;
        top: 90px;
        height: fit-content;
    }

    .footer-grid {
        grid-template-columns: 1.5fr repeat(3, 1fr);
        gap: 3rem;
    }

    .footer-links {
        flex-direction: column;
        gap: 0.6rem;
        align-items: flex-start;
    }
}

/* ==================== RESPONSIVE - LARGE DESKTOP ==================== */
@media (min-width: 1280px) {
    .article-title {
        font-size: 2.75rem;
    }

    .article-content {
        padding: 3rem;
    }

    .article-sidebar {
        width: 320px;
    }
}

.text-center {
    text-align: center !important;
}

.hr-top-30 {
    margin-top: 30px !important;
}
