/* ==========================================
   Neuronica Blog Styles
   Dark green theme with modern design
   ========================================== */

/* Blog Main Container */
.blog-main {
    position: relative;
    z-index: 1;
    padding-top: 100px;
}

/* ==========================================
   Hero Section
   ========================================== */
.blog-hero {
    position: relative;
    padding: 60px 24px 40px;
    text-align: center;
    overflow: hidden;
}

.blog-hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.blog-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(0, 245, 212, 0.1);
    border: 1px solid rgba(0, 245, 212, 0.2);
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--primary);
    margin-bottom: 24px;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.5); opacity: 0.5; }
}

.blog-hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary), #10b981, #00d4aa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.blog-hero-desc {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 32px;
    line-height: 1.7;
}

/* Search */
.blog-search {
    position: relative;
    max-width: 500px;
    margin: 0 auto;
}

.blog-search input {
    width: 100%;
    padding: 16px 48px 16px 52px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 16px;
    font-size: 1rem;
    color: var(--text);
    transition: all 0.3s ease;
}

.blog-search input:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(0, 245, 212, 0.05);
    box-shadow: 0 0 0 4px rgba(0, 245, 212, 0.1);
}

.blog-search input::placeholder {
    color: var(--text-muted);
}

.search-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: var(--text-muted);
}

.blog-search kbd {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    padding: 4px 8px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 0.75rem;
    color: var(--text-muted);
    font-family: 'JetBrains Mono', monospace;
}

/* Floating Elements */
.blog-hero-floats {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.float-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: rgba(18, 18, 26, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 500;
    animation: float 6s ease-in-out infinite;
}

.float-icon {
    font-size: 1.2rem;
}

.float-1 {
    top: 20%;
    left: 5%;
    animation-delay: 0s;
}

.float-2 {
    top: 30%;
    right: 8%;
    animation-delay: 2s;
}

.float-3 {
    bottom: 20%;
    left: 10%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(2deg); }
}

/* ==========================================
   Categories
   ========================================== */
.blog-categories {
    padding: 0 24px 40px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.categories-scroll {
    display: flex;
    gap: 12px;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 4px;
}

.category-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.category-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--border-hover);
    color: var(--text);
}

.category-btn.active {
    background: linear-gradient(135deg, rgba(0, 245, 212, 0.15), rgba(16, 185, 129, 0.1));
    border-color: rgba(0, 245, 212, 0.3);
    color: var(--primary);
}

.category-count {
    padding: 2px 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    font-size: 0.75rem;
}

.category-btn.active .category-count {
    background: rgba(0, 245, 212, 0.2);
}

/* ==========================================
   Featured Post
   ========================================== */
.blog-featured {
    padding: 0 24px 60px;
    max-width: 1200px;
    margin: 0 auto;
}

.featured-card {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 24px;
    overflow: hidden;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.featured-card:hover {
    border-color: rgba(0, 245, 212, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 40px rgba(0, 245, 212, 0.1);
}

.featured-image {
    position: relative;
    min-height: 400px;
    overflow: hidden;
}

.featured-image img {
    width: 100%;
    height: 100%;
    min-height: 400px;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.featured-card:hover .featured-image img {
    transform: scale(1.05);
}

.featured-image-placeholder {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, 
        rgba(0, 80, 60, 0.9) 0%,
        rgba(0, 50, 40, 0.95) 50%,
        rgba(0, 30, 25, 1) 100%
    );
    display: flex;
    align-items: center;
    justify-content: center;
}

.featured-image-placeholder::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(circle at 30% 20%, rgba(0, 245, 212, 0.3) 0%, transparent 40%),
        radial-gradient(circle at 70% 80%, rgba(16, 185, 129, 0.2) 0%, transparent 40%);
    animation: shimmer 8s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.placeholder-overlay {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 30px;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.placeholder-icon {
    font-size: 3rem;
}

.placeholder-text {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text);
}

.featured-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    padding: 8px 16px;
    background: linear-gradient(135deg, var(--primary), var(--success));
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--bg);
}

.featured-content {
    padding: 40px 40px 40px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.featured-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 16px;
    font-size: 0.85rem;
}

.meta-category {
    color: var(--primary);
    font-weight: 600;
}

.meta-dot {
    color: var(--text-muted);
}

.meta-date, .meta-read {
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 4px;
}

.featured-title {
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--text);
    margin-bottom: 16px;
}

.featured-excerpt {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 20px;
}

.featured-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.tag {
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.featured-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    font-weight: 600;
    transition: gap 0.3s ease;
}

.featured-card:hover .featured-cta {
    gap: 12px;
}

/* ==========================================
   Blog Grid
   ========================================== */
.blog-grid-section {
    padding: 0 24px 60px;
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.section-header h2 {
    font-size: 1.8rem;
    font-weight: 700;
}

.view-toggle {
    display: flex;
    gap: 4px;
    padding: 4px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 10px;
}

.view-btn {
    padding: 8px 12px;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.view-btn:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.05);
}

.view-btn.active {
    color: var(--primary);
    background: rgba(0, 245, 212, 0.1);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 24px;
}

