/* ==========================================================================
   ELITE NEWS SENTIMENT CSS
   Glassmorphism, Sentiment Colors, Tag Clouds
   ========================================================================== */

/* Layout & Globals */
.nws-snt-container { margin-left: 20px; padding: 32px; min-height: 100vh; color: #ffffff; font-family: 'Inter', sans-serif; display: flex; flex-direction: column; gap: 24px; }
.nws-snt-layout { display: flex; gap: 24px; align-items: flex-start; }
.nws-snt-main { flex-grow: 1; min-width: 0; display: flex; flex-direction: column; }
.nws-snt-sidebar { width: 340px; flex-shrink: 0; position: sticky; top: 32px; display: flex; flex-direction: column; gap: 24px; }

/* Utilities */
.hidden { display: none !important; }
.m-0 { margin: 0; } .mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; } .mb-8 { margin-bottom: 8px; } .mb-16 { margin-bottom: 16px; } .mb-24 { margin-bottom: 24px; }
.pt-24 { padding-top: 24px; } .border-top { border-top: 1px solid rgba(255,255,255,0.1); }
.text-sm { font-size: 0.85rem; } .text-muted { color: rgba(255,255,255,0.6); } .w-full { width: 100%; }
.uppercase { text-transform: uppercase; } .font-bold { font-weight: 700; }
.flex-between { display: flex; justify-content: space-between; align-items: center; } .flex-align-center { display: flex; align-items: center; } .gap-8 { gap: 8px; } .gap-16 { gap: 16px; }
.text-purple { color: #c084fc; } .text-cyan { color: #06b6d4; } .text-gold { color: #fbbf24; } .text-red { color: #ef5350; } .text-green { color: #22c55e; } .text-white { color: #ffffff; }

/* Animations */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(15px); } to { opacity: 1; transform: translateY(0); } }
@keyframes popIn { 0% { opacity:0; transform: scale(0.9); } 100% { opacity:1; transform: scale(1); } }
.fade-in { animation: fadeInUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.spinning { animation: spin 1s linear infinite; }
@keyframes spin { 100% { transform: rotate(360deg); } }

/* Cards */
.nws-snt-card { background: rgba(255,255,255,0.03); backdrop-filter: blur(24px) saturate(180%); border: 1px solid rgba(255,255,255,0.08); border-radius: 24px; padding: 24px; box-shadow: 0 8px 32px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.05); transition: all 0.4s; }

