/**
 * now.css - Consumer View Styles
 * Phase: RWL-CONSUMER-VIEW-01
 *
 * Design: Simple, scannable, "1 minute to understand"
 * - Large numbers
 * - Minimal decoration
 * - Clear hierarchy
 */

/* =============================================================================
   LAYOUT
   ============================================================================= */

.now-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 24px 16px;
}

.now-header {
  text-align: center;
  margin-bottom: 32px;
  padding-bottom: 16px;
  border-bottom: 2px solid #1a1a1a;
}

.now-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 4px 0;
  letter-spacing: -0.02em;
}

.now-subtitle {
  font-size: 0.875rem;
  color: #666;
  margin: 0;
}

.now-timestamp {
  font-size: 0.75rem;
  color: #999;
  font-family: monospace;
  margin-top: 8px;
}

.now-meta {
  font-size: 0.75rem;
  color: #999;
  font-family: monospace;
  margin-top: 8px;
}

/* =============================================================================
   BLOCKS
   ============================================================================= */

.now-block {
  margin-bottom: 24px;
  padding: 20px;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
}

.now-block-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.now-block-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.now-block-icon {
  font-size: 1rem;
}

.now-block-badge {
  font-size: 0.75rem;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: 10px;
  background: #f0f0f0;
  color: #666;
}

.now-block-badge.highlight {
  background: #c30d23;
  color: #fff;
}

/* =============================================================================
   TODAY (24H) BLOCK
   ============================================================================= */

.today-stats {
  display: flex;
  justify-content: space-around;
  gap: 16px;
}

.today-stat {
  text-align: center;
  flex: 1;
}

.today-stat-icon {
  font-size: 1.5rem;
  margin-bottom: 4px;
}

.today-stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: #1a1a1a;
  font-family: monospace;
  line-height: 1;
}

.today-stat-value.zero {
  color: #ccc;
}

.today-stat-label {
  font-size: 0.75rem;
  color: #999;
  margin-top: 4px;
}

.today-watched {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid #f0f0f0;
  text-align: center;
}

.today-watched-text {
  font-size: 0.875rem;
  color: #666;
}

.today-watched-count {
  font-weight: 600;
  color: #c30d23;
}

/* =============================================================================
   LAST 7 DAYS TREND BLOCK
   ============================================================================= */

.trend-7d-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin-bottom: 12px;
}

.trend-7d-cell {
  text-align: center;
  padding: 8px 4px;
  background: #f5f5f5;
  border-radius: 6px;
}

.trend-7d-cell.has-changes {
  background: #e3f2fd;
}

.trend-7d-day {
  font-size: 0.625rem;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.trend-7d-value {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1a1a1a;
  font-family: monospace;
  margin-top: 2px;
}

.trend-7d-cell.has-changes .trend-7d-value {
  color: #1a73e8;
}

.trend-7d-summary {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
}

.trend-7d-label {
  color: #666;
}

.trend-7d-total {
  font-weight: 600;
  color: #1a1a1a;
  font-family: monospace;
}

/* =============================================================================
   30D HIGHLIGHTS BLOCK
   ============================================================================= */

.highlights-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.highlight-item {
  display: flex;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #f0f0f0;
}

.highlight-item:last-child {
  border-bottom: none;
}

.highlight-rank {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f0f0f0;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  color: #666;
  margin-right: 12px;
}

.highlight-rank.top {
  background: #1a1a1a;
  color: #fff;
}

.highlight-info {
  flex: 1;
  min-width: 0;
}

.highlight-name {
  font-size: 0.875rem;
  font-weight: 500;
  color: #1a1a1a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.highlight-brand {
  font-size: 0.75rem;
  color: #999;
}

.highlight-count {
  font-family: monospace;
  font-size: 0.875rem;
  font-weight: 600;
  color: #1a1a1a;
  background: #f0f0f0;
  padding: 4px 10px;
  border-radius: 4px;
}

.highlights-empty {
  text-align: center;
  padding: 20px;
  color: #999;
  font-size: 0.875rem;
}

/* =============================================================================
   OFFICIAL UPDATES BLOCK
   ============================================================================= */

.updates-summary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
}

.updates-count {
  text-align: center;
}

.updates-count-value {
  font-size: 2.5rem;
  font-weight: 700;
  color: #1a1a1a;
  font-family: monospace;
  line-height: 1;
}

.updates-count-value.zero {
  color: #ccc;
}

.updates-count-label {
  font-size: 0.75rem;
  color: #999;
  margin-top: 4px;
}

.updates-watched {
  text-align: center;
  padding-left: 24px;
  border-left: 1px solid #e0e0e0;
}

.updates-watched-value {
  font-size: 1.5rem;
  font-weight: 600;
  color: #c30d23;
  font-family: monospace;
}

.updates-watched-label {
  font-size: 0.75rem;
  color: #999;
}

/* =============================================================================
   QUICK LINKS BLOCK
   ============================================================================= */

.quick-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.quick-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: #f8f8f8;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  text-decoration: none;
  color: #1a1a1a;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.15s ease;
}

.quick-link:hover {
  background: #1a1a1a;
  border-color: #1a1a1a;
  color: #fff;
}

.quick-link-icon {
  font-size: 1.1rem;
}

/* =============================================================================
   EMPTY STATE
   ============================================================================= */

.now-empty {
  text-align: center;
  padding: 24px;
  color: #999;
}

.now-empty-icon {
  font-size: 2rem;
  margin-bottom: 8px;
  opacity: 0.5;
}

.now-empty-text {
  font-size: 0.875rem;
}

/* =============================================================================
   RESPONSIVE
   ============================================================================= */