.blog-grid[data-view="list"] {
    grid-template-columns: 1fr;
}

.blog-grid[data-view="list"] .blog-card .card-link {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 24px;
}

.blog-grid[data-view="list"] .card-image {
    height: 180px;
}

/* Blog Card */
.blog-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.blog-card.fade-in {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.blog-card:hover {
    border-color: rgba(0, 245, 212, 0.3);
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3), 0 0 30px rgba(0, 245, 212, 0.08);
}

.card-link {
    display: block;
    text-decoration: none;
}

.card-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card:hover .card-image img {
    transform: scale(1.08);
}

.card-image .model-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 8px 14px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text);
    z-index: 2;
}

.card-image-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Different gradients for different models */
.card-image-placeholder[data-model="z-image"] {
    background: linear-gradient(135deg, 
        rgba(0, 80, 60, 0.95) 0%,
        rgba(0, 60, 50, 0.98) 50%,
        rgba(0, 40, 35, 1) 100%
    );
}

.card-image-placeholder[data-model="nano-banana"] {
    background: linear-gradient(135deg, 
        rgba(60, 80, 20, 0.95) 0%,
        rgba(40, 60, 15, 0.98) 50%,
        rgba(30, 45, 10, 1) 100%
    );
}

.card-image-placeholder[data-model="seedream"] {
    background: linear-gradient(135deg, 
        rgba(20, 80, 70, 0.95) 0%,
        rgba(15, 60, 55, 0.98) 50%,
        rgba(10, 45, 40, 1) 100%
    );
}

.placeholder-glow {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(circle at 30% 30%, rgba(0, 245, 212, 0.4) 0%, transparent 50%),
        radial-gradient(circle at 70% 70%, rgba(16, 185, 129, 0.3) 0%, transparent 50%);
    opacity: 0.5;
    transition: opacity 0.4s ease;
}

.placeholder-glow.active {
    opacity: 1;
    animation: glowPulse 2s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.model-badge {
    position: relative;
    padding: 10px 18px;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
}

.card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 60%);
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    padding: 16px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.blog-card:hover .card-overlay {
    opacity: 1;
}

.read-more {
    padding: 8px 16px;
    background: var(--primary);
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--bg);
}

.card-content {
    padding: 24px;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 0.8rem;
}

.card-meta .meta-category {
    color: var(--primary);
    font-weight: 600;
}

.card-meta .meta-read {
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
}

.card-title {
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.4;
    color: var(--text);
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.card-date {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.card-tags {
    display: flex;
    gap: 6px;
}

.mini-tag {
    padding: 4px 10px;
    background: rgba(0, 245, 212, 0.1);
    border-radius: 6px;
    font-size: 0.7rem;
    color: var(--primary);
}

/* ==========================================
   Newsletter Section
   ========================================== */
.blog-newsletter {
    padding: 60px 24px;
    max-width: 900px;
    margin: 0 auto;
}

.newsletter-card {
    position: relative;
    padding: 60px;
    background: linear-gradient(135deg, 
        rgba(0, 80, 60, 0.4) 0%,
        rgba(0, 60, 50, 0.3) 50%,
        var(--bg-card) 100%
    );
    border: 1px solid rgba(0, 245, 212, 0.2);
    border-radius: 24px;
    overflow: hidden;
}

.newsletter-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.newsletter-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary), var(--success));
    border-radius: 20px;
    color: var(--bg);
    margin-bottom: 24px;
}

