/* STARS Lottery - Premium Lottery Platform */
/* Modern Design with Deep Purple/Teal Primary, Gold Accent */

/* Design System Variables */
:root {
  --primary-purple: #6366f1;
  --primary-indigo: #4f46e5;
  --accent-teal: #14b8a6;
  --accent-cyan: #06b6d4;
  --accent-gold: #fbbf24;
  --accent-amber: #f59e0b;
  --bg-cream: #fef9f3;
  --bg-slate: #f8fafc;
  --bg-white: #ffffff;
  --text-dark: #1e293b;
  --text-medium: #475569;
  --text-light: #94a3b8;
  --border-soft: #e2e8f0;
  --border-medium: #cbd5e1;
  --shadow-soft: 0 2px 4px 0 rgba(0, 0, 0, 0.06);
  --shadow-medium: 0 4px 12px 0 rgba(0, 0, 0, 0.08);
  --shadow-strong: 0 12px 24px 0 rgba(0, 0, 0, 0.12);
  --radius-small: 6px;
  --radius-medium: 10px;
  --radius-large: 16px;
  --easing-smooth: 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 Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.75;
  color: var(--text-dark);
  background: var(--bg-cream);
  background-image: 
    linear-gradient(135deg, rgba(99, 102, 241, 0.03) 0%, transparent 50%),
    linear-gradient(225deg, rgba(20, 184, 166, 0.03) 0%, transparent 50%);
  background-size: 600px 600px;
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

h1 {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(1.875rem, 4vw, 2.5rem);
  font-weight: 700;
}

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

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

a {
  color: var(--primary-purple);
  text-decoration: none;
  transition: color 0.2s var(--easing-smooth);
}

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

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

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

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

/* Top Navigation */
.top-nav {
  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(10px);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-soft);
}

.top-nav .page-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.brand-logo img {
  height: 56px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  transition: opacity 0.3s var(--easing-smooth);
}

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

.main-menu {
  display: flex;
  list-style: none;
  gap: var(--space-lg);
  align-items: center;
}

.main-menu a {
  color: var(--text-dark);
  font-weight: 500;
  font-size: 0.9375rem;
  transition: color 0.2s var(--easing-smooth);
  padding: var(--space-xs) 0;
  position: relative;
}

.main-menu a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-purple);
  transition: width 0.3s var(--easing-smooth);
}

.main-menu a:hover::after {
  width: 100%;
}

.main-menu a:hover {
  color: var(--primary-purple);
  text-decoration: none;
}

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

.menu-line {
  width: 100%;
  height: 3px;
  background: var(--text-dark);
  border-radius: 2px;
  transition: all 0.3s var(--easing-smooth);
  transform-origin: center;
}

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

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

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

/* Banner Section */
.banner-section {
  background: linear-gradient(135deg, var(--primary-indigo) 0%, var(--primary-purple) 50%, var(--accent-teal) 100%);
  padding: var(--space-2xl) 0;
  color: white;
  position: relative;
  overflow: hidden;
}

.banner-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.1)"/></svg>');
  opacity: 0.3;
}

.banner-container {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--space-xl);
  align-items: center;
  position: relative;
  z-index: 1;
}

.banner-container.no-image {
  grid-template-columns: 1fr;
  max-width: 900px;
  margin: 0 auto;
}

