/* Manual_Stock — StockSense-inspired dark theme */

:root {
  --primary: #3B82F6;
  --primary-hover: #60A5FA;
  --success: #10B981;
  --danger: #EF4444;
  --warning: #F59E0B;

  --bg-body: #0F1419;
  --bg-card: #1A1F29;
  --bg-hover: #242B38;

  --text-primary: #F3F4F6;
  --text-secondary: #9CA3AF;
  --text-dim: #6B7280;

  --border: #2E3748;
  --border-light: #242B38;

  --radius: 8px;
  --radius-lg: 12px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-hover); text-decoration: underline; }

/* ---- Layout ---- */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

/* ---- Header / Branding ---- */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.site-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.site-title span {
  color: var(--primary);
}

.site-subtitle {
  font-size: 0.8125rem;
  color: var(--text-dim);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ---- Ticker Grid (index.html) ---- */
.ticker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1rem;
}

.ticker-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  color: var(--text-primary);
}

.card-top-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
}

.ticker-card:hover {
  transform: translateY(-2px);
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  text-decoration: none;
  color: var(--text-primary);
}

.card-signals {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.signal-badge {
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--bg-hover);
  white-space: nowrap;
}

.ticker-logo {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-hover);
  border: 1px solid var(--border);
  flex-shrink: 0;
  object-fit: cover;
}

.ticker-logo-placeholder {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-hover);
  border: 1px solid var(--border);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-dim);
}

.ticker-name {
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.ticker-arrow {
  margin-left: auto;
  color: var(--text-dim);
  font-size: 0.875rem;
  transition: transform 0.2s ease;
}

.ticker-card:hover .ticker-arrow {
  transform: translateX(3px);
  color: var(--primary);
}

/* ---- Performance Image ---- */
.performance-section {
  margin-top: 2rem;
}

.performance-section h2 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.8125rem;
}

.performance-section img {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

/* ---- Back Link (ticker.html) ---- */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--primary);
  margin-bottom: 1.5rem;
}

.back-link:hover {
  color: var(--primary-hover);
}

/* ---- Ticker Detail Header ---- */
.ticker-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.ticker-header-logo {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  background: var(--bg-hover);
  border: 1px solid var(--border);
  object-fit: cover;
}

.ticker-header h1 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  margin: 0;
}

