/* 🪃 Outback Lotto Australia CSS */
/* Unique Architecture: CSS Container Queries + Modern Grid + Adaptive Components + Bush Animations */

/* ===== OUTBACK COLOR PALETTE ===== */
:root {
  /* Red Earth Tones */
  --uluru-red: #8b2635;
  --red-earth: #a0522d;
  --clay-orange: #cd853f;
  --rust-red: #b7410e;

  /* Ochre & Gold */
  --ochre-yellow: #cc9900;
  --golden-wattle: #ffd700;
  --desert-sand: #f4a460;
  --sunset-amber: #ffbf00;

  /* Bush Green */
  --eucalyptus: #4a6741;
  --bush-green: #228b22;
  --olive-bush: #6b8e23;
  --sage-green: #9caf88;

  /* Supporting Colors */
  --outback-cream: #fff8dc;
  --kangaroo-brown: #8b4513;
  --emu-grey: #696969;
  --sky-blue: #87ceeb;

  /* Modern Spacing System */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-xxl: 3rem;

  /* Responsive Containers */
  --container-xs: 320px;
  --container-sm: 640px;
  --container-md: 768px;
  --container-lg: 1024px;
  --container-xl: 1280px;

  /* Animation Variables */
  --bush-duration: 4s;
  --dust-duration: 8s;
  --boomerang-duration: 3s;
}

/* ===== MODERN RESET & CONTAINER QUERIES ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: clamp(14px, 2.5vw, 18px);
  scroll-behavior: smooth;
}

body {
  font-family: 'Georgia', 'Times New Roman', serif;
  line-height: 1.6;
  color: var(--emu-grey);
  background: linear-gradient(45deg, var(--desert-sand) 0%, var(--ochre-yellow) 50%, var(--uluru-red) 100%);
  background-attachment: fixed;
  animation: dustStorm var(--dust-duration) ease-in-out infinite alternate;
  overflow-x: hidden;
  container-type: inline-size;
}

/* ===== OUTBACK ANIMATIONS ===== */
@keyframes dustStorm {
  0% { background-position: 0% 50%; filter: hue-rotate(0deg); }
  50% { background-position: 50% 100%; filter: hue-rotate(10deg); }
  100% { background-position: 100% 50%; filter: hue-rotate(0deg); }
}

@keyframes bushSway {
  0%, 100% { transform: translateX(0) rotate(0deg); }
  25% { transform: translateX(5px) rotate(1deg); }
  75% { transform: translateX(-5px) rotate(-1deg); }
}

@keyframes boomerangSpin {
  0% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(180deg) scale(1.1); }
  100% { transform: rotate(360deg) scale(1); }
}

@keyframes mirageEffect {
  0%, 100% { opacity: 1; transform: translateY(0px); }
  50% { opacity: 0.8; transform: translateY(-2px); }
}



/* ===== MODERN GRID LAYOUT ===== */
.page-container {
  display: grid;
  grid-template-areas:
    "header"
    "main"
    "footer";
  grid-template-rows: auto 1fr auto;
  min-height: 100vh;
  max-width: min(95vw, var(--container-xl));
  margin: 0 auto;
  background: rgba(255, 248, 220, 0.95);
  box-shadow: 0 0 2rem rgba(139, 38, 53, 0.3);
  border-radius: clamp(10px, 2vw, 20px);
  overflow: hidden;
  backdrop-filter: blur(10px);
  container-type: inline-size;
}

/* ===== HEADER OUTBACK STYLING ===== */
.header {
  grid-area: header;
  background: linear-gradient(135deg, var(--uluru-red), var(--kangaroo-brown));
  color: var(--outback-cream);
  padding: var(--space-md);
  position: relative;
  overflow: hidden;
  container-type: inline-size;
}

.header::before {
  content: '🪃';
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: clamp(2rem, 5vw, 3rem);
  opacity: 0.3;
}

/* Navigation with Container Queries */
.nav-menu {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-md);
  container-type: inline-size;
}

@container (max-width: 600px) {
  .nav-menu {
    flex-direction: column;
    text-align: center;
    gap: var(--space-sm);
  }
}

.logo {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: bold;
  color: var(--golden-wattle);
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: var(--space-md);
  flex-wrap: wrap;
  container-type: inline-size;
}

@container (max-width: 480px) {
  .nav-links {
    flex-direction: column;
    width: 100%;
    gap: var(--space-sm);
  }
}

