/* GH & UBC Hospital Foundation – VGH Millionaire Lottery */
/* Premium Design with Teal/Cyan Primary, Emerald/Lime Accent */

/* CSS Design Tokens */
:root {
  --primary-teal: #0d9488;
  --primary-cyan: #06b6d4;
  --primary-slate: #334155;
  --accent-emerald: #10b981;
  --accent-lime: #84cc16;
  --bg-soft: #f0fdfa;
  --bg-light: #ecfeff;
  --bg-white: #ffffff;
  --text-dark: #0f172a;
  --text-medium: #475569;
  --text-light: #94a3b8;
  --border-soft: #cbd5e1;
  --border-medium: #94a3b8;
  --shadow-subtle: 0 2px 4px 0 rgba(0, 0, 0, 0.08);
  --shadow-regular: 0 4px 8px -2px rgba(0, 0, 0, 0.12);
  --shadow-strong: 0 12px 24px -4px rgba(0, 0, 0, 0.16);
  --radius-base: 10px;
  --radius-large: 16px;
  --easing: cubic-bezier(0.4, 0, 0.2, 1);
  --space-xs: 0.75rem;
  --space-sm: 1.25rem;
  --space-md: 2rem;
  --space-lg: 3rem;
  --space-xl: 4.5rem;
  --space-2xl: 6rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Plus Jakarta Sans', 'Segoe UI', Roboto, -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.75;
  color: var(--text-dark);
  background-color: var(--bg-soft);
  background-image:
    linear-gradient(135deg, rgba(6, 182, 212, 0.04) 0%, transparent 60%),
    linear-gradient(225deg, rgba(16, 185, 129, 0.04) 0%, transparent 60%);
  background-size: 500px 500px;
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: var(--space-md);
  color: var(--primary-slate);
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  font-weight: 800;
}

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

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

p {
  margin-bottom: var(--space-md);
  color: var(--text-medium);
  font-size: 1.0625rem;
}

a {
  color: var(--primary-cyan);
  text-decoration: none;
  transition: color 0.25s var(--easing);
}

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

/* Layout */
.wrapper {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.content-section {
  padding: var(--space-2xl) 0;
}

.content-section-tight {
  padding: var(--space-lg) 0;
}

/* Site Header */
.site-header {
  background: var(--bg-white);
  border-bottom: 2px solid var(--border-soft);
  padding: var(--space-md) 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-subtle);
}

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

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

.site-brand img {
  height: 50px;
  width: auto;
  max-width: 280px;
  object-fit: contain;
  transition: opacity 0.3s var(--easing);
}

.site-brand img:hover {
  opacity: 0.85;
}

.main-nav {
  display: flex;
  align-items: center;
}

.main-nav ul {
  display: flex;
  list-style: none;
  gap: var(--space-lg);
  align-items: center;
  margin: 0;
  padding: 0;
}

.main-nav li {
  list-style: none;
}

.main-nav a {
  color: var(--text-dark);
  font-weight: 600;
  font-size: 0.9375rem;
  transition: all 0.25s var(--easing);
  padding: var(--space-xs) var(--space-sm);
  position: relative;
  text-decoration: none;
  border-radius: var(--radius-base);
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background: linear-gradient(135deg, var(--primary-teal), var(--primary-cyan));
  transition: width 0.35s var(--easing);
  border-radius: 2px;
}

.main-nav a:hover::after {
  width: 80%;
}

.main-nav a:hover {
  color: var(--primary-teal);
  text-decoration: none;
  background: var(--bg-light);
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
}

.toggle-line {
  width: 100%;
  height: 4px;
  background: var(--primary-slate);
  border-radius: 3px;
  transition: all 0.3s var(--easing);
  transform-origin: center;
}

.mobile-toggle.active .toggle-line:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.mobile-toggle.active .toggle-line:nth-child(2) {
  opacity: 0;
}

.mobile-toggle.active .toggle-line:nth-child(3) {
  transform: rotate(-45deg) translate(8px, -8px);
}

/* Banner Section */
.banner-section {
  background: var(--bg-white);
  padding: var(--space-2xl) 0;
  display: flex;
  align-items: center;
  min-height: 600px;
}

.banner-section--split {
  max-width: 1280px;
  margin: 0 auto;
  padding: var(--space-2xl) var(--space-md);
}

.banner-content-left {
  flex: 1;
  padding-right: var(--space-2xl);
  max-width: 650px;
}