/* ---- Date Sections (details/summary) ---- */
details {
  margin-bottom: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

details[open] {
  border-color: var(--primary);
}

summary {
  padding: 0.75rem 1rem;
  font-weight: 600;
  font-size: 0.9375rem;
  cursor: pointer;
  color: var(--text-primary);
  background: var(--bg-card);
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: background 0.15s ease;
}

summary:hover {
  background: var(--bg-hover);
}

summary::-webkit-details-marker { display: none; }

summary::before {
  content: '▸';
  font-size: 0.75rem;
  color: var(--text-dim);
  transition: transform 0.15s ease;
}

details[open] summary::before {
  transform: rotate(90deg);
}

/* ---- Tabs ---- */
.tabs{display:flex;gap:0;border-bottom:1px solid var(--border);background:transparent;padding:0}
.tab{padding:10px 16px;cursor:pointer;border-radius:0;background:transparent;opacity:1;border:none;border-bottom:2px solid transparent;font-size:13px;font-weight:500;letter-spacing:0.04em;color:var(--text-dim);transition:color 0.15s,border-color 0.15s}
.tab:hover{color:#e0e0f0}
.tab.active{color:#f5f5ff;border-bottom-color:currentColor;font-weight:600}

/* ---- Tab Content (MD rendered area) ---- */
.tab-content {
  padding: 1.25rem;
  color: var(--text-primary);
  min-height: 100px;
}

.tab-content h1,
.tab-content h2,
.tab-content h3,
.tab-content h4 {
  color: var(--text-primary);
  font-weight: 600;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

.tab-content h1 { font-size: 1.5rem; }
.tab-content h2 { font-size: 1.25rem; }
.tab-content h3 { font-size: 1.1rem; }

.tab-content p {
  margin-bottom: 0.75rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.tab-content ul, .tab-content ol {
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--text-secondary);
}

.tab-content li {
  margin-bottom: 0.25rem;
  line-height: 1.6;
}

.tab-content strong {
  color: var(--text-primary);
  font-weight: 600;
}

.tab-content em {
  color: var(--text-dim);
}

.tab-content code {
  background: var(--bg-hover);
  padding: 0.125rem 0.375rem;
  border-radius: 4px;
  font-size: 0.875em;
  color: var(--warning);
}

.tab-content pre {
  background: var(--bg-body);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  overflow-x: auto;
  margin-bottom: 0.75rem;
}

.tab-content pre code {
  background: none;
  padding: 0;
  color: var(--text-primary);
}

.tab-content table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 0.75rem;
}

.tab-content th {
  background: var(--bg-hover);
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.5rem 0.75rem;
  text-align: left;
  border-bottom: 2px solid var(--border);
}

.tab-content td {
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-secondary);
}

.tab-content tr:hover td {
  background: var(--bg-hover);
}

.tab-content blockquote {
  border-left: 3px solid(var(--primary));
  padding-left: 1rem;
  margin: 0.75rem 0;
  color: var(--text-dim);
  font-style: italic;
}

.tab-content a {
  color: var(--primary);
}

.tab-content a:hover {
  color: var(--primary-hover);
}

/* ---- Signal Colors (optional, for future use) ---- */
.signal-buy { color: var(--success); }
.signal-sell { color: var(--danger); }
.ignal-hold { color: var(--warning); }

/* ---- Footer ---- */
.site-footer {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.8125rem;
  color: var(--text-dim);
  text-align: center;
}

/* ---- Responsive ---- */
@media (max-width: 600px) {
  .container { padding: 1rem; }
  .ticker-grid { grid-template-columns: 1fr; }
  .tabs { overflow-x: auto; white-space: nowrap; }
  .ticker-header h1 { font-size: 1.25rem; }
}
/* Manual_Stock — StockSense-inspired dark theme */

:root {
  --primary: #3B82F6;
  --primary-hover: #60A5FA;
  --success: #10B981;
  --danger: #EF4444;
  --warning: #F59E0B;

  --bg-body: #0F1419;
  --bg-card: #1A1F29;
  --bg-hover: #242B38;

  --text-primary: #F3F4F6;
  --text-secondary: #9CA3AF;
  --text-dim: #6B7280;

  --border: #2E3748;
  --border-light: #242B38;

  --radius: 8px;
  --radius-lg: 12px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-hover); text-decoration: underline; }

/* ---- Layout ---- */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

/* ---- Header / Branding ---- */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.site-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.site-title span {
  color: var(--primary);
}

.site-subtitle {
  font-size: 0.8125rem;
  color: var(--text-dim);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ---- Ticker Grid (index.html) ---- */
.ticker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}

.ticker-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  color: var(--text-primary);
}

.ticker-card:hover {
  transform: translateY(-2px);
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  text-decoration: none;
  color: var(--text-primary);
}

.ticker-logo {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-hover);
  border: 1px solid var(--border);
  flex-shrink: 0;
  object-fit: cover;
}

.ticker-logo-placeholder {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-hover);
  border: 1px solid var(--border);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-dim);
}

.ticker-name {
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.ticker-arrow {
  margin-left: auto;
  color: var(--text-dim);
  font-size: 0.875rem;
  transition: transform 0.2s ease;
}

.ticker-card:hover .ticker-arrow {
  transform: translateX(3px);
  color: var(--primary);
}

/* ---- Performance Image ---- */
.performance-section {
  margin-top: 2rem;
}

.performance-section h2 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.8125rem;
}

.performance-section img {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

/* ---- Back Link (ticker.html) ---- */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--primary);
  margin-bottom: 1.5rem;
}

.back-link:hover {
  color: var(--primary-hover);
}