.newsletter-content h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.newsletter-content p {
    color: var(--text-secondary);
    margin-bottom: 28px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.newsletter-form {
    display: flex;
    gap: 12px;
    max-width: 500px;
    margin: 0 auto 16px;
}

.newsletter-form input {
    flex: 1;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 12px;
    font-size: 1rem;
    color: var(--text);
    transition: all 0.3s ease;
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(0, 245, 212, 0.05);
}

.newsletter-form input::placeholder {
    color: var(--text-muted);
}

.newsletter-note {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.newsletter-decoration {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.deco-circle {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(0, 245, 212, 0.2);
}

.deco-1 {
    width: 300px;
    height: 300px;
    top: -100px;
    right: -100px;
    animation: rotate 20s linear infinite;
}

.deco-2 {
    width: 200px;
    height: 200px;
    bottom: -50px;
    left: -50px;
    animation: rotate 15s linear infinite reverse;
}

.deco-3 {
    width: 150px;
    height: 150px;
    top: 50%;
    left: 10%;
    animation: rotate 25s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ==========================================
   Tags Section
   ========================================== */
.blog-tags-section {
    padding: 0 24px 60px;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.blog-tags-section h3 {
    font-size: 1.3rem;
    margin-bottom: 24px;
    color: var(--text-secondary);
}

.tags-cloud {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.cloud-tag {
    padding: 10px 18px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.cloud-tag:hover {
    background: rgba(0, 245, 212, 0.1);
    border-color: rgba(0, 245, 212, 0.3);
    color: var(--primary);
    transform: translateY(-2px);
}

.cloud-tag.medium {
    font-size: 1rem;
    padding: 12px 22px;
}

.cloud-tag.large {
    font-size: 1.1rem;
    padding: 14px 26px;
    font-weight: 600;
}

/* ==========================================
   CTA Section
   ========================================== */
.blog-cta {
    padding: 80px 24px;
    text-align: center;
    background: linear-gradient(to bottom, transparent, rgba(0, 245, 212, 0.03));
}

.cta-content h2 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.cta-content p {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

/* ==========================================
   Blog Article Page Styles
   ========================================== */
.article-main {
    position: relative;
    z-index: 1;
    padding-top: 100px;
}

.article-header {
    padding: 60px 24px 40px;
    max-width: 900px;
    margin: 0 auto;
}

.article-breadcrumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
    font-size: 0.9rem;
}

.article-breadcrumbs a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.article-breadcrumbs a:hover {
    color: var(--primary);
}

.article-breadcrumbs span {
    color: var(--text-muted);
}

.article-category {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(0, 245, 212, 0.1);
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 16px;
}

.article-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 32px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.meta-item svg {
    color: var(--text-muted);
}

.article-featured-image {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    margin-bottom: 40px;
    border: 1px solid var(--border);
    background: var(--bg-card);
}

.article-featured-image img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
}

.article-featured-image .featured-image-placeholder {
    position: absolute;
    inset: 0;
}

/* Featured Image Text Overlay - Glassmorphism Neon Style */
.featured-text-overlay {
    position: absolute;
    bottom: 24px;
    left: 24px;
    right: 24px;
    padding: 20px 32px;
    /* Стеклянный эффект с неоновым зелёным свечением */
    background: rgba(0, 245, 212, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 245, 212, 0.25);
    border-radius: 16px;
    /* Неоновое свечение */
    box-shadow: 
        0 0 30px rgba(0, 245, 212, 0.15),
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 0 20px rgba(0, 245, 212, 0.03);
    pointer-events: none;
}

.featured-hook {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 
        0 0 20px rgba(0, 245, 212, 0.4),
        0 2px 10px rgba(0, 0, 0, 0.5);
    margin: 0;
    line-height: 1.4;
    text-align: center;
}

@media (max-width: 768px) {
    .featured-text-overlay {
        bottom: 16px;
        left: 16px;
        right: 16px;
        padding: 16px 20px;
        border-radius: 12px;
    }
    
    .featured-hook {
        font-size: 1.1rem;
    }
}

/* Article Content */
.article-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px 60px;
}

.article-content {
    min-width: 0;
}

.article-content h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 48px 0 20px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.article-content h2:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.article-content h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin: 32px 0 16px;
    color: var(--text);
}

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

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

.article-content li {
    margin-bottom: 10px;
    line-height: 1.7;
}

.article-content code {
    padding: 2px 8px;
    background: rgba(0, 245, 212, 0.1);
    border-radius: 6px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9em;
    color: var(--primary);
}

.article-content pre {
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow-x: auto;
    margin: 24px 0;
}

.article-content pre code {
    padding: 0;
    background: transparent;
}

.article-content blockquote {
    padding: 24px 28px;
    background: linear-gradient(135deg, rgba(0, 245, 212, 0.05), transparent);
    border-left: 4px solid var(--primary);
    border-radius: 0 16px 16px 0;
    margin: 32px 0;
    font-style: italic;
}

.article-content blockquote p {
    margin-bottom: 0;
    color: var(--text);
}

.article-content img {
    max-width: 100%;
    border-radius: 16px;
    margin: 32px 0;
}

/* Article Infographics */
.article-infographic {
    margin: 40px 0;
    text-align: center;
}

.article-infographic img {
    width: 100%;
    max-width: 700px;
    height: auto;
    border-radius: 20px;
    border: 1px solid var(--border);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3), 0 0 30px rgba(0, 245, 212, 0.05);
    transition: all 0.4s ease;
    margin: 0 auto;
    display: block;
}

.article-infographic img:hover {
    transform: scale(1.02);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4), 0 0 40px rgba(0, 245, 212, 0.1);
    border-color: rgba(0, 245, 212, 0.3);
}

.article-infographic figcaption {
    margin-top: 16px;
    font-size: 0.9rem;
    color: var(--text-muted);
    font-style: italic;
}

/* Info Box */
.info-box {
    padding: 24px;
    background: rgba(0, 245, 212, 0.05);
    border: 1px solid rgba(0, 245, 212, 0.2);
    border-radius: 16px;
    margin: 32px 0;
}

.info-box-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    font-weight: 600;
    color: var(--primary);
}

.info-box p {
    margin-bottom: 0;
}

/* Step Card */
.step-card {
    display: flex;
    gap: 20px;
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    margin: 20px 0;
    transition: all 0.3s ease;
}

.step-card:hover {
    border-color: rgba(0, 245, 212, 0.3);
    transform: translateX(4px);
}

.step-number {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), var(--success));
    border-radius: 14px;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--bg);
}

.step-content h4 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.step-content p {
    margin-bottom: 0;
    font-size: 0.95rem;
}

