:root {
  --border-light: #e5e7eb;
  --button-dark: #1f2937;
  --site-background: #f8fafc;
  --card-white: #ffffff;
  --danger-tint: #fef2f2;
  --dark-text: #111827;
  --text-muted: #6b7280;
  --text-danger: #ef4444;
  --text-success: #22c55e;
  --inner-box-gray: #f3f4f6;
  --inside-white: #fdfefd;
  --inner-box-light-gray: #FCFCFC;
  --texts: #3b3b3b;
  --headings: #0f172a;
}

[data-theme='dark'] {
  --border-light: #2d3540;
  --button-dark: #5b9cf5;
  --site-background: #0b0f15;
  --card-white: #141a23;
  --danger-tint: #1c1215;
  --dark-text: #e4eaf2;
  --text-muted: #7c8596;
  --text-danger: #f7554a;
  --text-success: #3dc55b;
  --inner-box-gray: #1a212c;
  --inside-white: #1e2633;
  --inner-box-light-gray: #222b38;
  --texts: #b0b8c4;
  --headings: #f1f5f9;
}

.bti-news-container {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 20px;
  font-family: 'Tahoma', sans-serif;
  direction: rtl;
  background: var(--site-background);
  padding: 20px;
  border-radius: 12px;
}

@media (max-width: 768px) {
  .bti-news-container {
    grid-template-columns: 1fr;
  }
}

/* Sidebar */
.bti-sidebar {
  background: var(--card-white);
  padding: 20px;
  border-radius: 12px;
  border: 1px solid var(--border-light);
  height: fit-content;
}

.bti-filter-group {
  margin-bottom: 20px;
}

.bti-filter-group label {
  display: block;
  font-weight: bold;
  margin-bottom: 8px;
  color: var(--headings);
}

.bti-input, .bti-select {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  background: var(--inner-box-gray);
  color: var(--texts);
}

/* News List */
.bti-news-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 15px;
}

.bti-news-card {
  background: var(--card-white);
  padding: 15px;
  border-radius: 12px;
  border: 1px solid var(--border-light);
  display: flex;
  gap: 15px;
  cursor: pointer;
  transition: transform 0.2s;
}

.bti-news-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.bti-card-thumb {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  object-fit: cover;
  background: var(--inner-box-gray);
}

.bti-card-content {
  flex: 1;
}

.bti-card-source {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 5px;
}

.bti-source-logo {
  width: 18px;
  height: 18px;
  border-radius: 50%;
}

.bti-card-title {
  font-size: 16px;
  font-weight: bold;
  color: var(--headings);
  margin-bottom: 8px;
}

.bti-card-meta {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  gap: 15px;
}

/* Modal */
.bti-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
}

.bti-modal-content {
  background: var(--card-white);
  margin: 5% auto;
  padding: 25px;
  width: 90%;
  max-width: 700px;
  border-radius: 20px;
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.bti-modal-close {
  position: absolute;
  left: 20px;
  top: 20px;
  font-size: 24px;
  cursor: pointer;
  color: var(--text-muted);
}

/* Symbol Suggestions */
.bti-suggestions {
  position: absolute;
  background: var(--card-white);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  width: 100%;
  z-index: 10;
  max-height: 200px;
  overflow-y: auto;
}

.bti-suggestion-item {
  padding: 10px;
  cursor: pointer;
  border-bottom: 1px solid var(--border-light);
}

.bti-suggestion-item:hover {
  background: var(--inner-box-gray);
}

.bti-suggestion-symbol {
  font-weight: bold;
  color: var(--headings);
}

.bti-suggestion-name {
  font-size: 11px;
  color: var(--text-muted);
}

/* Sentiment Badge */
.bti-sentiment {
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 11px;
}
.bti-sentiment-positive { background: var(--text-success); color: white; }
.bti-sentiment-negative { background: var(--text-danger); color: white; }
.bti-sentiment-neutral { background: var(--text-muted); color: white; }