@media (max-width: 480px) {
  .now-container {
    padding: 16px 12px;
  }

  .now-block {
    padding: 16px;
  }

  .today-stats {
    flex-wrap: wrap;
  }

  .today-stat {
    min-width: 80px;
  }

  .today-stat-value {
    font-size: 1.5rem;
  }

  .quick-links {
    grid-template-columns: 1fr;
  }

  .updates-summary {
    flex-direction: column;
    gap: 16px;
  }

  .updates-watched {
    padding-left: 0;
    padding-top: 16px;
    border-left: none;
    border-top: 1px solid #e0e0e0;
  }

  .os-delta-stats {
    flex-wrap: wrap;
  }

  .os-delta-stat {
    min-width: 80px;
  }
}

/* =============================================================================
   CASSETTE OS DELTA BLOCK (Sprint M)
   ============================================================================= */

.os-delta-stats {
  display: flex;
  justify-content: space-around;
  gap: 16px;
  margin-bottom: 16px;
}

.os-delta-stat {
  text-align: center;
  flex: 1;
}

.os-delta-stat-icon {
  font-size: 1.25rem;
  margin-bottom: 4px;
}

.os-delta-stat-value {
  font-size: 1.75rem;
  font-weight: 700;
  color: #1a1a1a;
  font-family: monospace;
  line-height: 1;
}

.os-delta-stat-value.zero {
  color: #ccc;
}

.os-delta-stat-value.highlight {
  color: #1a73e8;
}

.os-delta-stat-label {
  font-size: 0.75rem;
  color: #999;
  margin-top: 4px;
}

.os-reasons {
  padding-top: 12px;
  border-top: 1px solid #f0f0f0;
}

.os-reasons-label {
  font-size: 0.75rem;
  color: #666;
  margin-bottom: 8px;
}

.os-reasons-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.os-reason-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  background: #f5f5f5;
  border-radius: 12px;
  font-size: 0.75rem;
}

.os-reason-code {
  color: #666;
  font-family: monospace;
}

.os-reason-count {
  font-weight: 600;
  color: #c30d23;
}

.os-no-activity {
  text-align: center;
  padding: 12px;
  color: #999;
  font-size: 0.875rem;
  font-style: italic;
}

/* =============================================================================
   TODAY LINE (Task O-1)
   ============================================================================= */

.today-line {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: #1a1a1a;
  border-radius: 8px;
  margin-bottom: 24px;
  font-family: monospace;
  font-size: 0.8125rem;
  color: #f0f0f0;
}

.today-line-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.today-line-label {
  color: #999;
}

.today-line-value {
  font-weight: 600;
  color: #fff;
}

.today-line-value.zero {
  color: #666;
}

.today-line-value.highlight {
  color: #4ade80;
}

.today-line-unit {
  color: #666;
}

.today-line-sep {
  color: #444;
}

/* =============================================================================
   ZERO-DAY PROOF (Task O-2)
   ============================================================================= */

.os-zero-day-proof {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: #f5f5f5;
  border-radius: 6px;
  margin-top: 12px;
  font-family: monospace;
  font-size: 0.75rem;
  color: #666;
}

.os-proof-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.os-proof-label {
  color: #999;
}

.os-proof-value {
  font-weight: 600;
  color: #333;
}

.os-proof-value.warn {
  color: #f59e0b;
}

.os-proof-value.error {
  color: #ef4444;
}

.os-proof-sep {
  color: #ccc;
}

/* =============================================================================
   FEED 7D SUMMARY (Sprint R3)
   ============================================================================= */

.feed-7d-summary {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: #f8f9fa;
  border-radius: 8px;
  font-family: 'SF Mono', 'Monaco', 'Menlo', monospace;
  font-size: 0.75rem;
  margin-bottom: 20px;
  border: 1px solid #e5e7eb;
}

.feed-7d-label {
  color: #666;
  font-weight: 500;
}

.feed-7d-value {
  color: #333;
  font-weight: 600;
}

@media (max-width: 480px) {
  .feed-7d-summary {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    font-size: 0.6875rem;
  }

  .feed-7d-value {
    word-break: break-word;
  }
}

/* =============================================================================
   PROBE 7D BREAKDOWN (Sprint R4)
   ============================================================================= */

.probe-7d-breakdown {
  padding: 12px 16px;
  background: #fef3c7;
  border-radius: 8px;
  font-family: 'SF Mono', 'Monaco', 'Menlo', monospace;
  font-size: 0.75rem;
  margin-bottom: 20px;
  border: 1px solid #fcd34d;
}

.probe-7d-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 2px 0;
}

.probe-7d-label {
  color: #92400e;
  font-weight: 500;
  min-width: 80px;
}

.probe-7d-value {
  color: #78350f;
  font-weight: 600;
}

@media (max-width: 480px) {
  .probe-7d-breakdown {
    font-size: 0.6875rem;
  }

  .probe-7d-row {
    flex-direction: column;
    gap: 2px;
  }

  .probe-7d-value {
    word-break: break-word;
  }
}

@media (max-width: 480px) {
  .today-line {
    font-size: 0.6875rem;
    gap: 4px;
    padding: 10px 12px;
  }

  .today-line-sep {
    display: none;
  }

  .today-line-item {
    padding: 2px 6px;
    background: #333;
    border-radius: 4px;
  }

  .os-zero-day-proof {
    font-size: 0.625rem;
    gap: 4px;
  }

  .os-proof-sep {
    display: none;
  }

  .os-proof-item {
    padding: 2px 6px;
    background: #e0e0e0;
    border-radius: 4px;
  }
}