/* Article Sidebar */
.article-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.toc-card {
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    margin-bottom: 24px;
}

.toc-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.toc-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.toc-list li {
    margin-bottom: 8px;
}

.toc-list a {
    display: block;
    padding: 8px 12px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.toc-list a:hover, .toc-list a.active {
    background: rgba(0, 245, 212, 0.1);
    color: var(--primary);
}

/* Share Card */
.share-card {
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    margin-bottom: 24px;
}

.share-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.share-buttons {
    display: flex;
    gap: 10px;
}

.share-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.share-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text);
}

.share-btn.telegram:hover {
    background: rgba(38, 165, 228, 0.2);
    border-color: rgba(38, 165, 228, 0.3);
    color: #26a5e4;
}

.share-btn.vk:hover {
    background: rgba(0, 119, 255, 0.2);
    border-color: rgba(0, 119, 255, 0.3);
    color: #0077ff;
}

/* Related Card */
.related-card {
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
}

.related-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.related-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.related-item {
    display: block;
    padding: 14px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.related-item:hover {
    background: rgba(0, 245, 212, 0.05);
    border-color: rgba(0, 245, 212, 0.2);
}

.related-item-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 4px;
}

.related-item-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Article Tags */
.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 32px 0;
    border-top: 1px solid var(--border);
    margin-top: 48px;
}

.article-tags .tag {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.2s ease;
}

.article-tags .tag:hover {
    background: rgba(0, 245, 212, 0.1);
    border-color: rgba(0, 245, 212, 0.3);
    color: var(--primary);
}

/* ==========================================
   Responsive
   ========================================== */
@media (max-width: 1024px) {
    .article-content-wrapper {
        grid-template-columns: 1fr;
    }
    
    .article-sidebar {
        position: static;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 16px;
    }
}