.banner-text {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.banner-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 900;
  line-height: 1.1;
  color: white;
  margin-bottom: 0;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.banner-description {
  font-size: 1.25rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 0;
  max-width: 600px;
}

.banner-image-container {
  position: relative;
  border-radius: var(--radius-large);
  overflow: hidden;
  box-shadow: var(--shadow-strong);
}

.banner-image {
  width: 100%;
  height: 450px;
  object-fit: cover;
  display: block;
}

/* Action Button Styles */
.cta-button {
  display: inline-block;
  padding: var(--space-sm) var(--space-lg);
  background: linear-gradient(135deg, var(--accent-gold) 0%, var(--accent-amber) 100%);
  color: var(--text-dark);
  border: none;
  border-radius: var(--radius-medium);
  font-weight: 700;
  font-size: 1.125rem;
  cursor: pointer;
  transition: transform 0.2s var(--easing-smooth), box-shadow 0.2s var(--easing-smooth), background 0.2s var(--easing-smooth);
  text-decoration: none;
  box-shadow: var(--shadow-medium);
  letter-spacing: 0.01em;
  align-self: flex-start;
  transform: translateZ(0);
  will-change: transform;
}

.cta-button:hover {
  transform: translateY(-2px) translateZ(0);
  box-shadow: var(--shadow-strong);
  background: linear-gradient(135deg, var(--accent-amber) 0%, var(--accent-gold) 100%);
  color: var(--text-dark);
  text-decoration: none;
}

.cta-button-outline {
  background: transparent;
  border: 2px solid var(--accent-gold);
  color: var(--accent-gold);
}

.cta-button-outline:hover {
  background: var(--accent-gold);
  color: var(--text-dark);
}

/* Prize Grid */
.prize-grid {
  display: grid;
  gap: var(--space-lg);
  margin-top: var(--space-lg);
}

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

.prize-item {
  background: var(--bg-white);
  border-radius: var(--radius-large);
  overflow: hidden;
  transition: transform 0.3s var(--easing-smooth), box-shadow 0.3s var(--easing-smooth), border-color 0.3s var(--easing-smooth);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  transform: translateZ(0);
  will-change: transform;
}

.prize-item:hover {
  transform: translateY(-4px) translateZ(0);
  box-shadow: var(--shadow-strong);
  border-color: var(--primary-purple);
}

.prize-image-wrapper {
  position: relative;
  height: 200px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary-purple) 0%, var(--accent-teal) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s var(--easing-smooth);
  transform: translateZ(0);
}

.prize-image-wrapper::before {
  content: '⭐';
  font-size: 4rem;
  opacity: 0.3;
  position: absolute;
  transition: opacity 0.3s var(--easing-smooth);
}

.prize-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s var(--easing-smooth);
  transform: translateZ(0);
  will-change: transform;
}

.prize-item:hover .prize-image-wrapper {
  background: linear-gradient(135deg, var(--primary-indigo) 0%, var(--accent-cyan) 100%);
}

.prize-item:hover .prize-image-wrapper::before {
  opacity: 0.5;
}

.prize-item:hover .prize-image-wrapper img {
  transform: scale(1.05) translateZ(0);
}

/* Custom Icon Classes */
.icon-house::before { content: '🏠'; font-size: 4rem; opacity: 0.4; }
.icon-car::before { content: '🚗'; font-size: 4rem; opacity: 0.4; }
.icon-travel::before { content: '✈️'; font-size: 4rem; opacity: 0.4; }
.icon-cash::before { content: '💰'; font-size: 4rem; opacity: 0.4; }
.icon-education::before { content: '📚'; font-size: 4rem; opacity: 0.4; }
.icon-health::before { content: '💪'; font-size: 4rem; opacity: 0.4; }
.icon-trophy::before { content: '🏆'; font-size: 4rem; opacity: 0.4; }
.icon-shield::before { content: '🛡️'; font-size: 4rem; opacity: 0.4; }
.icon-globe::before { content: '🌍'; font-size: 4rem; opacity: 0.4; }
.icon-star::before { content: '⭐'; font-size: 4rem; opacity: 0.4; }
.icon-gift::before { content: '🎁'; font-size: 4rem; opacity: 0.4; }

.prize-image-wrapper.icon-house::before,
.prize-image-wrapper.icon-car::before,
.prize-image-wrapper.icon-travel::before,
.prize-image-wrapper.icon-cash::before,
.prize-image-wrapper.icon-education::before,
.prize-image-wrapper.icon-health::before,
.prize-image-wrapper.icon-trophy::before,
.prize-image-wrapper.icon-shield::before,
.prize-image-wrapper.icon-globe::before,
.prize-image-wrapper.icon-star::before,
.prize-image-wrapper.icon-gift::before {
  position: absolute;
  z-index: 1;
  transition: opacity 0.3s var(--easing-smooth), transform 0.3s var(--easing-smooth);
  transform: translateZ(0);
}

.prize-image-wrapper.has-image::before {
  display: none;
}

.prize-label {
  position: absolute;
  top: var(--space-sm);
  right: var(--space-sm);
  background: var(--accent-gold);
  color: var(--text-dark);
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-small);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  z-index: 2;
}

.prize-details {
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.prize-heading {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: var(--space-xs);
}

.prize-description {
  color: var(--text-medium);
  line-height: 1.7;
  margin-bottom: var(--space-sm);
  flex-grow: 1;
  font-size: 1rem;
}

.prize-date {
  display: inline-block;
  background: var(--bg-slate);
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-small);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary-indigo);
  margin-top: auto;
}

