/* WCT Public Feed v3.271 — Fully Isolated */
.wct-feed-wrap, .wct-feed-wrap * {
    margin: 0; padding: 0; box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.5;
}
.wct-feed-wrap { max-width: 1200px; margin: 40px auto; padding: 0 20px; }

/* === GRID === */
.wct-feed-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
@media (max-width: 900px) { .wct-feed-grid { grid-template-columns: repeat(2, 1fr) !important; } }
@media (max-width: 560px) { .wct-feed-grid { grid-template-columns: 1fr !important; } }

.wct-feed-card {
    background: #ffffff; border: 1px solid #e5e7eb; border-radius: 12px;
    padding: 20px; display: flex; flex-direction: column; gap: 12px;
    transition: box-shadow 0.2s, transform 0.2s;
}
.wct-feed-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.08); transform: translateY(-2px); }
.wct-feed-card-title { font-size: 17px; font-weight: 700; color: #111827; order: 1; }
.wct-feed-card-title a { color: inherit; text-decoration: none; }
.wct-feed-card-title a:hover { color: #2563eb; }
.wct-feed-card-img {
    width: 100%; aspect-ratio: 16/9; overflow: hidden; border-radius: 8px;
    background: #f3f4f6; order: 2;
}
.wct-feed-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; cursor: pointer; }
.wct-feed-card-desc { font-size: 14px; color: #6b7280; order: 3; flex: 1; }
.wct-feed-date { font-size: 12px; color: #9ca3af; order: 4; }
.wct-feed-btn {
    display: inline-block; padding: 10px 24px; background: #111827;
    color: #ffffff !important; border-radius: 8px; text-decoration: none;
    font-size: 14px; font-weight: 600; text-align: center; order: 5;
    transition: background 0.2s;
}
.wct-feed-btn:hover { background: #374151; }

/* === SHOWCASE === */
.wct-feed-showcase { display: flex; flex-direction: column; gap: 32px; }
.wct-feed-showcase-item {
    display: flex; gap: 28px; background: #ffffff; border: 1px solid #e5e7eb;
    border-radius: 16px; overflow: hidden; transition: box-shadow 0.25s, transform 0.25s;
}
.wct-feed-showcase-item:hover { box-shadow: 0 8px 30px rgba(0,0,0,0.1); transform: translateY(-3px); }
.wct-feed-showcase-img {
    flex-shrink: 0; width: 45%; min-height: 240px; overflow: hidden; background: #f3f4f6;
}
.wct-feed-showcase-img img { width: 100%; height: 100%; object-fit: cover; display: block; cursor: pointer; }
.wct-feed-showcase-body {
    flex: 1; display: flex; flex-direction: column; justify-content: center;
    padding: 28px 28px 28px 0; gap: 12px;
}
.wct-feed-showcase-title { font-size: 22px; font-weight: 800; color: #111827; }
.wct-feed-showcase-title a { color: inherit; text-decoration: none; }
.wct-feed-showcase-title a:hover { color: #2563eb; }
.wct-feed-showcase-desc { font-size: 15px; color: #6b7280; line-height: 1.6; }
.wct-feed-showcase-btn {
    align-self: flex-start; padding: 12px 32px; font-size: 15px;
    background: linear-gradient(135deg, #111827, #374151); border-radius: 10px;
}
.wct-feed-showcase-btn:hover { background: linear-gradient(135deg, #1f2937, #4b5563); }
@media (max-width: 700px) {
    .wct-feed-showcase-item { flex-direction: column; }
    .wct-feed-showcase-img { width: 100%; min-height: 200px; aspect-ratio: 16/9; }
    .wct-feed-showcase-body { padding: 20px; }
}

/* Dark theme showcase */
.wct-feed-dark .wct-feed-showcase-item { background: #1e293b; border-color: #334155; }
.wct-feed-dark .wct-feed-showcase-item:hover { box-shadow: 0 8px 30px rgba(0,0,0,0.3); }
.wct-feed-dark .wct-feed-showcase-title { color: #f1f5f9; }
.wct-feed-dark .wct-feed-showcase-title a { color: #f1f5f9; }
.wct-feed-dark .wct-feed-showcase-desc { color: #94a3b8; }
.wct-feed-dark .wct-feed-showcase-btn { background: linear-gradient(135deg, #3b82f6, #2563eb); }

/* === TABLE === */
.wct-feed-table { display: flex; flex-direction: column; gap: 16px; }
.wct-feed-table-row {
    display: flex; align-items: center; gap: 20px; background: #ffffff;
    border: 1px solid #e5e7eb; border-radius: 12px; padding: 16px 20px;
    transition: box-shadow 0.2s;
}
.wct-feed-table-row:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.08); }
.wct-feed-table-img {
    flex-shrink: 0; width: 200px; height: 140px; border-radius: 8px;
    overflow: hidden; background: #f3f4f6;
}
.wct-feed-table-img img { width: 100%; height: 100%; object-fit: cover; display: block; cursor: pointer; }
.wct-feed-table-body { flex: 1; min-width: 0; }
.wct-feed-table-title { font-size: 18px; font-weight: 700; color: #111827; margin-bottom: 6px; }
.wct-feed-table-title a { color: inherit; text-decoration: none; }
.wct-feed-table-title a:hover { color: #2563eb; }
.wct-feed-table-desc { font-size: 14px; color: #6b7280; margin-bottom: 6px; }
.wct-feed-table-action { flex-shrink: 0; }

/* === LIST (compact, no images) === */
.wct-feed-list { display: flex; flex-direction: column; gap: 8px; }
.wct-feed-list-item {
    display: flex; align-items: center; justify-content: space-between;
    gap: 16px; background: #ffffff; border: 1px solid #e5e7eb;
    border-radius: 8px; padding: 14px 20px;
    transition: background 0.15s;
}
.wct-feed-list-item:hover { background: #f9fafb; }
.wct-feed-list-body { flex: 1; min-width: 0; }
.wct-feed-list-title { font-size: 16px; font-weight: 600; color: #111827; }
.wct-feed-list-title a { color: inherit; text-decoration: none; }
.wct-feed-list-title a:hover { color: #2563eb; }
.wct-feed-list-desc { font-size: 13px; color: #6b7280; margin-top: 2px; }

/* Pagination */
.wct-feed-pagination { display: flex; justify-content: center; gap: 6px; margin-top: 30px; }
.wct-feed-page {
    display: inline-flex; align-items: center; justify-content: center;
    width: 36px; height: 36px; border-radius: 8px; font-size: 14px; font-weight: 500;
    text-decoration: none; color: #374151; background: #ffffff; border: 1px solid #e5e7eb;
    transition: background 0.15s;
}
.wct-feed-page:hover { background: #f3f4f6; }
.wct-feed-page.active { background: #111827; color: #ffffff; border-color: #111827; }

/* === DARK THEME === */
.wct-feed-dark .wct-feed-card,
.wct-feed-dark .wct-feed-table-row,
.wct-feed-dark .wct-feed-list-item { background: #1e293b; border-color: #334155; }
.wct-feed-dark .wct-feed-card:hover,
.wct-feed-dark .wct-feed-table-row:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.3); }
.wct-feed-dark .wct-feed-list-item:hover { background: #283548; }
.wct-feed-dark .wct-feed-card-title,
.wct-feed-dark .wct-feed-table-title,
.wct-feed-dark .wct-feed-list-title { color: #f1f5f9; }
.wct-feed-dark .wct-feed-card-title a,
.wct-feed-dark .wct-feed-table-title a,
.wct-feed-dark .wct-feed-list-title a { color: #f1f5f9; }
.wct-feed-dark .wct-feed-card-desc,
.wct-feed-dark .wct-feed-table-desc,
.wct-feed-dark .wct-feed-list-desc { color: #94a3b8; }
.wct-feed-dark .wct-feed-date { color: #64748b; }
.wct-feed-dark .wct-feed-btn { background: #3b82f6; }
.wct-feed-dark .wct-feed-btn:hover { background: #2563eb; }
.wct-feed-dark .wct-feed-page { background: #1e293b; color: #e2e8f0; border-color: #334155; }
.wct-feed-dark .wct-feed-page.active { background: #3b82f6; border-color: #3b82f6; }

/* === MINIMAL THEME === */
.wct-feed-minimal .wct-feed-card,
.wct-feed-minimal .wct-feed-table-row,
.wct-feed-minimal .wct-feed-list-item { border: none; border-bottom: 1px solid #e5e7eb; border-radius: 0; padding-left: 0; padding-right: 0; }
.wct-feed-minimal .wct-feed-card:hover,
.wct-feed-minimal .wct-feed-table-row:hover { box-shadow: none; transform: none; }
.wct-feed-minimal .wct-feed-btn { background: transparent; color: #111827 !important; padding: 6px 0; border-bottom: 2px solid #111827; border-radius: 0; }

/* === ROUNDED THEME === */
.wct-feed-rounded .wct-feed-card { border-radius: 20px; }
.wct-feed-rounded .wct-feed-card-img { border-radius: 14px; }
.wct-feed-rounded .wct-feed-btn { border-radius: 999px; }
.wct-feed-rounded .wct-feed-table-row { border-radius: 20px; }
.wct-feed-rounded .wct-feed-table-img { border-radius: 14px; }

@media (max-width: 700px) {
    .wct-feed-table-row { flex-direction: column; align-items: stretch; }
    .wct-feed-table-img { width: 100%; height: auto; aspect-ratio: 16/9; }
    .wct-feed-list-item { flex-direction: column; align-items: stretch; gap: 10px; }
}