.nav-links a {
  color: var(--outback-cream);
  text-decoration: none;
  padding: var(--space-sm) var(--space-md);
  border-radius: 25px;
  background: linear-gradient(45deg, var(--rust-red), var(--clay-orange));
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.nav-links a:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 4px 12px rgba(183, 65, 14, 0.4);
  background: linear-gradient(45deg, var(--ochre-yellow), var(--golden-wattle));
  color: var(--kangaroo-brown);
}

/* ===== MAIN CONTENT OUTBACK LAYOUT ===== */
.main-content {
  grid-area: main;
  padding: var(--space-md);
  background: linear-gradient(180deg, var(--outback-cream) 0%, var(--desert-sand) 100%);
  container-type: inline-size;
}

/* Hero Section with Outback Theme */
.hero-section {
  text-align: center;
  padding: var(--space-xxl) var(--space-md);
  margin-bottom: var(--space-xxl);
  background: linear-gradient(135deg, var(--sunset-amber), var(--ochre-yellow));
  border-radius: 20px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(139, 38, 53, 0.2);
  container-type: inline-size;
}

@container (max-width: 600px) {
  .hero-section {
    padding: var(--space-xl) var(--space-sm);
    margin-bottom: var(--space-xl);
  }
}

.hero-section::before {
  content: '🦘';
  position: absolute;
  top: 20px;
  left: 20px;
  font-size: clamp(2rem, 6vw, 4rem);
  opacity: 0.3;
}

.hero-title {
  font-size: clamp(2rem, 6vw, 3.5rem);
  color: var(--uluru-red);
  margin-bottom: var(--space-md);
  text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.hero-subtitle {
  font-size: clamp(1rem, 3vw, 1.3rem);
  color: var(--kangaroo-brown);
  margin-bottom: var(--space-xl);
  max-width: 60ch;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
}

/* ===== MODERN FEATURES GRID ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: var(--space-xl);
  margin-bottom: var(--space-xxl);
  container-type: inline-size;
}

@container (max-width: 600px) {
  .features-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
  }
}

.feature-card {
  background: linear-gradient(135deg, var(--outback-cream), var(--desert-sand));
  padding: var(--space-xl);
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(74, 103, 65, 0.15);
  border: 2px solid var(--sage-green);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  container-type: inline-size;
}

@container (max-width: 400px) {
  .feature-card {
    padding: var(--space-lg);
  }
}

.feature-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(204, 153, 0, 0.1), transparent);
  transition: all 0.3s ease;
  border-radius: 50%;
  transform: scale(0);
}

.feature-card:hover::before {
  transform: scale(1);
}

.feature-card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 15px 40px rgba(74, 103, 65, 0.25);
  border-color: var(--ochre-yellow);
}

.feature-icon {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  margin-bottom: var(--space-md);
  display: block;
}

.feature-title {
  font-size: clamp(1.3rem, 3vw, 1.6rem);
  color: var(--uluru-red);
  margin-bottom: var(--space-md);
  font-weight: bold;
}

.feature-description {
  color: var(--emu-grey);
  line-height: 1.6;
  font-size: clamp(0.9rem, 2.5vw, 1rem);
}

/* ===== FORMS OUTBACK STYLING ===== */
.outback-form {
  background: linear-gradient(135deg, var(--outback-cream), var(--desert-sand));
  padding: var(--space-xl);
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(34, 139, 34, 0.2);
  border: 2px solid var(--bush-green);
  max-width: min(600px, 95vw);
  margin: var(--space-xl) auto;
  container-type: inline-size;
}

@container (max-width: 500px) {
  .outback-form {
    padding: var(--space-lg);
    margin: var(--space-lg) auto;
  }
}

.form-group {
  margin-bottom: var(--space-lg);
}

.form-label {
  display: block;
  margin-bottom: var(--space-sm);
  color: var(--uluru-red);
  font-weight: bold;
  font-size: clamp(0.9rem, 2.5vw, 1rem);
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: var(--space-md);
  border: 2px solid var(--sage-green);
  border-radius: 10px;
  font-size: clamp(0.9rem, 2.5vw, 1rem);
  transition: all 0.3s ease;
  background: var(--outback-cream);
  font-family: inherit;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--ochre-yellow);
  box-shadow: 0 0 10px rgba(204, 153, 0, 0.3);
  transform: scale(1.01);
}

.bush-button {
  background: linear-gradient(45deg, var(--eucalyptus), var(--bush-green));
  color: var(--outback-cream);
  border: none;
  padding: var(--space-md) var(--space-xl);
  border-radius: 25px;
  font-size: clamp(1rem, 3vw, 1.2rem);
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(34, 139, 34, 0.3);
  white-space: nowrap;
}