.banner-content-right {
  flex: 1;
  padding-left: var(--space-2xl);
  max-width: 650px;
}

.banner-image-left {
  flex: 1;
  order: -1;
  margin-right: var(--space-xl);
  max-width: 500px;
}

.banner-image-right {
  flex: 1;
  margin-left: var(--space-xl);
}

.banner-image {
  width: 100%;
  height: 450px;
  object-fit: cover;
  border-radius: var(--radius-large);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.banner-content h1 {
  font-size: clamp(2.75rem, 6vw, 4rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: var(--space-lg);
  color: var(--primary-slate);
  background: linear-gradient(135deg, var(--primary-teal) 0%, var(--primary-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.banner-content .banner-subtitle {
  font-size: 1.3125rem;
  line-height: 1.7;
  margin-bottom: var(--space-xl);
  color: var(--text-medium);
  max-width: 550px;
}

.banner-content .primary-btn {
  margin-top: var(--space-lg);
}

/* Banner Variations */
.banner-section--minimal {
  padding: var(--space-xl) 0;
  min-height: auto;
  flex-direction: column;
  text-align: center;
}

.banner-section--centered {
  flex-direction: column;
  text-align: center;
  padding: var(--space-xl) var(--space-md);
}

.banner-section--narrow {
  max-width: 900px;
  margin: 0 auto;
  padding: var(--space-xl) var(--space-md);
  flex-direction: column;
  text-align: center;
  min-height: auto;
}

.banner-content {
  max-width: 750px;
  margin: 0 auto;
}

.banner-section h1 {
  font-size: clamp(3rem, 6vw, 4.5rem);
  margin-bottom: var(--space-md);
  background: linear-gradient(135deg, var(--primary-teal) 0%, var(--primary-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
}

.banner-subtitle {
  font-size: 1.3125rem;
  color: var(--text-medium);
  margin-bottom: var(--space-2xl);
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

/* Buttons */
.primary-btn {
  display: inline-block;
  padding: var(--space-md) var(--space-xl);
  background: linear-gradient(135deg, var(--primary-teal) 0%, var(--primary-cyan) 100%);
  color: white;
  border: none;
  border-radius: var(--radius-large);
  font-weight: 700;
  font-size: 1.125rem;
  cursor: pointer;
  transition: all 0.3s var(--easing);
  text-decoration: none;
  box-shadow: var(--shadow-regular);
  letter-spacing: 0.02em;
}

.primary-btn:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-strong);
  background: linear-gradient(135deg, var(--primary-cyan) 0%, var(--primary-teal) 100%);
}

.primary-btn-alt {
  background: linear-gradient(135deg, var(--accent-emerald) 0%, var(--accent-lime) 100%);
}

.primary-btn-alt:hover {
  background: linear-gradient(135deg, var(--accent-lime) 0%, var(--accent-emerald) 100%);
}

/* Feature Cards */
.feature-card {
  background: var(--bg-white);
  border-radius: var(--radius-large);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08), 0 2px 6px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  transition: all 0.35s var(--easing);
  border: 1px solid var(--border-soft);
  padding: var(--space-xl);
  position: relative;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-strong);
}

/* Badge Styles */
.reward-badge {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  background: var(--accent-emerald);
  color: white;
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-base);
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  z-index: 2;
}

.feature-image {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--accent-emerald) 0%, var(--accent-lime) 100%);
  border-radius: var(--radius-base);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  margin-bottom: var(--space-lg);
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: var(--space-lg);
  flex-shrink: 0;
}

.feature-image i {
  font-size: 2rem;
  color: white;
}

.feature-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-base);
}

/* Reward card icon style */
.reward-icon {
  height: 200px;
  background: linear-gradient(135deg, var(--primary-teal) 0%, var(--primary-cyan) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.reward-icon i {
  font-size: 5rem;
  color: white;
  opacity: 0.95;
}

/* Reward Card Styles */
.reward-card {
  background: var(--bg-white);
  border-radius: var(--radius-large);
  box-shadow: var(--shadow-regular);
  overflow: hidden;
  transition: all 0.35s var(--easing);
  border: 1px solid var(--border-soft);
  margin-bottom: var(--space-lg);
}

.reward-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-strong);
}

.reward-details {
  padding: var(--space-xl);
}

.reward-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary-slate);
  margin-bottom: var(--space-sm);
}

