/* GH & UBC Hospital Foundation – VGH Millionaire Lottery */
/* Elegant Design with Violet Primary, Gold Accent */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&display=swap');

/* Design Variables */
:root {
  --violet-deep: #7c3aed;
  --violet-bright: #8b5cf6;
  --violet-soft: #a78bfa;
  --gold-primary: #f59e0b;
  --gold-light: #fbbf24;
  --slate-dark: #1e293b;
  --slate-medium: #334155;
  --surface-cream: #faf8f5;
  --surface-light: #f5f3ff;
  --surface-pure: #ffffff;
  --ink-primary: #0f172a;
  --ink-secondary: #475569;
  --ink-muted: #94a3b8;
  --stroke-light: #e2e8f0;
  --stroke-medium: #cbd5e1;
  --elevation-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --elevation-md: 0 4px 12px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.04);
  --elevation-lg: 0 16px 32px rgba(0,0,0,0.12), 0 4px 8px rgba(0,0,0,0.06);
  --curve-sm: 8px;
  --curve-md: 14px;
  --curve-lg: 20px;
  --motion: cubic-bezier(0.22, 1, 0.36, 1);
  --gap-xs: 0.5rem;
  --gap-sm: 1rem;
  --gap-md: 1.75rem;
  --gap-lg: 2.75rem;
  --gap-xl: 4rem;
  --gap-2xl: 6rem;
}

/* Reset & Base */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Outfit', system-ui, -apple-system, sans-serif;
  line-height: 1.7;
  color: var(--ink-primary);
  background: var(--surface-cream);
  background-image: 
    radial-gradient(ellipse at 20% 0%, rgba(124, 58, 237, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 100%, rgba(245, 158, 11, 0.04) 0%, transparent 50%);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Typography System */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: var(--gap-md);
  color: var(--slate-dark);
  letter-spacing: -0.03em;
}

h1 {
  font-size: clamp(2.75rem, 6vw, 4.25rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
  font-size: clamp(1.375rem, 2.5vw, 1.75rem);
}

p {
  margin-bottom: var(--gap-md);
  color: var(--ink-secondary);
  font-size: 1.0625rem;
}

a {
  color: var(--violet-deep);
  text-decoration: none;
  transition: color 0.2s var(--motion);
}

a:hover {
  color: var(--violet-bright);
}

/* Layout Components */
.page-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--gap-lg);
}

.block {
  padding: var(--gap-2xl) 0;
}

.block--alt {
  background: var(--surface-pure);
}

.block--dark {
  background: var(--slate-dark);
  color: white;
}

/* Top Navigation */
.top-bar {
  background: var(--surface-pure);
  border-bottom: 1px solid var(--stroke-light);
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(16px);
  background: rgba(255, 255, 255, 0.95);
}

.top-bar .page-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.brand-logo {
  display: flex;
  align-items: center;
}

.brand-logo img {
  height: 48px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--gap-lg);
}

.nav-links ul {
  display: flex;
  gap: var(--gap-md);
  list-style: none;
}

.nav-links a {
  color: var(--ink-secondary);
  font-weight: 500;
  font-size: 0.9375rem;
  padding: var(--gap-xs) var(--gap-sm);
  border-radius: var(--curve-sm);
  transition: all 0.2s var(--motion);
}

.nav-links a:hover {
  color: var(--violet-deep);
  background: var(--surface-light);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 10px;
  background: none;
  border: none;
  cursor: pointer;
}

.menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--slate-dark);
  border-radius: 2px;
  transition: all 0.3s var(--motion);
}

/* Hero Banner */
.hero-area {
  background: var(--surface-pure);
  padding: var(--gap-2xl) 0;
}

.hero-area .page-wrap {
  display: flex;
  align-items: center;
  gap: var(--gap-2xl);
  max-width: 1280px;
}

.hero-text {
  flex: 1;
  max-width: 600px;
}