@media (max-width: 768px) {
    .blog-hero {
        padding: 40px 16px 30px;
    }
    
    .blog-hero-title {
        font-size: 2rem;
    }
    
    .blog-hero-floats {
        display: none;
    }
    
    .categories-scroll {
        justify-content: flex-start;
        padding-left: 16px;
    }
    
    .featured-card {
        grid-template-columns: 1fr;
    }
    
    .featured-image {
        min-height: 250px;
    }
    
    .featured-content {
        padding: 24px;
    }
    
    .featured-title {
        font-size: 1.4rem;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .blog-grid[data-view="list"] .blog-card .card-link {
        grid-template-columns: 1fr;
    }
    
    .newsletter-card {
        padding: 40px 24px;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter-form .btn {
        width: 100%;
        justify-content: center;
    }
    
    .blog-cta {
        padding: 60px 16px;
    }
    
    .cta-content h2 {
        font-size: 1.6rem;
    }
    
    /* Article */
    .article-header {
        padding: 40px 16px 30px;
    }
    
    .article-title {
        font-size: 1.6rem;
    }
    
    .article-meta {
        gap: 12px;
    }
    
    .article-featured-image {
        border-radius: 16px;
    }
    
    .article-content-wrapper {
        padding: 0 16px 40px;
    }
    
    .article-content h2 {
        font-size: 1.4rem;
    }
    
    .step-card {
        flex-direction: column;
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .blog-search kbd {
        display: none;
    }
    
    .view-toggle {
        display: none;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
}

/* ==========================================
   Landing-Style Article Components
   ========================================== */

/* Checklists */
.checklist {
    background: linear-gradient(135deg, rgba(0, 100, 80, 0.15), rgba(0, 150, 136, 0.1));
    border: 1px solid rgba(0, 245, 212, 0.2);
    border-radius: 16px;
    padding: 24px;
    margin: 24px 0;
}

.checklist-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.checklist-title svg {
    color: var(--primary);
}

.checklist-items {
    list-style: none;
    padding: 0;
    margin: 0;
}

.checklist-items li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.checklist-items li:last-child {
    border-bottom: none;
}

.checklist-items .check-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    border-radius: 6px;
    background: rgba(0, 245, 212, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

.checklist-items .check-text {
    flex: 1;
}

.checklist-items .check-text strong {
    color: var(--text-primary);
    display: block;
    margin-bottom: 4px;
}

.checklist-items .check-text span {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Formula cards */
.formula-card {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(0, 245, 212, 0.05));
    border: 1px solid rgba(0, 245, 212, 0.3);
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    font-family: 'JetBrains Mono', monospace;
}

.formula-card .formula {
    font-size: 1.1rem;
    color: var(--primary);
    margin-bottom: 12px;
    word-break: break-word;
}

.formula-card .formula-desc {
    font-family: 'Outfit', sans-serif;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Comparison tables */
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    overflow: hidden;
}

.comparison-table th,
.comparison-table td {
    padding: 16px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.comparison-table th {
    background: rgba(0, 245, 212, 0.1);
    color: var(--text-primary);
    font-weight: 600;
}

.comparison-table td {
    color: var(--text-secondary);
}

.comparison-table tr:hover td {
    background: rgba(0, 245, 212, 0.05);
}

/* Prompt examples */
.prompt-example {
    background: rgba(0, 0, 0, 0.3);
    border-left: 4px solid var(--primary);
    border-radius: 0 12px 12px 0;
    padding: 20px;
    margin: 20px 0;
}

.prompt-example .prompt-label {
    display: inline-block;
    background: var(--primary);
    color: #000;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.prompt-example .prompt-text {
    font-family: 'JetBrains Mono', monospace;
    color: var(--text-primary);
    line-height: 1.6;
    word-break: break-word;
}

.prompt-example .prompt-result {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Guide sections */
.guide-section {
    background: linear-gradient(180deg, rgba(0, 100, 80, 0.08), transparent);
    border-radius: 20px;
    padding: 32px;
    margin: 32px 0;
    border: 1px solid rgba(0, 245, 212, 0.1);
}

.guide-section-title {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 24px;
}

.guide-section-title .icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

/* Tip box */
.tip-box {
    display: flex;
    gap: 16px;
    background: rgba(0, 245, 212, 0.08);
    border: 1px solid rgba(0, 245, 212, 0.2);
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
}

.tip-box .tip-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.tip-box .tip-content h4 {
    color: var(--primary);
    margin: 0 0 8px;
    font-size: 1rem;
}

.tip-box .tip-content p {
    color: var(--text-secondary);
    margin: 0;
}

/* Warning box */
.warning-box {
    display: flex;
    gap: 16px;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
}

.warning-box .warning-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.warning-box .warning-content h4 {
    color: #f59e0b;
    margin: 0 0 8px;
    font-size: 1rem;
}

.warning-box .warning-content p {
    color: var(--text-secondary);
    margin: 0;
}

/* Workflow steps */
.workflow-steps {
    margin: 32px 0;
}

.workflow-step {
    display: flex;
    gap: 20px;
    padding: 24px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 16px;
    margin-bottom: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.workflow-step .step-number {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary), #10b981);
    color: #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.workflow-step .step-content h4 {
    color: var(--text-primary);
    margin: 0 0 8px;
    font-size: 1.1rem;
}

.workflow-step .step-content p {
    color: var(--text-secondary);
    margin: 0;
}

/* Mistakes list */
.mistakes-list {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 16px;
    padding: 24px;
    margin: 24px 0;
}

.mistakes-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #ef4444;
    margin-bottom: 16px;
}

.mistakes .check-icon {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

/* Article infographic */
.article-infographic {
    margin: 32px 0;
    text-align: center;
}

.article-infographic img {
    max-width: 100%;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.article-infographic figcaption {
    margin-top: 12px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-style: italic;
}

/* CTA Banner */
.cta-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    background: linear-gradient(135deg, rgba(0, 245, 212, 0.15), rgba(16, 185, 129, 0.1));
    border: 1px solid rgba(0, 245, 212, 0.3);
    border-radius: 20px;
    padding: 32px;
    margin: 48px 0;
}

.cta-banner .cta-content h3 {
    color: var(--text-primary);
    margin: 0 0 8px;
    font-size: 1.3rem;
}

.cta-banner .cta-content p {
    color: var(--text-secondary);
    margin: 0;
}

@media (max-width: 768px) {
    .cta-banner {
        flex-direction: column;
        text-align: center;
    }
}

/* Sidebar improvements */
.sidebar-card {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
}

.sidebar-card h4 {
    color: var(--text-primary);
    margin: 0 0 16px;
    font-size: 1rem;
    font-weight: 600;
}

.toc-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.toc-nav li {
    margin-bottom: 8px;
}

.toc-nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    padding: 8px 12px;
    display: block;
    border-radius: 8px;
    transition: all 0.2s;
}

.toc-nav a:hover,
.toc-nav a.active {
    color: var(--primary);
    background: rgba(0, 245, 212, 0.1);
}

.share-buttons {
    display: flex;
    gap: 12px;
}

.share-btn {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
}

.share-btn:hover {
    background: rgba(0, 245, 212, 0.1);
    border-color: var(--primary);
    color: var(--primary);
}

.related-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.related-item {
    display: block;
    padding: 12px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.2s;
}

.related-item:hover {
    background: rgba(0, 245, 212, 0.1);
}

.related-title {
    display: block;
    color: var(--text-primary);
    font-size: 0.9rem;
    margin-bottom: 4px;
    transition: color 0.2s ease;
}

.related-item:hover .related-title {
    color: var(--primary);
}

.related-meta {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* Sidebar - fixed position */
.article-sidebar {
    position: sticky;
    top: 90px;
    height: fit-content;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) transparent;
}

.article-sidebar::-webkit-scrollbar {
    width: 4px;
}

.article-sidebar::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 2px;
}

/* Collapsible TOC */
.toc-card {
    margin-bottom: 16px;
}

.toc-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    margin: 0 0 12px;
}

.toc-toggle svg {
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.toc-toggle.collapsed svg {
    transform: rotate(-90deg);
}

.toc-content {
    max-height: 200px;
    overflow-y: auto;
    transition: max-height 0.3s ease;
}

.toc-content.collapsed {
    max-height: 0;
    overflow: hidden;
}

.toc-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.toc-nav li {
    margin-bottom: 4px;
}

.toc-nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.8rem;
    padding: 6px 10px;
    display: block;
    border-radius: 6px;
    transition: all 0.2s ease;
    border-left: 2px solid transparent;
    line-height: 1.3;
}

.toc-nav a:hover {
    color: var(--primary);
    background: rgba(0, 245, 212, 0.08);
    border-left-color: var(--primary);
}

.toc-nav a.active {
    color: var(--primary);
    background: rgba(0, 245, 212, 0.1);
    border-left-color: var(--primary);
    font-weight: 500;
}

/* Sidebar card base */
.sidebar-card {
    background: linear-gradient(180deg, rgba(0, 30, 30, 0.6), rgba(0, 20, 20, 0.4));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
}

.sidebar-card h4 {
    color: var(--text-primary);
    margin: 0 0 12px;
    font-size: 0.9rem;
    font-weight: 600;
}

/* Share buttons */
.share-buttons {
    display: flex;
    gap: 8px;
}

.share-btn {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(0, 245, 212, 0.1);
    border: 1px solid rgba(0, 245, 212, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.share-btn:hover {
    background: rgba(0, 245, 212, 0.2);
    border-color: var(--primary);
    transform: translateY(-2px);
}

.share-btn svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

/* Related posts with thumbnails */
.related-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.related-item {
    display: flex;
    gap: 10px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s;
    align-items: center;
}

.related-item:hover {
    background: rgba(0, 245, 212, 0.08);
}

.related-item-image {
    width: 50px;
    height: 50px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
    background: linear-gradient(135deg, var(--primary), var(--accent));
}

.related-item-content {
    flex: 1;
    min-width: 0;
}

.related-title {
    display: block;
    color: var(--text-primary);
    font-size: 0.8rem;
    margin-bottom: 2px;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.related-item:hover .related-title {
    color: var(--primary);
}

.related-meta {
    font-size: 0.7rem;
    color: var(--text-secondary);
}

@media (max-width: 1024px) {
    .article-sidebar {
        position: relative;
        top: 0;
        max-height: none;
    }
}

/* Emoji font fallback */
.guide-section-title .icon,
.tip-box .tip-icon,
.warning-box .warning-icon {
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji", sans-serif;
}

/* SVG Icons in sections */
.guide-section-title .icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.5rem;
}

.guide-section-title .icon svg {
    width: 24px;
    height: 24px;
    stroke: #fff;
}

/* Replace missing emojis with SVG via CSS */
.guide-section-title .icon:empty::before,
.guide-section-title .icon:has(:not(svg))::after {
    content: "";
    display: block;
    width: 24px;
    height: 24px;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M13 2L3 14h9l-1 8 10-12h-9l1-8z'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* Tip box with SVG */
.tip-box .tip-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    flex-shrink: 0;
}

.tip-box .tip-icon svg {
    width: 24px;
    height: 24px;
}

/* Warning box with SVG */
.warning-box .warning-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    flex-shrink: 0;
}

.warning-box .warning-icon svg {
    width: 24px;
    height: 24px;
}

/* Checklist icons */
.check-icon svg {
    width: 16px;
    height: 16px;
}

.check-icon.error svg {
    stroke: #ef4444;
}

/* Mistakes list */
.mistakes-title svg {
    margin-right: 8px;
    vertical-align: middle;
}

/* Infographic placeholder */
.infographic-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 60px;
    background: rgba(0, 245, 212, 0.05);
    border: 2px dashed rgba(0, 245, 212, 0.3);
    border-radius: 16px;
    color: var(--text-secondary);
}

.infographic-placeholder svg {
    opacity: 0.6;
}

.infographic-placeholder span {
    font-size: 0.9rem;
}

/* Formula card */
.formula-title {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 12px;
}

/* Article sidebar fixed position */
.article-sidebar {
    position: sticky;
    top: 90px;
    height: fit-content;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}

/* Mobile sidebar */
@media (max-width: 1024px) {
    .article-sidebar {
        position: relative;
        top: 0;
    }
}

/* ==========================================
   Interactive Poll Widget
   ========================================== */
.poll-widget {
    background: linear-gradient(135deg, rgba(0, 100, 80, 0.15), rgba(0, 150, 136, 0.08));
    border: 1px solid rgba(0, 245, 212, 0.25);
    border-radius: 20px;
    padding: 28px;
    margin: 32px 0;
    text-align: center;
}

.poll-question h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text);
    margin: 0 0 20px;
}

.poll-options {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-bottom: 20px;
}

.poll-btn {
    padding: 14px 24px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 245, 212, 0.3);
    border-radius: 12px;
    color: var(--text);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 140px;
}

.poll-btn:hover {
    background: rgba(0, 245, 212, 0.15);
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 245, 212, 0.15);
}