.reward-description {
  color: var(--text-medium);
  line-height: 1.75;
  margin-bottom: var(--space-lg);
  font-size: 1rem;
}

.reward-date {
  display: inline-block;
  background: var(--bg-light);
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-base);
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--primary-cyan);
}

.feature-title {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--primary-slate);
  margin-bottom: var(--space-sm);
}

.feature-text {
  flex: 1;
}

.feature-text h3 {
  margin-bottom: var(--space-sm);
}

.feature-text p {
  color: var(--text-medium);
  line-height: 1.7;
  margin-bottom: var(--space-md);
  font-size: 0.9375rem;
}

.feature-meta {
  font-size: 0.875rem;
  color: var(--text-light);
  font-weight: 600;
  padding-top: var(--space-sm);
  border-top: 1px solid var(--border-soft);
}

.feature-meta {
  font-size: 0.9375rem;
  color: var(--text-light);
  font-weight: 600;
  padding-top: var(--space-sm);
  border-top: 1px solid var(--border-soft);
}

/* Grid Layouts */
.grid-layout {
  display: grid;
  gap: var(--space-xl);
}

.grid-layout-3 {
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
}

.grid-layout-2 {
  grid-template-columns: repeat(auto-fit, minmax(480px, 1fr));
}

/* Reward Image (if used with photos) */
.reward-image {
  height: 300px;
  overflow: hidden;
  position: relative;
}

.reward-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-base) var(--radius-base) 0 0;
}

/* Winners Table */
.winners-display {
  background: var(--bg-white);
  border-radius: var(--radius-large);
  box-shadow: var(--shadow-subtle);
  overflow: hidden;
  border: 1px solid var(--border-soft);
}

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

.winners-display th,
.winners-display td {
  padding: var(--space-lg);
  text-align: left;
  border-bottom: 1px solid var(--border-soft);
}

.winners-display th {
  background: var(--bg-light);
  font-weight: 700;
  color: var(--primary-slate);
  font-size: 0.9375rem;
}

.winners-display tr:last-child td {
  border-bottom: none;
}

.winners-display tr:hover {
  background: var(--bg-soft);
}

/* Forms */
.input-group {
  margin-bottom: var(--space-lg);
}

.input-label {
  display: block;
  margin-bottom: var(--space-sm);
  font-weight: 700;
  color: var(--primary-slate);
  font-size: 0.9375rem;
}

.input-field,
.textarea-field {
  width: 100%;
  padding: var(--space-md);
  border: 2px solid var(--border-soft);
  border-radius: var(--radius-base);
  font-family: inherit;
  font-size: 1rem;
  transition: all 0.3s var(--easing);
  background: var(--bg-white);
}

.input-field:focus,
.textarea-field:focus {
  outline: none;
  border-color: var(--primary-cyan);
  box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.12);
}

.textarea-field {
  resize: vertical;
  min-height: 150px;
  line-height: 1.7;
}

.input-error {
  color: #ef4444;
  font-size: 0.875rem;
  margin-top: var(--space-xs);
  display: none;
}

/* Filters */
.filter-controls {
  margin-bottom: var(--space-2xl);
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
  justify-content: center;
}

.filter-dropdown {
  padding: var(--space-sm) var(--space-md);
  border: 2px solid var(--border-soft);
  border-radius: var(--radius-base);
  background: var(--bg-white);
  font-family: inherit;
  font-size: 0.9375rem;
  cursor: pointer;
  transition: all 0.3s var(--easing);
  color: var(--text-dark);
}

.filter-dropdown:focus {
  outline: none;
  border-color: var(--primary-cyan);
}

/* Legal Section */
.legal-info {
  background: var(--primary-slate);
  color: white;
  padding: var(--space-2xl) 0;
}

.legal-info-content {
  max-width: 950px;
  margin: 0 auto;
  text-align: center;
}

.legal-info-title {
  font-size: 1.375rem;
  font-weight: 700;
  color: white;
  margin-bottom: var(--space-md);
}

.legal-info-text {
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.7;
  margin-bottom: var(--space-md);
  font-size: 1.0625rem;
}

/* Site Footer */
.site-footer {
  background: var(--bg-white);
  border-top: 2px solid var(--border-soft);
  padding: var(--space-2xl) 0 var(--space-lg);
}

.site-footer .wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-2xl);
}

