/* Global fonts and High Contrast Light Theme */
:root {
  --bg: #FFFFFF;
  --text: #111827;
  --text-secondary: #374151;
  --text-muted: #6B7280;
  --accent: #2563EB;
  --accent-hover: #1D4ED8;
  --accent-light: #DBEAFE;
  --border: #E5E7EB;
  --success: #10B981;
  --warning: #F59E0B;
}

html, body {
  font-family: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.font-inter { 
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  font-weight: 600;
}

/* Reusable buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  border-radius: 0.5rem;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
  transition: all 0.2s ease;
  text-decoration: none;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background: var(--accent-hover);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.35);
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-primary:focus {
  outline: 3px solid rgba(37, 99, 235, 0.4);
  outline-offset: 2px;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  border-radius: 0.5rem;
  background: #FFFFFF;
  color: var(--accent);
  font-weight: 600;
  font-size: 1rem;
  border: 2px solid var(--accent);
  transition: all 0.2s ease;
  text-decoration: none;
  cursor: pointer;
}

.btn-secondary:hover {
  background: var(--accent);
  color: #fff;
}

.btn-secondary:focus {
  outline: 3px solid rgba(37, 99, 235, 0.4);
  outline-offset: 2px;
}

/* Navigation link */
.nav-link {
  color: var(--text);
  transition: color 0.15s ease;
  font-weight: 500;
  font-size: 0.95rem;
}

.nav-link:hover {
  color: var(--accent);
}

/* Deal cards */
.deal-card {
  border-radius: 1rem;
  border: 2px solid var(--border);
  background: #fff;
  padding: 0;
  display: flex;
  flex-direction: column;
  transition: all 0.2s ease;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.deal-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
  border-color: var(--accent);
}

.deal-title {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  line-height: 1.4;
  color: var(--text);
  padding: 0 1.25rem;
}

.deal-desc {
  color: var(--text-secondary);
  margin-top: 0.5rem;
  font-size: 0.95rem;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  padding: 0 1.25rem;
  line-height: 1.6;
}

.deal-actions {
  margin-top: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0 1.25rem 1.25rem;
}

.get-deal-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
}

.get-deal-btn:hover {
  background: var(--accent-hover);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
  transform: translateY(-1px);
}

.get-deal-btn:active {
  transform: translateY(0);
}

.get-deal-btn:focus {
  outline: 3px solid rgba(37, 99, 235, 0.4);
  outline-offset: 2px;
}

.reveal-code-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  background: #FFFFFF;
  color: var(--accent);
  font-weight: 600;
  border: 2px solid var(--border);
  transition: all 0.2s ease;
  cursor: pointer;
  font-size: 0.95rem;
}

.reveal-code-btn:hover {
  background: var(--accent-light);
  border-color: var(--accent);
}

.reveal-code-btn:focus {
  outline: 3px solid rgba(37, 99, 235, 0.4);
  outline-offset: 2px;
}

/* Table styles */
.table-th {
  text-align: left;
  padding: 0.875rem 1rem;
  background: var(--accent-light);
  border-radius: 0.5rem;
  font-weight: 700;
  color: var(--text);
  font-size: 0.95rem;
}

.table-tr {
  color: var(--text);
}

.table-td {
  padding: 0.875rem 1rem;
  background: #fff;
  border-radius: 0.5rem;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* Utilities */
img {
  color: transparent;
}

/* Accessibility focus */
:focus-visible {
  outline-color: var(--accent);
}

/* Typography improvements */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}

p {
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* High contrast text */
.text-primary {
  color: var(--text);
}

.text-secondary {
  color: var(--text-secondary);
}

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