/* PXAI MAIN STYLES v2.1 (Premium Layout & Performance) */
:root { --bg-body: #0d1117; --bg-card: #161b22; --text-main: #ffffff; --text-muted: #8b949e; --border-color: #30363d; --tag-bg: #1e2329; --tag-text: #8b949e; --tag-border: #444c56; --panel-bg: #161b22; --btn-outline: #f0f6fc; }
body.light-mode { --bg-body: #f4f6f8; --bg-card: #ffffff; --text-main: #212529; --text-muted: #6c757d; --border-color: #dee2e6; --tag-bg: #e9ecef; --tag-text: #212529; --tag-border: #ced4da; --panel-bg: #ffffff; --btn-outline: #212529; }
body { background-color: var(--bg-body); color: var(--text-main); transition: background-color 0.3s, color 0.1s; }
.navbar { background-color: var(--bg-card) !important; border-bottom: 1px solid var(--border-color); }
.t-card, .card { background-color: var(--bg-card); border: 1px solid var(--border-color); }
h1, h2, h3, h4, h5, h6, p, strong, a, .text-white, .article-title a { color: var(--text-main) !important; }
.text-muted, .text-secondary, .article-description { color: var(--text-muted) !important; }
.tag-badge { font-size: 0.70rem; background: var(--tag-bg); color: var(--tag-text); border: 1px solid var(--tag-border); padding: 3px 10px; border-radius: 12px; text-decoration: none; text-transform: uppercase; margin-right: 6px; margin-bottom: 6px; display: inline-block; font-weight: 600; transition: all 0.2s ease; cursor: pointer; }
.tag-badge:hover { background: #00ff41 !important; color: #000 !important; border-color: #00ff41; transform: translateY(-2px); box-shadow: 0 4px 10px rgba(0, 255, 65, 0.3); }
#settings-panel { background-color: var(--panel-bg); border: 1px solid var(--border-color); color: var(--text-main); box-shadow: 0 4px 15px rgba(0,0,0,0.2); display: none; min-width: 260px; animation: fadeInUp 0.2s ease-out; }
#settings-panel .text-white { color: var(--text-main) !important; }
#settings-panel .btn-outline-light { color: var(--btn-outline); border-color: var(--border-color); }
#settings-panel .btn-outline-light:hover { background-color: rgba(128,128,128,0.2); }
.global-player-bar { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 8px; padding: 12px; margin-bottom: 25px; }

/* Enhanced Article Layout */
.article-flex { display: flex; align-items: start; }
/* [UX UPGRADE] Larger Thumbnail for Desktop */
.article-img-col { width: 220px; flex-shrink: 0; margin-right: 1.5rem; transition: all 0.3s ease; }
/* [UX UPGRADE] Taller, more cinematic image */
.img-fluid-custom { width: 100%; height: 140px; object-fit: cover; border-radius: 8px; border: 1px solid var(--border-color); box-shadow: 0 2px 8px rgba(0,0,0,0.15); }
.timeline-node { border-left: 2px solid var(--border-color); padding-left: 15px; margin-left: 5px; }
body.no-images .article-img-col { display: none !important; }

@keyframes fadeInUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* Mobile Optimization for Premium Look */
@media (max-width: 768px) { 
    .article-flex { display: flex; flex-direction: column; } 
    .article-img-col { width: 100%; margin-bottom: 12px; margin-right: 0; }
    /* Beautiful banner aspect ratio for mobile */
    .img-fluid-custom { height: auto; aspect-ratio: 16/9; }
}
