/* FXComm Core - Frontend Styles */

/* ====== News Horizontal Tabs ====== */
.fx-news-tabs { display: flex; list-style: none; margin: 0 0 24px; padding: 0; gap: 0; border-bottom: 1px solid var(--fx-border-color, rgba(255,255,255,0.08)); overflow-x: auto; -webkit-overflow-scrolling: touch; white-space: nowrap; }
.fx-news-tabs li { margin: 0; padding: 0; }
.fx-news-tab { display: inline-block; padding: 10px 20px; font-size: 14px; font-weight: 500; color: var(--fx-text-secondary, #94a3b8); text-decoration: none; border-bottom: 2px solid transparent; transition: all 0.2s; }
.fx-news-tab:hover { color: var(--fx-text, #e2e8f0); }
.fx-news-tab-active { color: var(--fx-blue, #d4a800); border-bottom-color: var(--fx-blue, #d4a800); }
.fx-news-tab-active:hover { color: var(--fx-blue, #d4a800); }

/* ====== News List View (thumbnail left, excerpt right) ====== */
.fx-news-list-view { display: flex; flex-direction: column; gap: 16px; }

.fx-news-list-item { display: flex; gap: 18px; padding: 16px; border-radius: 10px; background: var(--fx-surface, #0f172a); border: 1px solid var(--fx-border-color, rgba(255,255,255,0.06)); text-decoration: none; transition: transform 0.2s, box-shadow 0.2s; align-items: flex-start; }
.fx-news-list-item:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(0,0,0,0.15); border-color: rgba(212,168,0,0.2); }

.fx-news-list-thumb { width: 120px; height: 80px; flex-shrink: 0; border-radius: 6px; overflow: hidden; background: var(--fx-surface-2, #1e293b); }
.fx-news-list-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fx-news-list-placeholder { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; min-height: 80px; }
.fx-news-list-icon { font-size: 24px; font-weight: 700; color: var(--fx-text-secondary, #64748b); }
.fx-news-svg-placeholder { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 6px; }

.fx-news-list-body { flex: 1; min-width: 0; }
.fx-news-list-cat { display: inline-block; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 6px; }
.fx-news-list-title { margin: 0 0 6px; font-size: 16px; font-weight: 600; line-height: 1.4; color: var(--fx-text, #e2e8f0); }
.fx-news-list-item:hover .fx-news-list-title { color: var(--fx-blue, #d4a800); }
.fx-news-list-excerpt { margin: 0 0 8px; font-size: 13px; color: var(--fx-text-secondary, #94a3b8); line-height: 1.5; }
.fx-news-list-meta { display: flex; gap: 12px; font-size: 12px; color: var(--fx-text-muted, #64748b); }
.fx-news-list-source { font-weight: 500; }

/* ====== News homepage snippet list ====== */
.fx-news-list { display: flex; flex-direction: column; gap: 0; }
.fx-news-item { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--fx-border-color, rgba(255,255,255,0.06)); align-items: flex-start; }
.fx-news-item:first-child { padding-top: 0; }
.fx-news-item:last-child { padding-bottom: 0; border-bottom: none; }
.fx-news-thumb { width: 80px; height: 60px; flex-shrink: 0; border-radius: 6px; overflow: hidden; background: var(--fx-surface-2, #1e293b); }
.fx-news-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fx-news-placeholder { display: block; width: 100%; height: 100%; min-height: 60px; background: linear-gradient(135deg, var(--fx-surface-2, #1e293b) 0%, #2d3748 100%); }
.fx-news-info { flex: 1; min-width: 0; }
.fx-news-title { color: var(--fx-text, #e2e8f0); font-size: 14px; font-weight: 600; line-height: 1.4; text-decoration: none; display: block; margin-bottom: 4px; }
.fx-news-title:hover { color: var(--fx-blue, #d4a800); }
.fx-news-excerpt { color: var(--fx-text-secondary, #94a3b8); font-size: 12px; line-height: 1.5; margin: 0; }
.fx-news-meta { color: var(--fx-text-muted, #64748b); font-size: 11px; }

/* ====== Single Article Page ====== */
.fx-single-news-wrap { max-width: 760px; margin: 0 auto; }
.fx-news-back { display: inline-block; margin-bottom: 20px; font-size: 14px; color: var(--fx-blue, #d4a800); text-decoration: none; }
.fx-news-back:hover { text-decoration: underline; }

.fx-single-article { background: var(--fx-surface, #0f172a); border-radius: 12px; border: 1px solid var(--fx-border-color, rgba(255,255,255,0.08)); padding: 32px; }
.fx-single-article-img { margin: -32px -32px 24px; border-radius: 12px 12px 0 0; overflow: hidden; max-height: 400px; }
.fx-single-article-img img { width: 100%; height: 100%; object-fit: cover; display: block; }

.fx-article-category { display: inline-block; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; color: var(--fx-blue, #d4a800); margin-bottom: 12px; }
.fx-article-title { margin: 0 0 16px; font-size: 28px; font-weight: 700; line-height: 1.3; color: var(--fx-text, #e2e8f0); }
.fx-article-meta { display: flex; gap: 16px; font-size: 14px; color: var(--fx-text-secondary, #94a3b8); margin-bottom: 24px; padding-bottom: 20px; border-bottom: 1px solid var(--fx-border-color, rgba(255,255,255,0.08)); }
.fx-article-source { font-weight: 500; }
.fx-article-content { font-size: 16px; line-height: 1.7; color: var(--fx-text, #e2e8f0); }
.fx-article-content p { margin: 0 0 16px; }
.fx-article-source-link { font-size: 13px; color: var(--fx-text-muted, #64748b); margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--fx-border-color, rgba(255,255,255,0.08)); }
.fx-article-source-link a { color: var(--fx-blue, #d4a800); }

/* ====== Pagination ====== */
.fx-news-pagination { display: flex; justify-content: center; gap: 6px; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--fx-border-color, rgba(255,255,255,0.08)); }
.fx-news-page { display: inline-flex; align-items: center; justify-content: center; min-width: 34px; height: 34px; border-radius: 6px; font-size: 13px; font-weight: 500; color: var(--fx-text-secondary, #94a3b8); text-decoration: none; background: var(--fx-surface-2, #1e293b); transition: all 0.2s; }
.fx-news-page:hover { color: var(--fx-text, #e2e8f0); background: var(--fx-surface-3, #2d3748); }
.fx-news-page-active { color: #fff; background: var(--fx-blue, #d4a800); }
.fx-news-page-active:hover { color: #fff; background: var(--fx-blue, #d4a800); }

/* ====== News layout ====== */
.fx-news-layout { display: grid; grid-template-columns: 1fr 300px; gap: 30px; align-items: start; }
.fx-news-empty { color: var(--fx-text-secondary, #94a3b8); font-size: 14px; text-align: center; padding: 40px 0; }

@media (max-width: 768px) {
    .fx-news-layout { grid-template-columns: 1fr; }
    .fx-news-list-thumb { width: 80px; height: 60px; }
    .fx-news-list-title { font-size: 14px; }
    .fx-news-tabs { gap: 0; }
    .fx-news-tab { padding: 8px 14px; font-size: 13px; }
    .fx-single-article { padding: 16px; }
    .fx-single-article-img { margin: -16px -16px 16px; }
    .fx-article-title { font-size: 22px; }
}