← back to SDCC Stories
public/css/styles.css
387 lines
/* SDCC Story Engine — Light Theme, Large Text for Readability */
:root {
--bg: #ffffff;
--surface: #f8f9fa;
--surface-el: #f0f1f3;
--primary: #2563eb;
--primary-hover: #1d4ed8;
--secondary: #b45309;
--lane-a: #dc2626;
--lane-b: #2563eb;
--lane-c: #16a34a;
--success: #16a34a;
--warning: #d97706;
--error: #dc2626;
--text: #111111;
--text-secondary: #333333;
--text-muted: #555555;
--border: #d1d5db;
--radius: 8px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
background: var(--bg);
color: var(--text);
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
font-size: 18px;
line-height: 1.5;
min-height: 100vh;
}
header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 20px 28px;
background: var(--surface);
border-bottom: 2px solid var(--border);
}
header h1 { font-size: 26px; color: var(--text); }
.subtitle { color: var(--text-muted); font-size: 16px; margin-left: 10px; }
.header-right { display: flex; align-items: center; gap: 14px; }
/* Global Search — header-center */
.header-center { flex: 1; max-width: 520px; padding: 0 24px; position: relative; }
.global-search-wrap { position: relative; width: 100%; }
.global-search-input {
width: 100%;
padding: 10px 14px 10px 38px;
font-size: 15px;
border: 1px solid var(--border);
border-radius: var(--radius);
background: var(--bg) url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="%23555555" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="11" cy="11" r="8"></circle><line x1="21" y1="21" x2="16.65" y2="16.65"></line></svg>') no-repeat 12px center;
color: var(--text);
font-family: inherit;
transition: border-color 150ms ease, box-shadow 150ms ease;
}
.global-search-input:focus {
outline: none;
border-color: var(--primary);
box-shadow: 0 0 0 3px rgba(37,99,235,0.18);
}
.global-search-results {
position: absolute;
top: calc(100% + 6px);
left: 0;
right: 0;
max-height: 70vh;
overflow-y: auto;
background: var(--bg);
border: 1px solid var(--border);
border-radius: var(--radius);
box-shadow: 0 12px 28px rgba(0,0,0,0.12);
z-index: 1000;
}
.gs-section { padding: 6px 0; border-top: 1px solid var(--border); }
.gs-section:first-child { border-top: none; }
.gs-section-label {
padding: 8px 16px 4px;
font-size: 11px;
text-transform: uppercase;
letter-spacing: 0.06em;
color: var(--text-muted);
font-weight: 700;
}
.gs-item {
display: flex;
align-items: flex-start;
gap: 12px;
padding: 8px 16px;
cursor: pointer;
border-left: 3px solid transparent;
text-decoration: none;
color: var(--text);
}
.gs-item:hover, .gs-item.gs-selected {
background: var(--surface-el);
border-left-color: var(--primary);
}
.gs-item-icon {
flex-shrink: 0; width: 28px; height: 28px; border-radius: 6px;
display: flex; align-items: center; justify-content: center;
font-size: 14px; font-weight: 700;
}
.gs-icon-candidate { background: rgba(37,99,235,0.12); color: var(--primary); }
.gs-icon-story { background: rgba(22,163,74,0.12); color: var(--success); }
.gs-icon-setting { background: rgba(180,83,9,0.12); color: var(--secondary); }
.gs-item-body { flex: 1; min-width: 0; }
.gs-item-title { font-size: 15px; font-weight: 600; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gs-item-subtitle { font-size: 12px; color: var(--text-muted); }
.gs-item-meta { font-size: 12px; color: var(--text-secondary); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gs-empty { padding: 18px 16px; text-align: center; color: var(--text-muted); font-size: 14px; }
.gs-footer {
padding: 8px 16px; border-top: 1px solid var(--border);
font-size: 11px; color: var(--text-muted);
display: flex; justify-content: space-between;
}
.gs-kbd {
display: inline-block; padding: 1px 6px; font-size: 10px;
background: var(--surface-el); border: 1px solid var(--border);
border-radius: 3px; font-family: inherit;
}
/* Stats Bar */
.stats-bar {
display: flex;
gap: 4px;
padding: 14px 28px;
background: var(--surface);
border-bottom: 2px solid var(--border);
overflow-x: auto;
}
.stat-card {
background: var(--surface-el);
padding: 12px 18px;
border-radius: var(--radius);
text-align: center;
min-width: 110px;
flex: 1;
}
.stat-card .stat-value { font-size: 26px; font-weight: 800; color: var(--secondary); }
.stat-card .stat-label { font-size: 14px; color: var(--text-muted); text-transform: uppercase; font-weight: 600; }
/* Tabs */
.tabs {
display: flex;
gap: 4px;
padding: 10px 28px;
background: var(--surface);
border-bottom: 3px solid var(--border);
}
.tab {
padding: 10px 20px;
background: none;
border: none;
color: var(--text-muted);
cursor: pointer;
font-size: 17px;
font-weight: 700;
border-bottom: 3px solid transparent;
transition: all 0.15s;
}
.tab:hover { color: var(--text); }
.tab.active { color: var(--primary); border-bottom-color: var(--primary); }
.tab-content { display: none; padding: 24px 28px; }
.tab-content.active { display: block; }
/* Buttons */
.btn {
padding: 10px 20px;
border: none;
border-radius: var(--radius);
cursor: pointer;
font-size: 16px;
font-weight: 700;
transition: all 0.15s;
color: white;
background: var(--primary);
}
.btn:hover { background: var(--primary-hover); }
.btn-sm { padding: 8px 14px; font-size: 15px; }
.btn-action { background: var(--lane-a); }
.btn-action:hover { background: #b91c1c; }
.btn-policy { background: var(--lane-b); }
.btn-resource { background: var(--lane-c); }
.btn-resource:hover { background: #15803d; }
.btn-ghost { background: transparent; border: 2px solid var(--border); color: var(--text-secondary); }
.btn-ghost:hover { background: var(--surface-el); }
/* Badge */
.badge {
display: inline-block;
padding: 4px 12px;
border-radius: 12px;
font-size: 14px;
font-weight: 700;
}
.badge-a { background: var(--lane-a); color: white; }
.badge-b { background: var(--lane-b); color: white; }
.badge-c { background: var(--lane-c); color: white; }
.badge-d { background: #888; color: white; }
.badge-draft { background: var(--surface-el); color: var(--text-secondary); border: 1px solid var(--border); }
.badge-scheduled { background: var(--warning); color: #000; }
.badge-posted { background: var(--success); color: white; }
/* Controls */
.controls {
display: flex;
gap: 14px;
align-items: center;
margin-bottom: 20px;
flex-wrap: wrap;
}
.filter-group { display: flex; align-items: center; gap: 8px; }
.filter-group label { color: var(--text-muted); font-size: 16px; font-weight: 600; }
select, input[type="text"] {
background: white;
border: 2px solid var(--border);
color: var(--text);
padding: 10px 14px;
border-radius: var(--radius);
font-size: 16px;
}
select:focus, input:focus { outline: none; border-color: var(--primary); }
.hint { color: var(--text-muted); font-size: 15px; }
/* Candidate List */
.candidate-count { color: var(--text-muted); font-size: 16px; margin-bottom: 10px; font-weight: 600; }
.candidate-card {
background: var(--surface);
border: 2px solid var(--border);
border-radius: var(--radius);
padding: 16px;
margin-bottom: 10px;
cursor: pointer;
transition: all 0.15s;
display: grid;
grid-template-columns: 48px 150px 150px 1fr 120px 100px;
align-items: center;
gap: 14px;
}
.candidate-card:hover { border-color: var(--primary); background: var(--surface-el); }
.score-circle {
width: 44px; height: 44px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
font-weight: 800;
font-size: 17px;
color: white;
}
.candidate-name { font-weight: 700; font-size: 17px; }
.candidate-amount { color: var(--secondary); font-weight: 700; font-size: 17px; }
.candidate-snippet { color: var(--text-secondary); font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.candidate-meta { font-size: 14px; color: var(--text-muted); font-weight: 500; }
/* Pagination */
.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 20px; }
.pagination button { background: var(--surface-el); border: 2px solid var(--border); color: var(--text-secondary); padding: 8px 16px; border-radius: 6px; cursor: pointer; font-size: 16px; font-weight: 600; }
.pagination button.active { background: var(--primary); color: white; border-color: var(--primary); }
/* Story Cards */
.story-card {
background: var(--surface);
border: 2px solid var(--border);
border-radius: var(--radius);
padding: 20px;
margin-bottom: 14px;
}
.story-card .story-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.story-card .story-quote { font-style: italic; color: var(--text-secondary); margin: 10px 0; padding: 12px; border-left: 4px solid var(--lane-a); font-size: 17px; }
.story-card .story-actions { display: flex; gap: 10px; margin-top: 14px; }
.story-card .story-image { max-width: 250px; border-radius: var(--radius); margin-top: 10px; }
/* Calendar */
.calendar-grid {
display: grid;
grid-template-columns: repeat(7, 1fr);
gap: 6px;
}
.calendar-day {
background: var(--surface);
border: 2px solid var(--border);
border-radius: var(--radius);
padding: 10px;
min-height: 110px;
}
.calendar-day .day-header { font-size: 14px; color: var(--text-muted); margin-bottom: 8px; font-weight: 700; }
.calendar-slot {
background: var(--surface-el);
border-radius: 6px;
padding: 6px 8px;
margin-bottom: 6px;
font-size: 14px;
font-weight: 500;
}
.calendar-slot.instagram { border-left: 4px solid var(--lane-a); }
.calendar-slot.x { border-left: 4px solid var(--lane-b); }
/* Heat Map */
.heatmap-container { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.heatmap-card {
background: var(--surface);
border: 2px solid var(--border);
border-radius: var(--radius);
padding: 16px;
text-align: center;
}
.heatmap-card .district { font-weight: 800; color: var(--secondary); font-size: 18px; }
.heatmap-card .rep-name { font-size: 16px; }
.heatmap-card .count { font-size: 28px; font-weight: 800; }
.heatmap-card .bar { height: 8px; border-radius: 4px; margin-top: 10px; }
/* Ideas */
.ideas-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.idea-card {
background: var(--surface);
border: 2px solid var(--border);
border-radius: var(--radius);
padding: 20px;
cursor: pointer;
transition: all 0.15s;
}
.idea-card:hover { border-color: var(--primary); }
.idea-card .idea-title { font-weight: 800; margin-bottom: 8px; font-size: 18px; }
.idea-card .idea-desc { color: var(--text-secondary); font-size: 16px; }
.idea-card .idea-meta { display: flex; gap: 8px; margin-top: 10px; }
/* Modal */
.modal {
display: none;
position: fixed;
top: 0; left: 0;
width: 100%; height: 100%;
background: rgba(0,0,0,0.5);
z-index: 1000;
overflow-y: auto;
}
.modal.open { display: flex; justify-content: center; padding: 40px 20px; }
.modal-content {
background: white;
border: 2px solid var(--border);
border-radius: 12px;
padding: 28px;
max-width: 850px;
width: 100%;
position: relative;
max-height: 90vh;
overflow-y: auto;
}
.modal-close {
position: absolute;
top: 14px; right: 18px;
background: none;
border: none;
color: var(--text-muted);
font-size: 30px;
cursor: pointer;
}
.modal-close:hover { color: var(--text); }
.detail-section { margin-bottom: 24px; }
.detail-section h3 { color: var(--secondary); font-size: 18px; margin-bottom: 10px; border-bottom: 2px solid var(--border); padding-bottom: 6px; font-weight: 800; }
.detail-row { display: flex; padding: 6px 0; font-size: 16px; }
.detail-label { color: var(--text-muted); width: 180px; flex-shrink: 0; font-weight: 600; }
.detail-value { color: var(--text); flex: 1; }
/* Settings */
.settings-form { max-width: 550px; }
.setting-row { margin-bottom: 16px; }
.setting-row label { display: block; color: var(--text-muted); font-size: 15px; margin-bottom: 6px; font-weight: 600; }
.setting-row input { width: 100%; }
@media (max-width: 768px) {
.candidate-card { grid-template-columns: 44px 1fr; }
.calendar-grid { grid-template-columns: repeat(2, 1fr); }
.stats-bar { flex-wrap: wrap; }
}