/* ---- Ticker Detail Header ---- */
.ticker-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.ticker-header-logo {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  background: var(--bg-hover);
  border: 1px solid var(--border);
  object-fit: cover;
}

.ticker-header h1 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  margin: 0;
}

/* ---- Date Sections (details/summary) ---- */
details {
  margin-bottom: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

details[open] {
  border-color: var(--primary);
}

summary {
  padding: 0.75rem 1rem;
  font-weight: 600;
  font-size: 0.9375rem;
  cursor: pointer;
  color: var(--text-primary);
  background: var(--bg-card);
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: background 0.15s ease;
}

summary:hover {
  background: var(--bg-hover);
}

summary::-webkit-details-marker { display: none; }

summary::before {
  content: '▸';
  font-size: 0.75rem;
  color: var(--text-dim);
  transition: transform 0.15s ease;
}

details[open] summary::before {
  transform: rotate(90deg);
}

/* ---- Tabs ---- */
.tabs{display:flex;gap:0;border-bottom:1px solid var(--border);background:transparent;padding:0}
.tab{padding:10px 16px;cursor:pointer;border-radius:0;background:transparent;opacity:1;border:none;border-bottom:2px solid transparent;font-size:13px;font-weight:500;letter-spacing:0.04em;color:var(--text-dim);transition:color 0.15s,border-color 0.15s}
.tab:hover{color:#e0e0f0}
.tab.active{color:#f5f5ff;border-bottom-color:currentColor;font-weight:600}

/* ---- Tab Content (MD rendered area) ---- */
.tab-content {
  padding: 1.25rem;
  color: var(--text-primary);
  min-height: 100px;
}

.tab-content h1,
.tab-content h2,
.tab-content h3,
.tab-content h4 {
  color: var(--text-primary);
  font-weight: 600;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

.tab-content h1 { font-size: 1.5rem; }
.tab-content h2 { font-size: 1.25rem; }
.tab-content h3 { font-size: 1.1rem; }

.tab-content p {
  margin-bottom: 0.75rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.tab-content ul, .tab-content ol {
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--text-secondary);
}

.tab-content li {
  margin-bottom: 0.25rem;
  line-height: 1.6;
}

.tab-content strong {
  color: var(--text-primary);
  font-weight: 600;
}

.tab-content em {
  color: var(--text-dim);
}

.tab-content code {
  background: var(--bg-hover);
  padding: 0.125rem 0.375rem;
  border-radius: 4px;
  font-size: 0.875em;
  color: var(--warning);
}

.tab-content pre {
  background: var(--bg-body);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  overflow-x: auto;
  margin-bottom: 0.75rem;
}

.tab-content pre code {
  background: none;
  padding: 0;
  color: var(--text-primary);
}

.tab-content table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 0.75rem;
}

.tab-content th {
  background: var(--bg-hover);
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.5rem 0.75rem;
  text-align: left;
  border-bottom: 2px solid var(--border);
}

.tab-content td {
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-secondary);
}

.tab-content tr:hover td {
  background: var(--bg-hover);
}

.tab-content blockquote {
  border-left: 3px solid(var(--primary));
  padding-left: 1rem;
  margin: 0.75rem 0;
  color: var(--text-dim);
  font-style: italic;
}

.tab-content a {
  color: var(--primary);
}

.tab-content a:hover {
  color: var(--primary-hover);
}

/* ---- Signal Colors (optional, for future use) ---- */
.signal-buy { color: var(--success); }
.signal-sell { color: var(--danger); }
.ignal-hold { color: var(--warning); }

/* ---- Footer ---- */
.site-footer {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.8125rem;
  color: var(--text-dim);
  text-align: center;
}

/* ---- Responsive ---- */
@media (max-width: 600px) {
  .container { padding: 1rem; }
  .ticker-grid { grid-template-columns: 1fr; }
  .tabs { overflow-x: auto; white-space: nowrap; }
  .ticker-header h1 { font-size: 1.25rem; }
}

/* ============================================
   Manual_Stock — Shared Stylesheet
   Referenced by: index.html, ticker.html
   Theme: Dark, minimal, data-focused
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: #0d1117;
  color: #e6edf3;
  line-height: 1.6;
  padding: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

a {
  color: #58a6ff;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* --- Header / Nav --- */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #21262d;
  margin-bottom: 24px;
}

.header h1 {
  font-size: 20px;
  font-weight: 600;
  color: #f0f6fc;
}

.header nav a {
  margin-left: 16px;
  font-size: 14px;
  color: #8b949e;
}

.header nav a:hover {
  color: #58a6ff;
}

/* --- Ticker Grid (index.html) --- */
.ticker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

/* --- Signal Colors (shared by grid + ticker view) --- */
.signal-buy  { background: #1a3a2a; color: #3fb950; }
.signal-sell { background: #3d1a1a; color: #f85149; }
.signal-hold { background: #2a2a1a; color: #d29922; }
.signal-none { background: #1c1c1c; color: #8b949e; }

/* --- Ticker View (ticker.html) --- */
.ticker-header {
  margin-bottom: 20px;
}

.ticker-header h2 {
  font-size: 24px;
  font-weight: 700;
  color: #f0f6fc;
}

.ticker-header .price {
  font-size: 16px;
  color: #8b949e;
  margin-top: 4px;
}

/* --- Date List (sidebar or stacked list of date folders) --- */
.date-list {
  list-style: none;
  margin-bottom: 20px;
}

.date-list li {
  padding: 8px 12px;
  border-left: 3px solid transparent;
  cursor: pointer;
  font-size: 14px;
  color: #8b949e;
}

.date-list li:hover,
.date-list li.active {
  border-left-color: #58a6ff;
  color: #e6edf3;
  background: #161b22;
}

/* --- MD Content Display --- */
.md-content {
  background: #161b22;
  border: 1px solid #21262d;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 16px;
}

.md-content h3 {
  font-size: 14px;
  font-weight: 600;
  color: #8b949e;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.md-content pre {
  white-space: pre-wrap;
  word-wrap: break-word;
  font-family: "SF Mono", "Fira Code", "Consolas", monospace;
  font-size: 13px;
  line-height: 1.5;
  color: #e6edf3;
}

/* --- Source Tabs (ClaudeAI / DeepSeek / Gemini / Me) --- */
.source-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 16px;
  border-bottom: 1px solid #21262d;
}

.source-tabs button {
  background: none;
  border: none;
  padding: 8px 16px;
  font-size: 14px;
  color: #8b949e;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  font-family: inherit;
}

.source-tabs button:hover {
  color: #e6edf3;
}

.source-tabs button.active {
  color: #58a6ff;
  border-bottom-color: #58a6ff;
}

/* --- Status / Loading --- */
.status-msg {
  text-align: center;
  color: #8b949e;
  padding: 40px 0;
  font-size: 14px;
}

/* --- Responsive --- */
@media (max-width: 600px) {
  body {
    padding: 12px;
  }
@media (max-width: 600px) {
  .container { padding: 1rem; }
  .ticker-grid { grid-template-columns: 1fr; }
  .tabs { overflow-x: auto; white-space: nowrap; }
  .ticker-header h1 { font-size: 1.25rem; }
}
  padding: 6px 12px;
  border: 1px solid var(--border);
}

.tab-content pre {
  background: #0f1020;
  padding: 12px 16px;
  border-radius: 8px;
  overflow-x: auto;
  font-size: 0.85em;
  margin: 12px 0;
}

.tab-content code {
  background: #0f1020;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.9em;
  color: #a0d0ff;
}

.tab-content a {
  color: var(--deepseek);
  text-decoration: underline;
  text-decoration-color: rgba(74,144,217,0.3);
}

.tab-content a:hover {
  text-decoration-color: var(--deepseek);
}

/* --- Tab polish (underline style) --- */