@container (max-width: 400px) {
  .bush-button {
    padding: var(--space-sm) var(--space-lg);
    font-size: 1rem;
  }
}

.bush-button:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 10px 25px rgba(34, 139, 34, 0.4);
  background: linear-gradient(45deg, var(--olive-bush), var(--ochre-yellow));
}

/* ===== SUPER ADAPTIVE FOOTER ===== */
.footer {
  grid-area: footer;
  background: linear-gradient(135deg, var(--kangaroo-brown), var(--uluru-red));
  color: var(--outback-cream);
  padding: var(--space-xl) var(--space-md);
  container-type: inline-size;
}

/* Footer Content Grid - Adaptive Layout */
.footer-content {
  display: grid;
  gap: var(--space-lg);
  max-width: var(--container-xl);
  margin: 0 auto;
  container-type: inline-size;
}

/* Responsive Footer Grid */
@container (min-width: 900px) {
  .footer-content {
    grid-template-columns: 2fr 1fr 1fr 1fr;
    grid-template-areas:
      "main quick legal help"
      "main contact social help";
    gap: var(--space-xl);
  }
}

@container (min-width: 600px) and (max-width: 899px) {
  .footer-content {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "main quick"
      "legal help"
      "contact social";
    gap: var(--space-lg);
  }
}

@container (max-width: 599px) {
  .footer-content {
    grid-template-columns: 1fr;
    grid-template-areas:
      "main"
      "quick"
      "legal"
      "contact"
      "social"
      "help";
    gap: var(--space-md);
    text-align: center;
  }
}

/* Footer Sections */
.footer-main {
  grid-area: main;
}

.footer-main h3 {
  color: var(--golden-wattle);
  margin-bottom: var(--space-md);
  font-size: clamp(1.2rem, 3vw, 1.5rem);
}

.footer-main p {
  line-height: 1.6;
  opacity: 0.9;
  font-size: clamp(0.9rem, 2.5vw, 1rem);
}

.footer-quick {
  grid-area: quick;
}

.footer-legal {
  grid-area: legal;
}

.footer-contact {
  grid-area: contact;
}

.footer-social {
  grid-area: social;
}

.footer-help {
  grid-area: help;
}

.footer-section h4 {
  color: var(--golden-wattle);
  margin-bottom: var(--space-md);
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  position: relative;
}

.footer-section h4::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--ochre-yellow);
  border-radius: 2px;
}

@container (max-width: 599px) {
  .footer-section h4::after {
    left: 50%;
    transform: translateX(-50%);
  }
}

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

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

.footer-links a {
  color: var(--outback-cream);
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: clamp(0.9rem, 2.5vw, 1rem);
  opacity: 0.9;
}

.footer-links a:hover {
  color: var(--golden-wattle);
  opacity: 1;
  transform: translateX(5px);
}

@container (max-width: 599px) {
  .footer-links a:hover {
    transform: translateX(0) scale(1.05);
  }
}

/* Footer Bottom */
.footer-bottom {
  margin-top: var(--space-xl);
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(255, 248, 220, 0.3);
  text-align: center;
  container-type: inline-size;
}

@container (min-width: 600px) {
  .footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
  }
}

.footer-bottom p {
  font-size: clamp(0.8rem, 2vw, 0.9rem);
  opacity: 0.8;
  margin-bottom: var(--space-sm);
}

@container (min-width: 600px) {
  .footer-bottom p {
    margin-bottom: 0;
  }
}

.footer-emergency {
  display: flex;
  gap: var(--space-lg);
  justify-content: center;
  flex-wrap: wrap;
}

@container (max-width: 500px) {
  .footer-emergency {
    flex-direction: column;
    gap: var(--space-sm);
  }
}

.footer-emergency a {
  color: var(--golden-wattle);
  text-decoration: none;
  font-weight: bold;
  font-size: clamp(0.9rem, 2.5vw, 1rem);
  transition: all 0.3s ease;
}

.footer-emergency a:hover {
  color: var(--sunset-amber);
  transform: scale(1.05);
}





/* ===== ACCESSIBILITY & UTILITIES ===== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.text-center { text-align: center; }
.text-outback { color: var(--uluru-red); }
.text-gold { color: var(--golden-wattle); }
.bg-earth { background-color: var(--red-earth); }

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --uluru-red: #000000;
    --outback-cream: #ffffff;
    --ochre-yellow: #ffff00;
    --bush-green: #00ff00;
  }
}

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