.footer-column h4 {
  color: var(--primary-slate);
  margin-bottom: var(--space-md);
  font-size: 1.1875rem;
  font-weight: 700;
}

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

.footer-links-list li {
  margin-bottom: var(--space-sm);
}

.footer-links-list a {
  color: var(--text-medium);
  transition: color 0.25s var(--easing);
  font-size: 0.9375rem;
}

.footer-links-list a:hover {
  color: var(--primary-cyan);
  text-decoration: none;
}

.footer-bar {
  margin-top: var(--space-xl);
  border-top: 2px solid var(--border-soft);
  text-align: center;
  background: var(--primary-slate);
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.875rem;
  line-height: 1.75;
  padding: var(--space-xl);
}

.footer-bar p {
  margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
  .site-header .wrapper {
    position: relative;
  }

  .mobile-toggle {
    display: flex;
  }

  .main-nav {
    position: fixed;
    top: 0;
    left: -100%;
    width: 300px;
    height: 100vh;
    background: var(--bg-white);
    box-shadow: var(--shadow-strong);
    transition: left 0.35s var(--easing);
    z-index: 999;
    padding-top: 90px;
    border-right: 2px solid var(--border-soft);
  }

  .main-nav.active {
    left: 0;
  }

  .main-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 0 var(--space-lg);
    width: 100%;
  }

  .main-nav li {
    border-bottom: 1px solid var(--border-soft);
    width: 100%;
  }

  .main-nav li:last-child {
    border-bottom: none;
  }

  .main-nav a {
    display: block;
    padding: var(--space-lg) 0;
    font-size: 1.1875rem;
    font-weight: 600;
  }

  h1 {
    font-size: 2.5rem;
  }

  .banner-section {
    padding: var(--space-xl) 0;
    flex-direction: column;
    min-height: auto;
  }

  .banner-section--split {
    flex-direction: column;
  }

  .banner-content-left {
    padding-right: 0;
    max-width: none;
    margin-bottom: var(--space-xl);
  }

  .banner-image-right,
  .banner-image-left {
    margin-left: 0;
    margin-right: 0;
    margin-top: 0;
    max-width: 100%;
    order: -1;
  }

  .banner-content-right {
    padding-left: 0;
    max-width: none;
    margin-bottom: var(--space-xl);
  }

  .banner-section h1 {
    font-size: 2.75rem;
  }

  .banner-subtitle {
    font-size: 1.1875rem;
  }

  .grid-layout-3 {
    grid-template-columns: 1fr;
  }

  .grid-layout-2 {
    grid-template-columns: 1fr;
  }

  .content-section {
    padding: var(--space-xl) 0;
  }

  .reward-details {
    padding: var(--space-lg);
  }

  .winners-display {
    overflow-x: auto;
  }

  .winners-display table {
    min-width: 650px;
  }

  .filter-controls {
    flex-direction: column;
    align-items: center;
  }

  .site-footer .wrapper {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .wrapper {
    padding: 0 var(--space-md);
  }

  .banner-section h1 {
    font-size: 2.25rem;
  }

  .banner-subtitle {
    font-size: 1.0625rem;
  }

  .banner-image {
    height: 280px;
  }

  .primary-btn {
    padding: var(--space-md) var(--space-lg);
    font-size: 1rem;
  }

  .reward-details {
    padding: var(--space-md);
  }

  .winners-display th,
  .winners-display td {
    padding: var(--space-md);
  }
}

/* Utility Classes */
.text-center {
  text-align: center;
}

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--space-sm); }
.mb-2 { margin-bottom: var(--space-md); }
.mb-3 { margin-bottom: var(--space-lg); }

.fade-in {
  animation: fadeIn 0.7s var(--easing);
}

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

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

/* Focus states */
.primary-btn:focus,
.input-field:focus,
.textarea-field:focus,
.filter-dropdown:focus {
  outline: 3px solid var(--primary-cyan);
  outline-offset: 3px;
}

/* High contrast mode */
@media (prefers-contrast: high) {
  :root {
    --border-soft: #000000;
    --border-medium: #000000;
    --text-medium: #000000;
  }
}

/* Print styles */
@media print {
  .site-header,
  .site-footer,
  .primary-btn,
  .main-nav {
    display: none !important;
  }

  body {
    background: white !important;
  }

  .feature-card,
  .winners-display {
    box-shadow: none !important;
    border: 1px solid #000 !important;
  }
}

