/* Polymarket Reporter Website Styles - Apple Design System */
:root {
  --accent: #0071e3;
  --accent-hover: #0077ed;
  --bg: #ffffff;
  --surface: #f5f5f7;
  --text: #1d1d1f;
  --text-secondary: #86868b;
  --border: #d2d2d7;
  --success: #34c759;
  --danger: #ff3b30;
  --warning: #ff9500;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Helvetica Neue', Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.47059;
  letter-spacing: -0.022em;
}

.container {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 22px;
}

/* Header */
header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
}

.logo span {
  color: var(--text);
}

nav a {
  color: var(--text-muted);
  text-decoration: none;
  margin-left: 20px;
  font-size: 0.95rem;
  transition: color 0.2s;
}

nav a:hover {
  color: var(--primary);
}

nav a.active {
  color: var(--primary);
  font-weight: 500;
}

/* Main Content */
main {
  padding: 40px 0;
  min-height: calc(100vh - 200px);
}

.page-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.page-description {
  color: var(--text-muted);
  margin-bottom: 30px;
}

/* Report List */
.report-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.report-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s;
  display: block;
}

.report-card:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.1);
  transform: translateY(-2px);
}

.report-card .type {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 10px;
}

.report-card .type.daily {
  background: #e0e7ff;
  color: var(--primary-dark);
}

.report-card .type.weekly {
  background: #dcfce7;
  color: #166534;
}

.report-card .title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.report-card .meta {
  color: var(--text-muted);
  font-size: 0.875rem;
}

.report-card .tags {
  margin-top: 12px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.report-card .tag {
  font-size: 0.75rem;
  padding: 2px 8px;
  background: var(--bg);
  border-radius: 4px;
  color: var(--text-muted);
}

/* Report Detail */
.report-detail {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px;
}

.report-header {
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.report-header .type {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 12px;
}

.report-header .type.daily {
  background: #e0e7ff;
  color: var(--primary-dark);
}

.report-header .type.weekly {
  background: #dcfce7;
  color: #166534;
}

.report-header h1 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.report-header .date {
  color: var(--text-muted);
}

.report-content h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 24px 0 12px;
  color: var(--primary);
}

.report-content h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 20px 0 8px;
}

.report-content p {
  margin-bottom: 12px;
}

.report-content ul, .report-content ol {
  margin: 12px 0;
  padding-left: 24px;
}

.report-content li {
  margin-bottom: 8px;
}

.report-content a {
  color: var(--primary);
  text-decoration: none;
}

.report-content a:hover {
  text-decoration: underline;
}

.report-content .highlight {
  background: #fef3c7;
  padding: 16px;
  border-radius: 8px;
  margin: 16px 0;
  border-left: 4px solid var(--warning);
}

.report-content .warning {
  background: #fef2f2;
  padding: 16px;
  border-radius: 8px;
  margin: 16px 0;
  border-left: 4px solid var(--danger);
}

.report-content .tip {
  background: #f0fdf4;
  padding: 16px;
  border-radius: 8px;
  margin: 16px 0;
  border-left: 4px solid var(--accent);
}

.report-content pre {
  background: #1e293b;
  color: #e2e8f0;
  padding: 16px;
  border-radius: 8px;
  overflow-x: auto;
  font-size: 0.875rem;
}

.report-content code {
  background: var(--bg);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.875rem;
}

.back-link {
  display: inline-flex;
  align-items: center;
  color: var(--text-muted);
  text-decoration: none;
  margin-bottom: 20px;
  font-size: 0.9rem;
}

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

.back-link svg {
  margin-right: 6px;
}

/* Footer */
footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 30px 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.875rem;
}

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

footer a:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 640px) {
  .report-detail {
    padding: 24px;
  }

  .page-title {
    font-size: 1.5rem;
  }

  .report-header h1 {
    font-size: 1.25rem;
  }
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

main {
  animation: fadeIn 0.3s ease-out;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}

.empty-state svg {
  width: 64px;
  height: 64px;
  margin-bottom: 16px;
  opacity: 0.5;
}

.empty-state h3 {
  font-size: 1.25rem;
  margin-bottom: 8px;
  color: var(--text);
}

/* Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
  margin-bottom: 30px;
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
}

.stat-card .value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
}

.stat-card .label {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 4px;
}