.poll-btn.selected {
    background: linear-gradient(135deg, rgba(0, 245, 212, 0.3), rgba(16, 185, 129, 0.2));
    border-color: var(--primary);
    color: var(--primary);
}

.poll-results {
    margin-top: 20px;
}

.poll-result-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.poll-result-bar .poll-label {
    min-width: 120px;
    text-align: left;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.poll-result-bar .poll-bar {
    flex: 1;
    height: 24px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    overflow: hidden;
}

.poll-result-bar .poll-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), #10b981);
    border-radius: 12px;
    transition: width 0.6s ease;
}

.poll-result-bar .poll-percent {
    min-width: 50px;
    text-align: right;
    font-weight: 600;
    color: var(--primary);
}

/* ==========================================
   Device Mockups
   ========================================== */
.device-mockup {
    margin: 40px auto;
    text-align: center;
}

.device-mockup figcaption {
    margin-top: 16px;
    font-size: 0.9rem;
    color: var(--text-muted);
    font-style: italic;
}

/* Phone Mockup */
.device-mockup.phone .device-frame {
    width: 280px;
    height: 560px;
    background: linear-gradient(145deg, #1a1a2e, #0f0f1a);
    border-radius: 36px;
    padding: 12px;
    margin: 0 auto;
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
}

.device-mockup.phone .device-frame::before {
    content: '';
    position: absolute;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 24px;
    background: #0a0a0f;
    border-radius: 12px;
}

.device-mockup.phone .device-screen {
    width: 100%;
    height: 100%;
    background: var(--bg);
    border-radius: 28px;
    overflow: hidden;
    position: relative;
}

/* Chat Interface in Phone */
.chat-interface {
    padding: 60px 16px 16px;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow-y: auto;
}

.chat-message {
    display: flex;
    gap: 10px;
    max-width: 85%;
}

.chat-message.user {
    flex-direction: row-reverse;
    margin-left: auto;
}

.chat-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), #10b981);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.chat-bubble {
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    border-top-left-radius: 4px;
    font-size: 0.85rem;
    color: var(--text);
    line-height: 1.5;
}