.hero-text h1 {
  background: linear-gradient(135deg, var(--violet-deep) 0%, var(--violet-bright) 50%, var(--gold-primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--gap-lg);
}

.hero-text .lead {
  font-size: 1.25rem;
  line-height: 1.8;
  color: var(--ink-secondary);
  margin-bottom: var(--gap-xl);
}

.hero-visual {
  flex: 1;
  max-width: 550px;
}

.hero-visual img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  border-radius: var(--curve-lg);
  box-shadow: var(--elevation-lg);
}

/* Hero Variants */
.hero-area--compact {
  padding: var(--gap-xl) 0;
}

.hero-area--compact .hero-visual img {
  height: 380px;
}

.hero-area--centered {
  text-align: center;
}

.hero-area--centered .page-wrap {
  flex-direction: column;
}

.hero-area--centered .hero-text {
  max-width: 800px;
}

.hero-area--centered .hero-visual {
  max-width: 400px;
}

.hero-area--centered .hero-visual img {
  height: 280px;
}

/* Action Buttons */
.action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--gap-xs);
  padding: var(--gap-sm) var(--gap-lg);
  background: linear-gradient(135deg, var(--violet-deep) 0%, var(--violet-bright) 100%);
  color: white;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  border-radius: var(--curve-md);
  cursor: pointer;
  transition: all 0.25s var(--motion);
  box-shadow: 0 4px 16px rgba(124, 58, 237, 0.3);
}

.action-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(124, 58, 237, 0.4);
  color: white;
}

.action-btn--gold {
  background: linear-gradient(135deg, var(--gold-primary) 0%, var(--gold-light) 100%);
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.3);
  color: var(--slate-dark);
}

.action-btn--gold:hover {
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.4);
  color: var(--slate-dark);
}

.action-btn--outline {
  background: transparent;
  border: 2px solid var(--violet-deep);
  color: var(--violet-deep);
  box-shadow: none;
}

.action-btn--outline:hover {
  background: var(--violet-deep);
  color: white;
}

/* Prize Cards */
.prize-showcase {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: var(--gap-lg);
}

.prize-item {
  background: var(--surface-pure);
  border-radius: var(--curve-lg);
  overflow: hidden;
  box-shadow: var(--elevation-sm);
  border: 1px solid var(--stroke-light);
  transition: all 0.35s var(--motion);
}

.prize-item:hover {
  transform: translateY(-8px);
  box-shadow: var(--elevation-lg);
}

.prize-icon {
  height: 160px;
  background: linear-gradient(135deg, var(--violet-deep) 0%, var(--violet-soft) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.prize-icon i {
  font-size: 4rem;
  color: white;
  opacity: 0.95;
}

.prize-tag {
  position: absolute;
  top: var(--gap-sm);
  right: var(--gap-sm);
  background: var(--gold-primary);
  color: var(--slate-dark);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: var(--curve-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.prize-body {
  padding: var(--gap-lg);
}

.prize-body h3 {
  margin-bottom: var(--gap-sm);
  color: var(--slate-dark);
}

.prize-body p {
  font-size: 0.9375rem;
  margin-bottom: var(--gap-md);
}

.prize-date {
  display: inline-block;
  background: var(--surface-light);
  color: var(--violet-deep);
  font-size: 0.875rem;
  font-weight: 600;
  padding: var(--gap-xs) var(--gap-sm);
  border-radius: var(--curve-sm);
}

/* Feature Boxes */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--gap-lg);
}

.feature-box {
  background: var(--surface-pure);
  padding: var(--gap-lg);
  border-radius: var(--curve-md);
  border: 1px solid var(--stroke-light);
  transition: all 0.3s var(--motion);
}

.feature-box:hover {
  border-color: var(--violet-soft);
  box-shadow: var(--elevation-md);
}

.feature-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--gold-primary) 0%, var(--gold-light) 100%);
  border-radius: var(--curve-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--gap-md);
}

.feature-icon i {
  font-size: 1.75rem;
  color: var(--slate-dark);
}

