/* Custom UI Styles for NewsFeed Studio */

/* Active nav tab */
.nav-tab {
  color: #94a3b8;
  transition: all 0.15s ease-in-out;
}
.nav-tab:hover {
  color: #f1f5f9;
  background-color: rgba(30, 41, 59, 0.7);
}
.nav-tab.active {
  color: #f97316;
  background-color: rgba(249, 115, 22, 0.12);
  border: 1px solid rgba(249, 115, 22, 0.25);
}

/* Preset chips */
.preset-chip {
  padding: 4px 10px;
  background-color: rgba(30, 41, 59, 0.8);
  border: 1px solid rgba(51, 65, 85, 0.8);
  border-radius: 9999px;
  color: #cbd5e1;
  cursor: pointer;
  transition: all 0.15s ease;
}
.preset-chip:hover {
  background-color: #334155;
  color: #fb923c;
  border-color: rgba(249, 115, 22, 0.4);
}

/* Preset category pill */
.preset-pill {
  padding: 6px 14px;
  background-color: rgba(30, 41, 59, 0.7);
  border: 1px solid rgba(51, 65, 85, 0.8);
  border-radius: 9999px;
  color: #cbd5e1;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
}
.preset-pill:hover {
  background-color: #334155;
  color: #fb923c;
  border-color: rgba(249, 115, 22, 0.4);
}
.preset-pill.active {
  background-color: rgba(249, 115, 22, 0.15);
  border-color: #f97316;
  color: #fb923c;
}

/* Selector input */
.selector-input {
  width: 100%;
  padding: 6px 10px;
  background-color: #020617;
  border: 1px solid #334155;
  border-radius: 8px;
  color: #e2e8f0;
  font-family: monospace;
  font-size: 11px;
}
.selector-input:focus {
  outline: none;
  border-color: #f97316;
  box-shadow: 0 0 0 1px #f97316;
}

/* Article card styling */
.article-card {
  background-color: #0f172a;
  border: 1px solid #1e293b;
  border-radius: 1rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.article-card:hover {
  transform: translateY(-2px);
  border-color: #334155;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3), 0 8px 10px -6px rgba(0, 0, 0, 0.3);
}

/* Line clamp utilities */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Custom modern scrollbar */
::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}
::-webkit-scrollbar-track {
  background: #0f172a;
}
::-webkit-scrollbar-thumb {
  background: #334155;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #475569;
}

/* Light Mode Overrides */
html:not(.dark) body {
  background-color: #f8fafc;
  color: #0f172a;
}
html:not(.dark) header {
  background-color: rgba(255, 255, 255, 0.9);
  border-color: #e2e8f0;
}
html:not(.dark) .nav-tab {
  color: #64748b;
}
html:not(.dark) .nav-tab:hover {
  background-color: #f1f5f9;
  color: #0f172a;
}
html:not(.dark) .nav-tab.active {
  background-color: #ffedd5;
  border-color: #fdba74;
  color: #c2410c;
}
html:not(.dark) .bg-slate-900 {
  background-color: #ffffff;
  border-color: #e2e8f0;
}
html:not(.dark) .bg-slate-950 {
  background-color: #f1f5f9;
}
html:not(.dark) .border-slate-800 {
  border-color: #e2e8f0;
}
html:not(.dark) .border-slate-700 {
  border-color: #cbd5e1;
}
html:not(.dark) .text-slate-400 {
  color: #64748b;
}
html:not(.dark) .text-slate-500 {
  color: #64748b;
}
html:not(.dark) .text-slate-200 {
  color: #1e293b;
}
html:not(.dark) .text-white {
  color: #0f172a;
}
html:not(.dark) .article-card {
  background-color: #ffffff;
  border-color: #e2e8f0;
}
html:not(.dark) .preset-chip {
  background-color: #e2e8f0;
  border-color: #cbd5e1;
  color: #334155;
}
html:not(.dark) .selector-input {
  background-color: #ffffff;
  border-color: #cbd5e1;
  color: #0f172a;
}
