/*!
 * Telegram Hub Pro - Channel Feed CSS
 * Version 3.0 - Complete Rewrite
 */

/* GRID */
.thp-feed-wrap { display: grid; gap: 24px; }
.thp-feed-cols-1 { grid-template-columns: 1fr; }
.thp-feed-cols-2 { grid-template-columns: repeat(2, 1fr); }
.thp-feed-cols-3 { grid-template-columns: repeat(3, 1fr); }
.thp-feed-cols-4 { grid-template-columns: repeat(4, 1fr); }

/* LIST */
.thp-feed-list { grid-template-columns: 1fr; }
.thp-feed-list .thp-feed-card { flex-direction: row; gap: 20px; }
.thp-feed-list .thp-feed-image-link { width: 300px; flex-shrink: 0; }

/* CARD */
.thp-feed-card {
    background: #FFF;
    border: 1px solid #E2E8F0;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.35s ease;
}
.thp-feed-card:hover { transform: translateY(-4px); box-shadow: 0 15px 40px rgba(0,136,204,0.12); border-color: #0088cc; }

/* IMAGE */
.thp-feed-image-link { display: block; overflow: hidden; position: relative; aspect-ratio: 16/9; flex-shrink: 0; }
.thp-feed-image { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s ease; }
.thp-feed-card:hover .thp-feed-image { transform: scale(1.05); }

/* CONTENT */
.thp-feed-content { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.thp-feed-category { display: inline-block; font-size: 11px; text-transform: uppercase; letter-spacing: 0.5px; color: #0088cc; background: rgba(0,136,204,0.08); padding: 3px 10px; border-radius: 4px; margin-bottom: 10px; font-weight: 600; align-self: flex-start; }
.thp-feed-title { font-size: 16px; font-weight: 700; line-height: 1.5; margin: 0 0 8px; }
.thp-feed-title a { color: #0F172A; text-decoration: none; transition: color 0.2s; }
.thp-feed-title a:hover { color: #0088cc; }
.thp-feed-meta { display: flex; gap: 12px; font-size: 12px; color: #94A3B8; margin-bottom: 10px; flex-wrap: wrap; }
.thp-feed-excerpt { font-size: 13px; color: #64748B; line-height: 1.75; margin: 0 0 14px; flex: 1; }
.thp-feed-readmore { display: inline-flex; align-items: center; justify-content: center; padding: 10px 20px; background: linear-gradient(135deg,#0088cc,#0077b6); color: #FFF !important; font-size: 13px; font-weight: 600; text-decoration: none !important; border-radius: 10px; transition: all 0.3s; align-self: flex-start; }
.thp-feed-readmore:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,136,204,0.35); }

/* STYLE: OVERLAY */
.thp-feed-style-overlay .thp-feed-card { position: relative; border: none; border-radius: 16px; }
.thp-feed-style-overlay .thp-feed-image-link { aspect-ratio: 3/4; border-radius: 16px; }
.thp-feed-style-overlay .thp-feed-content { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(transparent, rgba(0,0,0,0.85)); padding: 40px 20px 20px; z-index: 1; }
.thp-feed-style-overlay .thp-feed-title a { color: #FFF; }
.thp-feed-style-overlay .thp-feed-meta { color: rgba(255,255,255,0.8); }
.thp-feed-style-overlay .thp-feed-excerpt { color: rgba(255,255,255,0.9); }
.thp-feed-style-overlay .thp-feed-category { background: rgba(255,255,255,0.2); color: #FFF; }

/* STYLE: MINIMAL */
.thp-feed-style-minimal .thp-feed-card { border: none; box-shadow: none; background: transparent; border-radius: 0; }
.thp-feed-style-minimal .thp-feed-card:hover { transform: none; box-shadow: none; border-color: transparent; }
.thp-feed-style-minimal .thp-feed-image-link { border-radius: 12px; }
.thp-feed-style-minimal .thp-feed-content { padding: 14px 0 0; }

/* STYLE: BORDERED */
.thp-feed-style-bordered .thp-feed-card { border: 2px solid #E2E8F0; box-shadow: none; border-radius: 12px; }
.thp-feed-style-bordered .thp-feed-card:hover { border-color: #0088cc; box-shadow: 0 10px 30px rgba(0,136,204,0.08); }

/* STYLE: SHADOW */
.thp-feed-style-shadow .thp-feed-card { border: none; box-shadow: 0 10px 40px rgba(0,0,0,0.08); }
.thp-feed-style-shadow .thp-feed-card:hover { box-shadow: 0 20px 60px rgba(0,136,204,0.15); }

/* STYLE: TELEGRAM */
.thp-feed-style-telegram .thp-feed-card { border-radius: 12px; border: 1px solid #E2E8F0; }
.thp-feed-style-telegram .thp-feed-content { background: #F8FAFC; border-radius: 0 0 12px 12px; }

/* STYLE: DARK */
.thp-feed-style-dark .thp-feed-card { background: #1E293B; border-color: rgba(255,255,255,0.08); box-shadow: 0 8px 25px rgba(0,0,0,0.3); }
.thp-feed-style-dark .thp-feed-card:hover { border-color: #0088cc; box-shadow: 0 15px 40px rgba(0,0,0,0.4); }
.thp-feed-style-dark .thp-feed-title a { color: #FFF; }
.thp-feed-style-dark .thp-feed-excerpt { color: rgba(255,255,255,0.7); }
.thp-feed-style-dark .thp-feed-meta { color: rgba(255,255,255,0.5); }
.thp-feed-style-dark .thp-feed-category { background: rgba(0,136,204,0.2); }
.thp-feed-style-dark .thp-feed-content { background: transparent; }

/* STYLE: GLASS */
.thp-feed-style-glass .thp-feed-card { background: rgba(255,255,255,0.7); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border: 1px solid rgba(255,255,255,0.5); }
.thp-feed-style-glass .thp-feed-card:hover { background: rgba(255,255,255,0.9); box-shadow: 0 15px 40px rgba(0,0,0,0.1); }

/* STYLE: GRADIENT */
.thp-feed-style-gradient .thp-feed-card { background: linear-gradient(135deg, #0088cc, #06B6D4); border: none; }
.thp-feed-style-gradient .thp-feed-card:hover { box-shadow: 0 15px 40px rgba(0,136,204,0.35); }
.thp-feed-style-gradient .thp-feed-title a,
.thp-feed-style-gradient .thp-feed-excerpt,
.thp-feed-style-gradient .thp-feed-meta { color: rgba(255,255,255,0.9); }
.thp-feed-style-gradient .thp-feed-category { background: rgba(255,255,255,0.2); color: #FFF; }
.thp-feed-style-gradient .thp-feed-readmore { background: #FFF; color: #0088cc !important; }
.thp-feed-style-gradient .thp-feed-readmore:hover { color: #0077b6 !important; box-shadow: 0 6px 20px rgba(0,0,0,0.2); }

/* EMPTY */
.thp-feed-empty { text-align: center; padding: 50px; color: #94A3B8; font-size: 16px; grid-column: 1/-1; background: #F8FAFC; border-radius: 12px; border: 2px dashed #E2E8F0; }

/* RESPONSIVE */
@media (max-width: 1024px) { .thp-feed-cols-3,.thp-feed-cols-4 { grid-template-columns: repeat(2,1fr); } .thp-feed-list .thp-feed-image-link { width: 220px; } }
@media (max-width: 767px) { .thp-feed-cols-2,.thp-feed-cols-3,.thp-feed-cols-4 { grid-template-columns: 1fr; } .thp-feed-wrap { gap: 16px; } .thp-feed-list .thp-feed-card { flex-direction: column; } .thp-feed-list .thp-feed-image-link { width: 100%; } }
@media (prefers-reduced-motion: reduce) { .thp-feed-card,.thp-feed-image,.thp-feed-readmore { transition: none !important; } }