.feature-box h3 {
  font-size: 1.25rem;
  margin-bottom: var(--gap-sm);
}

.feature-box p {
  font-size: 0.9375rem;
  margin-bottom: 0;
}

/* Large Prize Cards */
.highlight-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(480px, 1fr));
  gap: var(--gap-xl);
}

.highlight-card {
  background: var(--surface-pure);
  border-radius: var(--curve-lg);
  overflow: hidden;
  box-shadow: var(--elevation-md);
  border: 1px solid var(--stroke-light);
  transition: all 0.35s var(--motion);
}

.highlight-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--elevation-lg);
}

.highlight-banner {
  height: 220px;
  background: linear-gradient(135deg, var(--violet-deep) 0%, var(--violet-bright) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.highlight-banner i {
  font-size: 5rem;
  color: white;
  opacity: 0.9;
}

.highlight-label {
  position: absolute;
  top: var(--gap-md);
  right: var(--gap-md);
  background: var(--gold-primary);
  color: var(--slate-dark);
  font-size: 0.8125rem;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: var(--curve-sm);
  text-transform: uppercase;
}

.highlight-content {
  padding: var(--gap-xl);
}

.highlight-content h3 {
  font-size: 1.625rem;
  margin-bottom: var(--gap-sm);
}

.highlight-content p {
  margin-bottom: var(--gap-lg);
}

.highlight-meta {
  display: inline-block;
  background: var(--surface-light);
  color: var(--violet-deep);
  font-weight: 700;
  padding: var(--gap-sm) var(--gap-md);
  border-radius: var(--curve-sm);
}

/* Winners Table */
.results-table {
  background: var(--surface-pure);
  border-radius: var(--curve-lg);
  overflow: hidden;
  box-shadow: var(--elevation-sm);
  border: 1px solid var(--stroke-light);
}

.results-table table {
  width: 100%;
  border-collapse: collapse;
}

.results-table th,
.results-table td {
  padding: var(--gap-md) var(--gap-lg);
  text-align: left;
  border-bottom: 1px solid var(--stroke-light);
}

.results-table th {
  background: var(--surface-light);
  font-weight: 600;
  color: var(--slate-dark);
  font-size: 0.9375rem;
}

.results-table tr:last-child td {
  border-bottom: none;
}

.results-table tr:hover td {
  background: var(--surface-cream);
}

/* Filter Controls */
.filter-bar {
  display: flex;
  gap: var(--gap-md);
  margin-bottom: var(--gap-xl);
  flex-wrap: wrap;
  justify-content: center;
}

.filter-select {
  padding: var(--gap-sm) var(--gap-md);
  border: 2px solid var(--stroke-medium);
  border-radius: var(--curve-sm);
  background: var(--surface-pure);
  font-family: inherit;
  font-size: 0.9375rem;
  color: var(--ink-primary);
  cursor: pointer;
  transition: border-color 0.2s var(--motion);
}

.filter-select:focus {
  outline: none;
  border-color: var(--violet-deep);
}

/* Contact Form */
.form-field {
  margin-bottom: var(--gap-md);
}

.form-label {
  display: block;
  margin-bottom: var(--gap-xs);
  font-weight: 600;
  color: var(--slate-dark);
  font-size: 0.9375rem;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: var(--gap-sm) var(--gap-md);
  border: 2px solid var(--stroke-medium);
  border-radius: var(--curve-sm);
  font-family: inherit;
  font-size: 1rem;
  transition: all 0.2s var(--motion);
  background: var(--surface-pure);
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--violet-deep);
  box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.1);
}

.form-textarea {
  resize: vertical;
  min-height: 150px;
}

.form-error {
  color: #ef4444;
  font-size: 0.875rem;
  margin-top: var(--gap-xs);
}

/* Legal Sections */
.legal-block {
  background: var(--slate-dark);
  color: white;
  padding: var(--gap-2xl) 0;
}

.legal-block h3 {
  color: white;
  display: flex;
  align-items: center;
  gap: var(--gap-sm);
}

