/* ===========================
   Blog Styles
   Article page + homepage cards
   =========================== */

/* ============ HOMEPAGE BLOG CARDS ============ */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.blog-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}

.blog-card:hover {
    border-color: var(--border-light);
    background: var(--bg-card-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-card);
}

.blog-card-image {
    width: 100%;
    height: 200px;
    position: relative;
    overflow: hidden;
}

.blog-card-image .placeholder-gradient {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0,212,255,0.15) 0%, rgba(68,102,255,0.2) 50%, rgba(136,68,255,0.15) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.blog-card-image .placeholder-gradient svg {
    color: var(--accent-cyan);
    opacity: 0.4;
}

.blog-card-body {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-card-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--accent-cyan);
    margin-bottom: 12px;
}

.blog-card-title {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.blog-card-excerpt {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 16px;
    flex: 1;
}

.blog-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.blog-card-date {
    font-size: 12px;
    color: var(--text-muted);
}

.blog-card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--accent-cyan);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.blog-card-link:hover {
    gap: 10px;
}

/* Coming soon card */
.blog-card.coming-soon {
    opacity: 0.5;
    pointer-events: none;
}

.blog-card.coming-soon .blog-card-image .placeholder-gradient {
    background: linear-gradient(135deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0.06) 100%);
}

[data-theme="light"] .blog-card.coming-soon .blog-card-image .placeholder-gradient {
    background: linear-gradient(135deg, rgba(0,0,0,0.03) 0%, rgba(0,0,0,0.06) 100%);
}

.coming-soon-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* ============ ARTICLE PAGE ============ */
.blog-article-page {
    padding: 120px 0 80px;
    min-height: calc(100vh - 120px);
}

.blog-article-container {
    max-width: 780px;
    margin: 0 auto;
}

/* Article Header */
.blog-article-header {
    margin-bottom: 48px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--border);
}

.blog-article-tag {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-cyan);
    margin-bottom: 16px;
    padding: 6px 14px;
    background: rgba(0, 212, 255, 0.08);
    border: 1px solid rgba(0, 212, 255, 0.15);
    border-radius: 50px;
}

[data-theme="light"] .blog-article-tag {
    background: rgba(0, 145, 204, 0.06);
    border-color: rgba(0, 145, 204, 0.15);
}

.blog-article-title {
    font-size: clamp(32px, 5vw, 44px);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -1px;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.blog-article-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    font-size: 14px;
    color: var(--text-secondary);
}

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

.blog-article-meta svg {
    color: var(--text-muted);
    flex-shrink: 0;
}

/* Article Body */
.blog-article-body h2 {
    font-size: 24px;
    font-weight: 700;
    margin-top: 48px;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.blog-article-body h3 {
    font-size: 18px;
    font-weight: 600;
    margin-top: 32px;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.blog-article-body p {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 18px;
}

.blog-article-body ul {
    margin: 12px 0 20px 0;
    padding-left: 0;
    list-style: none;
}

.blog-article-body ul li {
    position: relative;
    padding: 6px 0 6px 24px;
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.blog-article-body ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 14px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-cyan);
    opacity: 0.6;
}

.blog-article-body strong {
    color: var(--text-primary);
}

.blog-article-body a {
    color: var(--accent-cyan);
    text-decoration: none;
    transition: opacity 0.2s;
}

.blog-article-body a:hover {
    opacity: 0.8;
}

/* Signal number styling */
.signal-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--gradient-glow);
    border: 1px solid var(--border);
    border-radius: 10px;
    font-family: var(--font-mono);
    font-size: 14px;
    font-weight: 700;
    color: var(--accent-cyan);
    margin-right: 10px;
    vertical-align: middle;
}

/* Highlight box in article */
.blog-highlight {
    background: rgba(0, 212, 255, 0.04);
    border: 1px solid rgba(0, 212, 255, 0.12);
    border-radius: 12px;
    padding: 28px 32px;
    margin: 32px 0;
}

.blog-highlight p {
    margin-bottom: 8px;
}

.blog-highlight p:last-child {
    margin-bottom: 0;
}

/* CTA Box */
.blog-cta {
    margin-top: 56px;
    padding: 40px;
    background: var(--bg-card);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: var(--radius-lg);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.blog-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-main);
}

.blog-cta h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.blog-cta p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 520px;
    margin: 0 auto 24px;
}

/* Share bar */
.blog-share {
    margin-top: 48px;
    padding: 24px 0;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.blog-share-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
}

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

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    font-family: var(--font-main);
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text-secondary);
}

.share-btn:hover {
    border-color: var(--border-light);
    color: var(--text-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-card);
}

.share-linkedin:hover {
    border-color: #0a66c2;
    color: #0a66c2;
}

.share-copy.copied {
    border-color: #28c840;
    color: #28c840;
}

/* Back to blog link */
.blog-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 32px;
    transition: var(--transition);
}

.blog-back:hover {
    color: var(--accent-cyan);
    gap: 12px;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
    .blog-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .blog-article-page {
        padding: 100px 0 60px;
    }

    .blog-article-header {
        margin-bottom: 32px;
        padding-bottom: 24px;
    }

    .blog-cta {
        padding: 28px 20px;
    }

    .blog-highlight {
        padding: 20px 24px;
    }
}