/* Winners Display */
.winners-section {
  background: var(--bg-white);
}

.winners-table-wrapper {
  background: var(--bg-white);
  border-radius: var(--radius-large);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  border: 1px solid var(--border-soft);
  margin-top: var(--space-lg);
}

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

.winners-table thead {
  background: linear-gradient(135deg, var(--primary-indigo) 0%, var(--primary-purple) 100%);
}

.winners-table th {
  padding: var(--space-md);
  text-align: left;
  font-weight: 600;
  color: white;
  font-size: 0.9375rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.winners-table td {
  padding: var(--space-md);
  border-bottom: 1px solid var(--border-soft);
  color: var(--text-dark);
}

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

.winners-table tbody tr:hover {
  background: var(--bg-slate);
}

/* Form Elements */
.form-wrapper {
  margin-bottom: var(--space-lg);
}

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

.form-input,
.form-textarea {
  width: 100%;
  padding: var(--space-sm);
  border: 2px solid var(--border-soft);
  border-radius: var(--radius-small);
  font-family: inherit;
  font-size: 1rem;
  transition: all 0.2s var(--easing-smooth);
  background: var(--bg-white);
  color: var(--text-dark);
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--primary-purple);
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.form-textarea {
  resize: vertical;
  min-height: 160px;
  line-height: 1.7;
}

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

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

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

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

/* Legal Info Section */
.legal-info-section {
  background: linear-gradient(135deg, var(--text-dark) 0%, #0f172a 100%);
  color: rgba(255, 255, 255, 0.95);
  padding: var(--space-xl) 0;
}

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

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

.legal-text {
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.8;
  margin-bottom: var(--space-md);
  font-size: 1rem;
}

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

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

.footer-block h4 {
  color: var(--text-dark);
  margin-bottom: var(--space-sm);
  font-size: 1.125rem;
  font-weight: 700;
}

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

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

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

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

.footer-bottom-bar {
  margin-top: var(--space-lg);
  padding-top: var(--space-md);
  border-top: 1px solid var(--border-soft);
  text-align: center;
  background: var(--text-dark);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.8125rem;
  line-height: 1.8;
  padding: var(--space-md);
}

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

.section-title {
  text-align: center;
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin-bottom: var(--space-lg);
  color: var(--text-dark);
}

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

.fade-in-up {
  animation: fadeInUp 0.5s ease-out forwards;
  opacity: 0;
  transform: translateZ(0);
}

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

/* Responsive Design */
@media (max-width: 968px) {
  .top-nav .page-wrapper {
    position: relative;
  }

  .menu-toggle {
    display: flex;
  }

  .main-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 300px;
    height: 100vh;
    background: var(--bg-white);
    box-shadow: var(--shadow-strong);
    transition: left 0.3s var(--easing-smooth);
    z-index: 999;
    padding-top: 90px;
    border-right: 2px solid var(--border-soft);
    flex-direction: column;
    align-items: flex-start;
    padding-left: var(--space-md);
    gap: 0;
  }

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

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

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

  .main-menu a {
    display: block;
    padding: var(--space-md) 0;
    font-size: 1.125rem;
    font-weight: 500;
  }

  .banner-container {
    grid-template-columns: 1fr;
  }

  .banner-image-container {
    order: -1;
  }

  .banner-image {
    height: 320px;
  }

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

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

@media (max-width: 640px) {
  .page-wrapper {
    padding: 0 var(--space-sm);
  }

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

  .banner-image {
    height: 280px;
  }

  .cta-button {
    padding: var(--space-xs) var(--space-md);
    font-size: 1rem;
  }

  .winners-table-wrapper {
    overflow-x: auto;
  }

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

  .winners-table th,
  .winners-table td {
    padding: var(--space-sm);
  }

  .filter-container {
    flex-direction: column;
    align-items: stretch;
  }
}

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

.cta-button:focus,
.form-input:focus,
.form-textarea:focus,
.filter-select:focus {
  outline: 2px solid var(--primary-purple);
  outline-offset: 3px;
}

/* Print Styles */
@media print {
  .top-nav,
  .site-footer,
  .cta-button,
  .main-menu {
    display: none !important;
  }

  body {
    background: white !important;
  }

  .prize-item,
  .winners-table-wrapper {
    box-shadow: none !important;
    border: 1px solid #000 !important;
  }
}

