/* ═══ TVR MY THESIS PAGE ═══ */

/* Empty state */
.thesis-empty-state { text-align: center; padding: 4rem 2rem; }
.thesis-empty-icon { margin-bottom: 1.25rem; }
.thesis-empty-title { font-size: 1.35rem; font-weight: 600; color: var(--text-primary); margin: 0 0 0.5rem; }
.thesis-empty-text { font-size: 0.95rem; color: var(--text-secondary); max-width: 420px; margin: 0 auto 0.5rem; line-height: 1.6; }
.thesis-empty-sub { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 1.5rem; }

/* Add coin buttons */
.thesis-add-btn { display: inline-flex; align-items: center; gap: 0.4rem; font-family: inherit; cursor: pointer; border: none; border-radius: 6px; transition: all 0.2s; font-weight: 600; }
.thesis-add-btn-primary { font-size: 0.95rem; padding: 0.7rem 1.5rem; background: linear-gradient(135deg, #0fa898 0%, #115e59 100%); color: white; }
.thesis-add-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(15,168,152,0.3); }
.thesis-add-btn-small { font-size: 0.8rem; padding: 0.35rem 0.8rem; background: rgba(15,168,152,0.1); color: #0fa898; border: 1px solid rgba(15,168,152,0.3); }
.thesis-add-btn-small:hover { background: rgba(15,168,152,0.2); }

/* Summary dashboard */
.thesis-summary-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.75rem; margin-bottom: 1.5rem; }
.thesis-summary-card { background: var(--bg-secondary); border-radius: 8px; padding: 0.9rem 1rem; }
.thesis-summary-label { font-size: 0.72rem; color: var(--text-muted); margin-bottom: 0.25rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.03em; }
.thesis-summary-value { font-size: 1.4rem; font-weight: 700; color: var(--text-primary); }
.thesis-summary-sub { font-size: 0.75rem; color: var(--text-muted); margin-top: 0.15rem; }

/* Config bar */
.thesis-config-bar { display: flex; align-items: center; gap: 0.6rem; padding: 0.6rem 1rem; background: var(--bg-secondary); border-radius: 8px; margin-bottom: 1.25rem; border: 1px solid var(--border-color); font-size: 0.85rem; flex-wrap: wrap; }
.thesis-config-label { color: var(--text-muted); }
.thesis-config-value { font-weight: 600; color: var(--text-primary); }
.thesis-config-link { color: #0fa898; cursor: pointer; font-weight: 500; margin-left: auto; }
.thesis-config-link:hover { text-decoration: underline; }

/* Filter bar */
.thesis-filter-bar { display: flex; gap: 0.5rem; margin-bottom: 1.25rem; flex-wrap: wrap; align-items: center; }
.thesis-filter-pill { font-size: 0.8rem; padding: 0.35rem 0.9rem; border-radius: 20px; cursor: pointer; background: var(--bg-secondary); color: var(--text-muted); border: 1px solid var(--border-color); transition: all 0.2s; }
.thesis-filter-pill:hover { border-color: #0fa898; color: var(--text-primary); }
.thesis-filter-pill.active { background: var(--bg-card); color: var(--text-primary); border-color: #0fa898; font-weight: 600; }
.thesis-filter-search { margin-left: auto; padding: 0.35rem 0.75rem; border-radius: 20px; border: 1px solid var(--border-color); font-size: 0.8rem; background: var(--bg-secondary); color: var(--text-primary); width: 160px; outline: none; }
.thesis-filter-search:focus { border-color: #0fa898; }

/* Coin cards */
.thesis-coin-card { border: 1px solid var(--border-color); border-radius: 10px; margin-bottom: 0.75rem; overflow: hidden; background: var(--bg-secondary); transition: border-color 0.2s; }
.thesis-coin-card:hover { border-color: rgba(15, 168, 152, 0.3); }
.thesis-coin-header { display: flex; align-items: center; gap: 0.75rem; padding: 0.9rem 1rem; cursor: pointer; transition: background 0.2s; }
.thesis-coin-header:hover { background: var(--bg-card); }
.thesis-coin-logo { width: 34px; height: 34px; border-radius: 50%; object-fit: contain; flex-shrink: 0; background: var(--bg-card); }
.thesis-coin-info { flex: 1; min-width: 0; }
.thesis-coin-name { font-size: 0.95rem; font-weight: 600; color: var(--text-primary); }
.thesis-coin-meta { font-size: 0.78rem; color: var(--text-muted); }
.thesis-note-indicator { font-size: 0.75rem; color: var(--text-muted); display: flex; align-items: center; gap: 0.25rem; flex-shrink: 0; margin-right: 0.5rem; }
.thesis-coin-score-area { text-align: center; flex-shrink: 0; min-width: 60px; }
.thesis-coin-score { font-size: 1.15rem; font-weight: 700; }
.thesis-coin-score-label { font-size: 0.68rem; color: var(--text-muted); }
.thesis-coin-expand { font-size: 0.9rem; color: var(--text-muted); flex-shrink: 0; transition: transform 0.2s; }

/* Coin card body */
.thesis-coin-body { border-top: 1px solid var(--border-color); }
.thesis-coin-body-inner { padding: 1rem; }

/* Score chips */
.thesis-scores-row { display: flex; gap: 0.4rem; flex-wrap: wrap; margin-bottom: 0.5rem; }
.thesis-score-chip { font-size: 0.75rem; padding: 0.25rem 0.6rem; border-radius: 12px; display: flex; align-items: center; gap: 0.3rem; }
.thesis-chip-name { opacity: 0.7; }
.thesis-chip-val { font-weight: 600; }
.thesis-chip-default { background: var(--bg-card); border: 1px solid var(--border-color); color: var(--text-muted); }
.thesis-chip-custom { background: rgba(20, 184, 166, 0.12); border: 1px solid rgba(20, 184, 166, 0.3); color: #0f766e; }
[data-theme="dark"] .thesis-chip-custom { background: rgba(20, 184, 166, 0.15); color: #5eead4; border-color: rgba(20, 184, 166, 0.3); }
.thesis-chip-summary { font-size: 0.72rem; color: var(--text-muted); margin-bottom: 0.75rem; }

/* Score sliders section */
.thesis-sliders-section { margin-bottom: 0.75rem; border: 1px solid var(--border-color); border-radius: 8px; overflow: hidden; }
.thesis-sliders-header { display: flex; align-items: center; justify-content: space-between; padding: 0.6rem 0.9rem; cursor: pointer; background: var(--bg-card); font-size: 0.85rem; font-weight: 600; color: var(--text-primary); }
.thesis-sliders-header:hover { background: var(--bg-secondary); }
.thesis-sliders-arrow { font-size: 0.8rem; color: var(--text-muted); }
.thesis-sliders-body { padding: 0.75rem 0.9rem; }
.thesis-slider-row { margin-bottom: 0.6rem; }
.thesis-slider-name { font-size: 0.8rem; color: var(--text-secondary); margin-bottom: 0.2rem; display: block; }
.thesis-slider-default { font-size: 0.72rem; color: var(--text-muted); font-weight: 400; }
.thesis-slider-control { display: flex; align-items: center; gap: 0.5rem; }
.thesis-slider-range { flex: 1; height: 4px; accent-color: #0fa898; }
.thesis-slider-input { width: 52px; text-align: center; padding: 0.25rem; border: 1px solid var(--border-color); border-radius: 4px; font-size: 0.8rem; background: var(--bg-card); color: var(--text-primary); }
.thesis-slider-actions { display: flex; gap: 0.5rem; margin-top: 0.75rem; padding-top: 0.75rem; border-top: 1px solid var(--border-color); }

/* Notes section */
.thesis-note-section { margin-bottom: 0.75rem; }
.thesis-note-label { font-size: 0.8rem; font-weight: 600; color: var(--text-secondary); margin-bottom: 0.4rem; }
.thesis-note-textarea { width: 100%; min-height: 100px; padding: 0.7rem 0.9rem; border: 1px solid var(--border-color); border-radius: 8px; font-size: 0.85rem; font-family: inherit; line-height: 1.6; resize: vertical; background: var(--bg-card); color: var(--text-primary); outline: none; box-sizing: border-box; }
.thesis-note-textarea:focus { border-color: #0fa898; }
.thesis-note-empty-textarea { border-style: dashed; }
.thesis-note-meta { display: flex; justify-content: space-between; margin-top: 0.3rem; font-size: 0.72rem; color: var(--text-muted); }

/* Action buttons */
.thesis-action-row { display: flex; gap: 0.5rem; margin-top: 0.5rem; }
.thesis-action-btn { font-size: 0.8rem; padding: 0.4rem 0.9rem; border-radius: 6px; border: 1px solid var(--border-color); background: var(--bg-card); color: var(--text-secondary); cursor: pointer; transition: all 0.2s; font-family: inherit; }
.thesis-action-btn:hover { border-color: #0fa898; color: var(--text-primary); }
.thesis-action-primary { background: rgba(15, 168, 152, 0.1); border-color: rgba(15, 168, 152, 0.3); color: #0f766e; font-weight: 600; }
[data-theme="dark"] .thesis-action-primary { color: #5eead4; }
.thesis-action-primary:hover { background: rgba(15, 168, 152, 0.2); }
.thesis-action-remove { margin-left: auto; color: var(--text-muted); border-color: transparent; background: transparent; }
.thesis-action-remove:hover { color: #ef4444; border-color: rgba(239,68,68,0.3); background: rgba(239,68,68,0.06); }

/* Glass wall */
.thesis-glass-wall { position: relative; min-height: 300px; }
.thesis-glass-bg { opacity: 0.25; pointer-events: none; }
.thesis-glass-overlay { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; text-align: center; }
.thesis-glass-cta { padding: 2rem; }
.thesis-glass-btn { font-size: 0.95rem; padding: 0.7rem 1.5rem; border-radius: 6px; background: linear-gradient(135deg, #0fa898 0%, #115e59 100%); color: white; border: none; cursor: pointer; font-weight: 600; font-family: inherit; transition: transform 0.2s; }
.thesis-glass-btn:hover { transform: translateY(-2px); }

/* ═══ COIN PICKER MODAL ═══ */

.thesis-picker-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 10000; display: flex; align-items: center; justify-content: center; padding: 1rem; }
.thesis-picker-modal { background: var(--bg-primary); border-radius: 12px; width: 100%; max-width: 480px; max-height: 80vh; display: flex; flex-direction: column; box-shadow: 0 20px 60px rgba(0,0,0,0.3); overflow: hidden; }
.thesis-picker-header { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.25rem; border-bottom: 1px solid var(--border-color); }
.thesis-picker-title { font-size: 1.1rem; font-weight: 600; color: var(--text-primary); margin: 0; }
.thesis-picker-close { background: none; border: none; font-size: 1.5rem; color: var(--text-muted); cursor: pointer; padding: 0; line-height: 1; }
.thesis-picker-close:hover { color: var(--text-primary); }
.thesis-picker-search { margin: 0.75rem 1.25rem; padding: 0.5rem 0.75rem; border: 1px solid var(--border-color); border-radius: 8px; font-size: 0.88rem; background: var(--bg-secondary); color: var(--text-primary); outline: none; font-family: inherit; }
.thesis-picker-search:focus { border-color: #0fa898; }
.thesis-picker-body { flex: 1; overflow-y: auto; padding: 0 0.5rem 0.5rem; }
.thesis-picker-empty { text-align: center; padding: 2rem 1rem; color: var(--text-muted); font-size: 0.9rem; }
.thesis-picker-group { margin-bottom: 0.5rem; }
.thesis-picker-group-label { font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); padding: 0.5rem 0.75rem 0.25rem; }
.thesis-picker-coin { display: flex; align-items: center; gap: 0.6rem; padding: 0.6rem 0.75rem; border-radius: 8px; cursor: pointer; transition: background 0.15s; }
.thesis-picker-coin:hover { background: var(--bg-card); }
.thesis-picker-coin-logo { width: 28px; height: 28px; border-radius: 50%; object-fit: contain; flex-shrink: 0; background: var(--bg-card); }
.thesis-picker-coin-info { flex: 1; min-width: 0; display: flex; align-items: baseline; gap: 0.4rem; }
.thesis-picker-coin-name { font-size: 0.88rem; font-weight: 500; color: var(--text-primary); }
.thesis-picker-coin-symbol { font-size: 0.78rem; color: var(--text-muted); }
.thesis-picker-coin-score { font-size: 0.82rem; color: var(--text-muted); font-weight: 500; flex-shrink: 0; }
.thesis-picker-coin-add { font-size: 0.78rem; font-weight: 600; color: #0fa898; flex-shrink: 0; padding: 0.2rem 0.5rem; border-radius: 4px; transition: background 0.15s; }
.thesis-picker-coin:hover .thesis-picker-coin-add { background: rgba(15,168,152,0.1); }
.thesis-picker-footer { padding: 0.75rem 1.25rem; border-top: 1px solid var(--border-color); text-align: center; }

/* Responsive */
@media (max-width: 768px) {
    .thesis-summary-grid { grid-template-columns: repeat(2, 1fr); }
    .thesis-config-bar { flex-direction: column; align-items: flex-start; }
    .thesis-config-link { margin-left: 0; }
    .thesis-filter-search { margin-left: 0; width: 100%; }
    .thesis-filter-bar { gap: 0.4rem; }
    .thesis-add-btn-small { width: 100%; justify-content: center; }
    .thesis-coin-header { flex-wrap: wrap; }
    .thesis-picker-modal { max-width: 100%; max-height: 90vh; }
}
@media (max-width: 480px) {
    .thesis-summary-grid { grid-template-columns: 1fr 1fr; }
    .thesis-action-row { flex-wrap: wrap; }
    .thesis-action-remove { margin-left: 0; }
}