.legal-block h3 i {
  color: var(--gold-primary);
}

.legal-block p {
  color: rgba(255, 255, 255, 0.85);
}

/* Site Footer */
.site-bottom {
  background: var(--surface-pure);
  border-top: 1px solid var(--stroke-light);
  padding: var(--gap-2xl) 0 var(--gap-lg);
}

.site-bottom .page-wrap {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--gap-xl);
}

.footer-col h4 {
  color: var(--slate-dark);
  font-size: 1.0625rem;
  margin-bottom: var(--gap-md);
}

.footer-nav {
  list-style: none;
}

.footer-nav li {
  margin-bottom: var(--gap-sm);
}

.footer-nav a {
  color: var(--ink-secondary);
  font-size: 0.9375rem;
  transition: color 0.2s var(--motion);
}

.footer-nav a:hover {
  color: var(--violet-deep);
}

.legal-footer {
  margin-top: var(--gap-xl);
  padding: var(--gap-lg);
  background: var(--slate-dark);
  color: rgba(255, 255, 255, 0.9);
  text-align: center;
  font-size: 0.875rem;
  line-height: 1.8;
  border-radius: var(--curve-md);
}

.legal-footer p {
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
}

/* Section Headers */
.section-title {
  text-align: center;
  margin-bottom: var(--gap-xl);
}

.section-title h2 {
  margin-bottom: var(--gap-sm);
}

.section-title p {
  max-width: 650px;
  margin: 0 auto;
}

/* Utility Classes */
.text-center { text-align: center; }
.mb-0 { margin-bottom: 0; }
.mb-sm { margin-bottom: var(--gap-sm); }
.mb-md { margin-bottom: var(--gap-md); }
.mb-lg { margin-bottom: var(--gap-lg); }
.mb-xl { margin-bottom: var(--gap-xl); }

/* Responsive Design */
@media (max-width: 1024px) {
  .hero-area .page-wrap {
    flex-direction: column;
    text-align: center;
  }

  .hero-text {
    max-width: 100%;
  }

  .hero-visual {
    max-width: 100%;
  }

  .highlight-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  :root {
    --gap-lg: 2rem;
    --gap-xl: 3rem;
    --gap-2xl: 4rem;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    background: var(--surface-pure);
    padding: var(--gap-lg);
    border-bottom: 1px solid var(--stroke-light);
    box-shadow: var(--elevation-md);
  }

  .nav-links.active {
    display: block;
  }

  .nav-links ul {
    flex-direction: column;
    gap: var(--gap-sm);
  }

  .nav-links a {
    display: block;
    padding: var(--gap-sm);
  }

  .menu-toggle {
    display: flex;
  }

  .top-bar .page-wrap {
    position: relative;
  }

  .hero-visual img {
    height: 320px;
  }

  .prize-showcase {
    grid-template-columns: 1fr;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .results-table {
    overflow-x: auto;
  }

  .results-table table {
    min-width: 600px;
  }

  .site-bottom .page-wrap {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .page-wrap {
    padding: 0 var(--gap-md);
  }

  h1 {
    font-size: 2.25rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  .hero-visual img {
    height: 260px;
  }

  .action-btn {
    width: 100%;
    justify-content: center;
  }

  .results-table th,
  .results-table td {
    padding: var(--gap-sm);
    font-size: 0.875rem;
  }
}

/* Animations */
.fade-up {
  animation: fadeUp 0.6s var(--motion);
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Focus States */
.action-btn:focus,
.form-input:focus,
.form-textarea:focus,
.filter-select:focus {
  outline: 3px solid rgba(124, 58, 237, 0.4);
  outline-offset: 2px;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* Print Styles */
@media print {
  .top-bar, .site-bottom, .action-btn, .nav-links {
    display: none !important;
  }

  body {
    background: white !important;
    color: black !important;
  }

  .prize-item, .highlight-card, .feature-box {
    break-inside: avoid;
    box-shadow: none !important;
    border: 1px solid #000 !important;
  }
}

