/* TELEGRAM FORUM TOPICS STYLES */
.tg-topics-section {
    max-width: 1200px;
    margin: 18px auto 30px;
    padding: 0 24px;
}

.topics-container {
    background: rgba(12, 17, 28, 0.92);
    border: 1px solid rgba(215, 180, 71, 0.18);
    border-radius: 20px;
    padding: 32px 28px;
    backdrop-filter: blur(16px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.34);
}

.topics-header {
    margin-bottom: 28px;
}

.topics-header h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: white;
    margin: 8px 0;
}

.topics-header p {
    color: #94a3b8;
    font-size: 0.95rem;
}

.topics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 18px;
}

.topic-card {
    background: linear-gradient(180deg, rgba(14, 20, 32, 0.92), rgba(8, 11, 18, 0.96));
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: all 0.3s ease;
}

.topic-card:hover {
    border-color: rgba(215, 180, 71, 0.35);
    transform: translateY(-3px);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.32);
}

.topic-icon {
    font-size: 2rem;
}

.topic-info h4 {
    color: var(--gold-light);
    font-size: 1.05rem;
    margin-bottom: 4px;
}

.topic-info p {
    color: #cbd5e1;
    font-size: 0.85rem;
    line-height: 1.5;
}

.btn-topic-link {
    margin-top: auto;
    background: rgba(215, 180, 71, 0.12);
    border: 1px solid rgba(215, 180, 71, 0.32);
    color: var(--gold-light);
    text-decoration: none;
    text-align: center;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 700;
    transition: background 0.2s ease;
}

.btn-topic-link:hover {
    background: var(--gold-primary);
    color: #090b10;
}

/* LIVE TELEGRAM BLOG STREAM STYLES */
.tg-blog-section {
    max-width: 1200px;
    margin: 20px auto 36px;
    padding: 0 24px;
}

.blog-container {
    background: rgba(10, 13, 22, 0.88);
    border: 1px solid rgba(215, 180, 71, 0.18);
    border-radius: 20px;
    padding: 24px 22px;
    backdrop-filter: blur(16px);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.36);
}

.blog-header {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 36px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 24px;
}

.blog-badge {
    display: inline-block;
    background: rgba(0, 136, 204, 0.15);
    border: 1px solid #0088cc;
    color: #0088cc;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 20px;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.blog-title-group h2 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    color: #f4f7fb;
    margin-bottom: 8px;
}

.blog-title-group p {
    color: #8fa0b5;
    font-size: 1rem;
    max-width: 800px;
}

/* Blog Filter Tabs */
.blog-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.blog-filter-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: #a0b0c5;
    padding: 8px 18px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
}

.blog-filter-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.blog-filter-btn.active {
    background: linear-gradient(135deg, var(--gold) 0%, #d35400 100%);
    border-color: var(--gold);
    color: #090b10;
    box-shadow: 0 4px 15px rgba(243, 156, 18, 0.4);
}

/* Blog Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(520px, 1fr));
    gap: 24px;
}

.blog-card {
    background: linear-gradient(180deg, rgba(17, 23, 35, 0.95), rgba(10, 13, 22, 0.98));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.blog-card[hidden] {
    display: none;
}

.blog-card:hover {
    transform: translateY(-4px);
    border-color: rgba(215, 180, 71, 0.32);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}

.blog-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.author-avatar {
    width: 44px;
    height: 44px;
    background: rgba(243, 156, 18, 0.15);
    border: 1px solid var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

.author-meta {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-weight: 700;
    color: #ffffff;
    font-size: 0.95rem;
}

.post-date {
    font-size: 0.75rem;
    color: #7f8c8d;
}

.post-tag {
    margin-left: auto;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 6px;
    letter-spacing: 0.5px;
}

.tag-dev { background: rgba(0, 242, 254, 0.15); color: var(--neon-cyan); border: 1px solid var(--neon-cyan); }
.tag-patch { background: rgba(155, 89, 182, 0.15); color: var(--neon-purple); border: 1px solid var(--neon-purple); }
.tag-rvr { background: rgba(231, 76, 60, 0.15); color: var(--crimson); border: 1px solid var(--crimson); }
.tag-bugs { background: rgba(231, 76, 60, 0.15); color: #e74c3c; border: 1px solid #e74c3c; }

.blog-card-image {
    width: 100%;
    height: 198px;
    overflow: hidden;
    border-bottom: 1px solid var(--border-subtle);
    border-top: 1px solid var(--border-subtle);
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.05);
}

.blog-card-body {
    padding: 20px 2px 10px;
    flex-grow: 1;
}

.blog-card-body h3 {
    font-family: var(--font-heading);
    color: var(--gold-light);
    font-size: 1.25rem;
    margin-bottom: 10px;
    line-height: 1.4;
}

.blog-card-body p {
    font-size: 0.95rem;
    color: #c5d1e0;
    margin-bottom: 12px;
    line-height: 1.6;
}

.blog-card-body ul {
    margin-left: 20px;
    margin-bottom: 14px;
    color: #b0c4de;
    font-size: 0.9rem;
}

.blog-card-body ul li {
    margin-bottom: 6px;
}

.blog-card-body code {
    background: rgba(0, 0, 0, 0.5);
    color: var(--neon-cyan);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 0.85rem;
}

.blog-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 14px;
    margin-top: 18px;
}

.reactions {
    display: flex;
    gap: 14px;
    font-size: 0.85rem;
    color: #95a5a6;
    font-weight: 600;
}

.btn-read-tg {
    background: rgba(215, 180, 71, 0.12);
    border: 1px solid rgba(215, 180, 71, 0.32);
    color: white;
    text-decoration: none;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    transition: background 0.2s ease;
}

.btn-read-tg:hover {
    background: var(--gold-primary);
    color: #090b10;
}

.blog-card-image {
    border-radius: 12px;
}

.blog-card-image img {
    filter: saturate(0.96) contrast(1.04);
}

@media (max-width: 850px) {
    .topics-grid,
    .blog-grid {
        grid-template-columns: minmax(0, 1fr);
    }

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