/* Header */
.nws-snt-header { display: flex; justify-content: space-between; align-items: flex-end; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 24px; }
.nws-snt-header__title { font-size: 2.2rem; font-weight: 800; margin: 0 0 8px 0; letter-spacing: 1px; }
.nws-snt-header__subtitle { color: #c084fc; margin: 0; font-size: 1rem; }
.nws-snt-header__stats { display: flex; gap: 24px; }
.nws-snt-stat-card { text-align: center; }
.nws-snt-stat-val { display: block; font-size: 1.3rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.nws-snt-stat-label { font-size: 0.75rem; color: rgba(255,255,255,0.5); text-transform: uppercase; }

/* Buttons & Inputs */
.nws-snt-btn { padding: 10px 20px; border-radius: 12px; font-weight: 700; font-size: 0.85rem; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; transition: all 0.3s; border: none; text-transform: uppercase; font-family: inherit; }
.nws-snt-btn--primary { background: linear-gradient(135deg, #a855f7, #7e22ce); color: white; box-shadow: 0 4px 15px rgba(168, 85, 247, 0.3); }
.nws-snt-btn--primary:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(168, 85, 247, 0.5); }
.nws-snt-btn--secondary { background: rgba(255,255,255,0.05); color: white; border: 1px solid rgba(255,255,255,0.1); }
.nws-snt-btn--secondary:hover { background: rgba(255,255,255,0.1); border-color: #c084fc; color: #c084fc; }
.nws-snt-btn-icon-small { background: transparent; border: none; color: rgba(255,255,255,0.6); cursor: pointer; transition: 0.2s; font-size: 1rem; }
.nws-snt-btn-icon-small:hover { color: white; }

.nws-snt-input, .nws-snt-select { width: 100%; padding: 10px 14px; background: rgba(0,0,0,0.3); border: 1px solid rgba(255,255,255,0.1); color: white; border-radius: 8px; transition: 0.3s; font-family: inherit; font-size: 0.85rem; outline: none; }
.nws-snt-input:focus, .nws-snt-select:focus { border-color: #c084fc; box-shadow: 0 0 0 2px rgba(192,132,252,0.2); }
.nws-snt-form-group { margin-bottom: 16px; }
.nws-snt-form-group label { display: block; margin-bottom: 8px; font-size: 0.85rem; color: rgba(255,255,255,0.8); font-weight: 600; }

/* Switch Toggle */
.nws-snt-switch { position: relative; display: inline-block; width: 42px; height: 22px; flex-shrink: 0; }
.nws-snt-switch input { opacity: 0; width: 0; height: 0; }
.nws-snt-slider-toggle { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: rgba(255,255,255,0.1); transition: .4s; border-radius: 24px; }
.nws-snt-slider-toggle:before { position: absolute; content: ""; height: 16px; width: 16px; left: 3px; bottom: 3px; background-color: white; transition: .4s; border-radius: 50%; }
.nws-snt-switch input:checked + .nws-snt-slider-toggle { background-color: #a855f7; }
.nws-snt-switch input:checked + .nws-snt-slider-toggle:before { transform: translateX(20px); }

/* Hero Grid (Mood + AI) */
.nws-snt-hero-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 24px; }
.nws-snt-mood-card { text-align: center; }
.nws-snt-gauge-container { position: relative; width: 100%; max-width: 200px; margin: 0 auto; }
.nws-snt-gauge { width: 100%; overflow: visible; }
.nws-snt-gauge .gauge-bg { fill: none; stroke: rgba(255,255,255,0.1); stroke-width: 10; stroke-linecap: round; }
.nws-snt-gauge .gauge-fill { fill: none; stroke-width: 10; stroke-linecap: round; stroke-dasharray: 157; stroke-dashoffset: 0; }
.gauge-needle-group { transform-origin: 60px 60px; transition: transform 1.5s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.nws-snt-gauge-val { position: absolute; bottom: -5px; left: 50%; transform: translateX(-50%); font-size: 1.8rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.nws-snt-mood-verdict { margin-top: 12px; font-weight: 800; letter-spacing: 2px; color: #fbbf24; }

.nws-snt-summary-card { background: radial-gradient(circle at top right, rgba(168,85,247,0.1), transparent); }
.nws-snt-summary-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.nws-snt-summary-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 0.95rem; line-height: 1.5; color: rgba(255,255,255,0.9); }
.nws-snt-summary-list li i { margin-top: 4px; }

/* Symbols Grid */
.nws-snt-section-title { font-size: 1.1rem; text-transform: uppercase; letter-spacing: 1px; margin: 0 0 16px 0; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 8px; }
.nws-snt-symbols-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; }
.nws-snt-sym-card { background: rgba(0,0,0,0.3); border: 1px solid rgba(255,255,255,0.05); padding: 16px; border-radius: 16px; display: flex; flex-direction: column; cursor: pointer; transition: 0.2s; }
.nws-snt-sym-card:hover { border-color: rgba(192,132,252,0.4); transform: translateY(-2px); background: rgba(255,255,255,0.03); }
.nws-snt-sym-card .sym { font-weight: 800; font-size: 1.1rem; }
.nws-snt-sym-card .score { font-size: 1.4rem; font-weight: 800; font-variant-numeric: tabular-nums; margin: 8px 0; }
.nws-snt-color-bar { width: 100%; height: 4px; border-radius: 2px; background: rgba(255,255,255,0.1); overflow: hidden; position: relative; }
.nws-snt-color-fill { height: 100%; width: 50%; background: #22c55e; position: absolute; left: 50%; transform-origin: left; transition: width 0.5s; }

/* Trending Topics */
.nws-snt-tag-cloud { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.nws-snt-tag { padding: 4px 12px; border-radius: 16px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); cursor: pointer; transition: 0.2s; white-space: nowrap; }
.nws-snt-tag:hover { transform: scale(1.05); border-color: #c084fc; background: rgba(192,132,252,0.1); }
.tag-bull { color: #4ade80; border-color: rgba(74,222,128,0.3); }
.tag-bear { color: #ef5350; border-color: rgba(239,83,80,0.3); }

/* Filter Bar */
.nws-snt-filters { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; background: rgba(255,255,255,0.03); padding: 12px 20px; border-radius: 16px; border: 1px solid rgba(255,255,255,0.05); }
.nws-snt-search { position: relative; flex-grow: 1; max-width: 300px; }
.nws-snt-search i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: rgba(255,255,255,0.4); }
.nws-snt-search input { width: 100%; padding: 10px 14px 10px 36px; background: rgba(0,0,0,0.3); border: 1px solid rgba(255,255,255,0.1); color: white; border-radius: 8px; outline: none; }
.nws-snt-checkbox-label { display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: 0.85rem; }
.nws-snt-checkbox-label input { accent-color: #fbbf24; width: 16px; height: 16px; }

/* News Feed */
.nws-snt-feed { display: flex; flex-direction: column; gap: 16px; }
.nws-snt-headline-card { background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.05); border-left: 4px solid #4ade80; border-radius: 12px; padding: 16px; transition: 0.2s; cursor: pointer; position: relative; animation: popIn 0.3s ease-out forwards; opacity: 0; }
.nws-snt-headline-card:hover { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.1); }
.nws-snt-headline-card.is-bear { border-left-color: #ef5350; }
.nws-snt-headline-card.is-neu { border-left-color: rgba(255,255,255,0.3); }

.hl-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.nws-snt-source-chip { font-size: 0.7rem; font-weight: 700; background: rgba(255,255,255,0.1); padding: 2px 8px; border-radius: 4px; text-transform: uppercase; }
.hl-title { font-size: 1.1rem; font-weight: 700; margin: 0 0 8px 0; line-height: 1.4; color: rgba(255,255,255,0.95); }
.hl-summary { font-size: 0.85rem; color: rgba(255,255,255,0.6); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.hl-tags { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.hl-tag-sym { font-size: 0.7rem; color: #c084fc; background: rgba(192,132,252,0.1); border: 1px solid rgba(192,132,252,0.3); padding: 2px 8px; border-radius: 12px; font-weight: 700; }
.hl-tag-topic { font-size: 0.7rem; color: rgba(255,255,255,0.5); background: rgba(255,255,255,0.05); padding: 2px 8px; border-radius: 12px; }

.hl-actions { position: absolute; top: 16px; right: 16px; display: flex; gap: 12px; opacity: 0; transition: 0.2s; }
.nws-snt-headline-card:hover .hl-actions { opacity: 1; }
.hl-btn { background: transparent; border: none; color: rgba(255,255,255,0.5); cursor: pointer; transition: 0.2s; font-size: 1.1rem; }
.hl-btn:hover { color: #fff; transform: scale(1.1); }
.hl-btn.is-starred { color: #fbbf24; opacity: 1; }
.nws-snt-headline-card:hover .hl-btn.is-starred { color: #fbbf24; }

/* Inline Expand */
.hl-expanded-body { margin-top: 16px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,0.05); display: none; }
.nws-snt-headline-card.expanded .hl-expanded-body { display: block; animation: fadeInUp 0.3s forwards; }
.nws-snt-headline-card.expanded .hl-summary { -webkit-line-clamp: unset; }

/* Sidebar Charts & Panels */
.nws-snt-chart-container { width: 100%; height: 200px; position: relative; }
.nws-snt-chart-svg { width: 100%; height: 100%; overflow: visible; }
.snt-chart-axis { stroke: rgba(255,255,255,0.1); stroke-width: 1; }
.snt-chart-line { fill: none; stroke: #c084fc; stroke-width: 2; }
.snt-chart-area { fill: rgba(168,85,247,0.1); }
.snt-chart-zero { stroke: rgba(255,255,255,0.2); stroke-width: 1; stroke-dasharray: 4; }

.nws-snt-sources-list { display: flex; flex-direction: column; gap: 8px; }
.src-item { display: flex; justify-content: space-between; align-items: center; padding: 8px; background: rgba(0,0,0,0.2); border-radius: 8px; font-size: 0.85rem; }

/* Modals */
.nws-snt-modal { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; z-index: 1000; display: flex; align-items: center; justify-content: center; }
.nws-snt-modal__overlay { position: absolute; width: 100%; height: 100%; background: rgba(0,0,0,0.8); backdrop-filter: blur(8px); }
.nws-snt-modal__content { position: relative; background: #0d0b12; border: 1px solid rgba(255,255,255,0.1); border-radius: 24px; width: 90%; max-width: 500px; max-height: 90vh; overflow-y: auto; padding: 32px; box-shadow: 0 20px 50px rgba(0,0,0,0.5); animation: fadeInUp 0.3s ease-out; }
.nws-snt-modal__close { position: absolute; top: 24px; right: 24px; background: none; border: none; color: rgba(255,255,255,0.5); font-size: 1.5rem; cursor: pointer; transition: 0.3s; }
.nws-snt-modal__close:hover { color: white; }

.nws-snt-sentiment-badge { font-size: 0.75rem; font-weight: 800; padding: 4px 10px; border-radius: 12px; letter-spacing: 1px; }
.nws-snt-sentiment-badge.positive { background: rgba(34,197,94,0.2); color: #4ade80; border: 1px solid rgba(34,197,94,0.3); }
.nws-snt-sentiment-badge.negative { background: rgba(239,83,80,0.2); color: #ef5350; border: 1px solid rgba(239,83,80,0.3); }
.nws-snt-sentiment-badge.neutral { background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.7); border: 1px solid rgba(255,255,255,0.2); }