.chat-message.user .chat-bubble {
    background: linear-gradient(135deg, rgba(0, 245, 212, 0.2), rgba(16, 185, 129, 0.15));
    border-radius: 16px;
    border-top-right-radius: 4px;
}

.chat-bubble img {
    max-width: 100%;
    border-radius: 8px;
    margin: 8px 0;
}

/* Laptop Mockup */
.device-mockup.laptop .device-frame {
    max-width: 700px;
    margin: 0 auto;
    background: linear-gradient(145deg, #1a1a2e, #0f0f1a);
    border-radius: 16px 16px 0 0;
    padding: 10px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

.device-mockup.laptop .device-screen {
    background: var(--bg);
    border-radius: 8px;
    overflow: hidden;
    min-height: 380px;
}

.device-mockup.laptop .device-frame::after {
    content: '';
    display: block;
    width: calc(100% + 60px);
    height: 14px;
    background: linear-gradient(145deg, #2a2a3e, #1a1a2e);
    border-radius: 0 0 8px 8px;
    margin: 10px -30px 0;
    position: relative;
}

.device-mockup.laptop .device-frame::before {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

/* Interface Preview in Laptop */
.interface-preview {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.interface-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid var(--border);
}

.interface-header .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.interface-header .dot.red { background: #ff5f57; }
.interface-header .dot.yellow { background: #ffbd2e; }
.interface-header .dot.green { background: #28ca41; }

.interface-header .interface-title {
    margin-left: 12px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.interface-content {
    flex: 1;
    display: flex;
}

.interface-content .sidebar-mini {
    width: 60px;
    background: rgba(0, 0, 0, 0.2);
    padding: 16px 8px;
    border-right: 1px solid var(--border);
    font-size: 0.7rem;
    color: var(--text-muted);
    text-align: center;
}

.interface-content .content-area {
    flex: 1;
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.interface-content .content-area img {
    max-width: 100%;
    max-height: 300px;
    border-radius: 8px;
}

/* ==========================================
   Quick Facts / Stats Cards
   ========================================== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
    margin: 32px 0;
}

.stat-card {
    background: linear-gradient(135deg, rgba(0, 245, 212, 0.1), rgba(16, 185, 129, 0.05));
    border: 1px solid rgba(0, 245, 212, 0.2);
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    box-shadow: 0 12px 30px rgba(0, 245, 212, 0.15);
}

.stat-card .stat-icon {
    font-size: 2rem;
    margin-bottom: 12px;
}

.stat-card .stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 4px;
}

.stat-card .stat-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* ==========================================
   Timeline / Process Steps
   ========================================== */
.timeline {
    position: relative;
    padding-left: 40px;
    margin: 32px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary), transparent);
}

.timeline-item {
    position: relative;
    padding-bottom: 32px;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -33px;
    top: 4px;
    width: 16px;
    height: 16px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(0, 245, 212, 0.2);
}

.timeline-item .timeline-content {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
}

.timeline-item .timeline-date {
    font-size: 0.8rem;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 8px;
}

.timeline-item .timeline-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
}

.timeline-item .timeline-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0;
}

/* ==========================================
   Accordion / FAQ
   ========================================== */
.accordion {
    margin: 32px 0;
}

.accordion-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-bottom: 12px;
    overflow: hidden;
}

.accordion-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.accordion-header:hover {
    background: rgba(0, 245, 212, 0.05);
}

.accordion-header h4 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
}

.accordion-header .accordion-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: transform 0.3s ease;
}

.accordion-item.open .accordion-icon {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.accordion-item.open .accordion-content {
    max-height: 500px;
}

.accordion-content-inner {
    padding: 0 24px 20px;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ==========================================
   Pros and Cons
   ========================================== */
.pros-cons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 32px 0;
}

.pros-list, .cons-list {
    padding: 24px;
    border-radius: 16px;
}

.pros-list {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.cons-list {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.pros-list h4, .cons-list h4 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.1rem;
    margin: 0 0 16px;
}

.pros-list h4 { color: #22c55e; }
.cons-list h4 { color: #ef4444; }

.pros-list ul, .cons-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pros-list li, .cons-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.pros-list li::before {
    content: '✓';
    color: #22c55e;
    font-weight: bold;
}

.cons-list li::before {
    content: '✗';
    color: #ef4444;
    font-weight: bold;
}

@media (max-width: 768px) {
    .pros-cons {
        grid-template-columns: 1fr;
    }
}

/* ==========================================
   Code Block with Copy
   ========================================== */
.code-block {
    position: relative;
    margin: 24px 0;
}

.code-block pre {
    margin: 0;
}

.code-block .copy-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 8px 12px;
    background: rgba(0, 245, 212, 0.1);
    border: 1px solid rgba(0, 245, 212, 0.3);
    border-radius: 8px;
    color: var(--primary);
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.code-block .copy-btn:hover {
    background: rgba(0, 245, 212, 0.2);
}

.code-block .copy-btn.copied {
    background: var(--primary);
    color: var(--bg);
}

/* ==========================================
   Image Gallery
   ========================================== */
.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
    margin: 32px 0;
}

.gallery-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-item .gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: flex-end;
    padding: 16px;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-item .gallery-caption {
    color: white;
    font-size: 0.9rem;
}

/* ==========================================
   Alert Boxes
   ========================================== */
.alert-box {
    display: flex;
    gap: 16px;
    padding: 20px;
    border-radius: 12px;
    margin: 24px 0;
}

.alert-box.success {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.alert-box.warning {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.alert-box.error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.alert-box.info {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.alert-box .alert-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.alert-box .alert-content h5 {
    margin: 0 0 8px;
    font-size: 1rem;
}

.alert-box.success .alert-content h5 { color: #22c55e; }
.alert-box.warning .alert-content h5 { color: #f59e0b; }
.alert-box.error .alert-content h5 { color: #ef4444; }
.alert-box.info .alert-content h5 { color: #3b82f6; }

.alert-box .alert-content p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
}


/* ==========================================
   Crossposting Promo Banner
   ========================================== */
.blog-promo-banner {
    max-width: 1200px;
    margin: 0 auto 32px;
    padding: 0 24px;
}

.promo-banner-link {
    display: block;
    position: relative;
    background: linear-gradient(135deg, rgba(0, 245, 212, 0.12) 0%, rgba(16, 185, 129, 0.08) 50%, rgba(0, 245, 212, 0.05) 100%);
    border: 2px solid rgba(0, 245, 212, 0.35);
    border-radius: 20px;
    padding: 24px 32px;
    text-decoration: none;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.promo-banner-link:hover {
    border-color: rgba(0, 245, 212, 0.6);
    transform: translateY(-3px);
    box-shadow: 0 20px 60px rgba(0, 245, 212, 0.2);
}

.promo-banner-content {
    display: flex;
    align-items: center;
    gap: 24px;
    position: relative;
    z-index: 2;
}

.promo-banner-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
    animation: rotate-slow 8s linear infinite;
}

@keyframes rotate-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.promo-banner-text {
    flex: 1;
}

.promo-banner-text h3 {
    margin: 0 0 6px;
    font-size: 1.25rem;
    font-weight: 700;
    color: #00f5d4;
    background: linear-gradient(135deg, #00f5d4 0%, #10b981 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.promo-banner-text p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.promo-banner-cta {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #00f5d4 0%, #10b981 100%);
    border-radius: 12px;
    font-weight: 600;
    color: #0a0a0f;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.promo-banner-link:hover .promo-banner-cta {
    transform: translateX(4px);
}

.promo-banner-cta svg {
    transition: transform 0.3s ease;
}

.promo-banner-link:hover .promo-banner-cta svg {
    transform: translateX(4px);
}

.promo-banner-glow {
    position: absolute;
    top: 50%;
    right: -50px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(0, 245, 212, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    transform: translateY(-50%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.promo-banner-link:hover .promo-banner-glow {
    opacity: 1;
}

@media (max-width: 768px) {
    .promo-banner-link {
        padding: 20px;
    }
    
    .promo-banner-content {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }
    
    .promo-banner-icon {
        font-size: 2rem;
    }
    
    .promo-banner-text h3 {
        font-size: 1.1rem;
    }
    
    .promo-banner-text p {
        font-size: 0.85rem;
    }
    
    .promo-banner-cta {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}
