/* =============================================
   Telegram Channel Widget — tcw-style.css
   ============================================= */

.tcw-wrapper {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    box-sizing: border-box;
}

/* ── Post list ── */
.tcw-posts-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.tcw-post-item {
    margin-bottom: 16px;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.tcw-post-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.10);
}

/* Telegram widget iframe */
.tcw-post-item iframe,
.tcw-post-item > div {
    border-radius: 12px !important;
    display: block;
}

/* ── Fallback block ── */
.tcw-fallback {
    background: #f0f8ff;
    border: 1px solid #b3d9ff;
    border-radius: 12px;
    padding: 20px 24px;
    text-align: center;
    margin-bottom: 16px;
    color: #2563eb;
}

.tcw-fallback p {
    margin: 6px 0;
}

.tcw-fallback a {
    color: #1d4ed8;
    font-weight: 600;
}

/* ── Footer link ── */
.tcw-footer {
    text-align: center;
    margin-top: 20px;
    padding-top: 12px;
    border-top: 1px solid #e5e7eb;
}

.tcw-channel-link {
    display: inline-block;
    background: #2aabee;
    color: #fff !important;
    text-decoration: none !important;
    padding: 10px 24px;
    border-radius: 24px;
    font-weight: 600;
    font-size: 15px;
    transition: background 0.2s, transform 0.15s;
}

.tcw-channel-link:hover {
    background: #1a96d4;
    transform: scale(1.03);
}

/* ── Responsive ── */
@media (max-width: 480px) {
    .tcw-wrapper {
        max-width: 100% !important;
    }
    .tcw-channel-link {
        font-size: 13px;
        padding: 8px 16px;
    }
}
