/* Global Styles */
:root {
  --primary-color: #0a2463; /* Dark Blue */
  --secondary-color: #3e92cc; /* Lighter Blue */
  --accent-color: #ffd700; /* Gold */
  --text-color-light: #ffffff;
  --text-color-dark: #333333;
  --background-light: #ffffff;
  --background-grey: #f4f4f4;
  --font-family-headings: "Montserrat", sans-serif;
  --font-family-body: "Open Sans", sans-serif;
  --container-width: 1140px;
  --border-radius: 5px;
  --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

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

body {
  font-family: var(--font-family-body);
  line-height: 1.6;
  color: var(--text-color-dark);
  background-color: var(--background-light);
  font-size: 16px;
}

.container {
  width: 90%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 15px;
}

h1,
h2,
h3 {
  font-family: var(--font-family-headings);
  font-weight: 700;
  margin-bottom: 0.75em;
  color: var(--primary-color);
}

h1 {
  font-size: 2.8em;
}
h2 {
  font-size: 2.2em;
}
h3 {
  font-size: 1.5em;
}

a {
  color: var(--secondary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--accent-color);
}

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

ul {
  list-style: none;
}

.btn {
  display: inline-block;
  padding: 12px 25px;
  font-size: 1em;
  font-weight: 600;
  text-align: center;
  border: none;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-primary {
  background-color: var(--primary-color);
  color: var(--text-color-light);
}
.btn-primary:hover {
  background-color: #082050;
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: var(--secondary-color);
  color: var(--text-color-light);
}
.btn-secondary:hover {
  background-color: #2a7bb8;
  transform: translateY(-2px);
}

.btn-accent {
  background-color: var(--accent-color);
  color: var(--primary-color);
  font-weight: 700;
}
.btn-accent:hover {
  background-color: #e6c200;
  transform: translateY(-2px);
}

.btn-large {
  padding: 15px 35px;
  font-size: 1.2em;
}

.btn-block {
  display: block;
  width: 100%;
}

/* Header */
header {
  background-color: var(--background-light);
  padding: 1em 0;
  box-shadow: var(--box-shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
}

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

.logo a {
  font-family: var(--font-family-headings);
  font-size: 1.8em;
  font-weight: 700;
  color: var(--primary-color);
}
.logo a:hover {
  color: var(--accent-color);
}

header nav ul {
  display: flex;
}

header nav ul li {
  margin-left: 25px;
}

header nav ul li a {
  font-weight: 600;
  color: var(--primary-color);
  padding: 5px 0;
  position: relative;
}
header nav ul li a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent-color);
  transition: width 0.3s ease;
}
header nav ul li a:hover::after {
  width: 100%;
}

.user-actions .btn {
  margin-left: 10px;
}

.aus-badge {
  font-size: 0.9em;
  color: var(--primary-color);
  margin-left: 20px;
  font-weight: 600;
}
.aus-badge span {
  vertical-align: middle;
}

.mobile-menu-toggle {
  display: none;
  font-size: 1.5em;
  background: none;
  border: none;
  color: var(--primary-color);
  cursor: pointer;
}

/* Hero Section */
.hero {
  background: linear-gradient(rgba(10, 36, 99, 0.85), rgba(10, 36, 99, 0.85)),
    url("/placeholder.svg?width=1920&height=600") no-repeat center center / cover;
  color: var(--text-color-light);
  padding: 6em 0;
  text-align: center;
}

.hero h1 {
  font-size: 3.5em;
  margin-bottom: 0.3em;
  color: var(--text-color-light);
}

.hero p {
  font-size: 1.3em;
  margin-bottom: 2em;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.countdown-timer {
  margin-top: 3em;
}

.countdown-timer h2 {
  font-size: 1.8em;
  margin-bottom: 0.5em;
  color: var(--accent-color);
}

#timer {
  font-size: 2em;
  font-weight: 700;
}

#timer span {
  display: inline-block;
  background-color: rgba(255, 255, 255, 0.1);
  padding: 10px 15px;
  border-radius: var(--border-radius);
  margin: 0 5px;
  min-width: 70px;
}

/* Main Content Sections */
main section {
  padding: 4em 0;
}

main section:nth-child(even) {
  background-color: var(--background-grey);
}

/* Latest Results */
.latest-results h2,
.how-it-works h2,
.trust-security h2 {
  text-align: center;
  margin-bottom: 1.5em;
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2em;
  margin-bottom: 2em;
}

.result-item {
  background-color: var(--background-light);
  padding: 1.5em;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  border-left: 5px solid var(--accent-color);
}

.result-item h3 {
  color: var(--secondary-color);
  margin-bottom: 0.5em;
}

.winning-numbers {
  font-size: 1.2em;
  font-weight: 700;
  margin-bottom: 0.3em;
  color: var(--primary-color);
}
.winning-numbers .supplementary,
.winning-numbers .powerball-num {
  font-size: 0.9em;
  font-weight: normal;
  color: var(--text-color-dark);
  margin-left: 5px;
}
.powerball-num {
  color: #d42e21;
}

.draw-date {
  font-size: 0.9em;
  color: #666;
}

.latest-results .btn {
  display: block;
  margin: 2em auto 0;
  width: fit-content;
}

/* How It Works */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2em;
  text-align: center;
}

.step {
  padding: 1.5em;
}

.step-icon {
  font-size: 2.5em;
  color: var(--accent-color);
  margin-bottom: 0.5em;
  display: inline-block;
  width: 60px;
  height: 60px;
  line-height: 60px;
  border-radius: 50%;
  background-color: var(--primary-color);
  color: var(--accent-color);
}

.step h3 {
  margin-bottom: 0.5em;
}

/* Trust & Security */
.trust-info {
  text-align: center;
  margin-bottom: 2em;
  font-size: 1.1em;
}
.trust-info p {
  margin-bottom: 0.5em;
}

.security-badges {
  text-align: center;
  margin-bottom: 2em;
}

.security-badges span {
  display: inline-block;
  background-color: var(--background-grey);
  padding: 10px 20px;
  margin: 5px;
  border-radius: var(--border-radius);
  font-weight: 600;
  color: var(--primary-color);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.responsible-gambling {
  text-align: center;
  background-color: var(--background-light);
  padding: 2em;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  border-top: 5px solid var(--accent-color);
}
.responsible-gambling h3 {
  color: var(--primary-color);
}
.responsible-gambling p {
  margin-bottom: 1em;
}
.responsible-gambling a {
  font-weight: bold;
}

/* Footer */
footer {
  background-color: var(--primary-color);
  color: var(--text-color-light);
  padding: 3em 0 1em;
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2em;
  margin-bottom: 2em;
}

.footer-col h3 {
  color: var(--accent-color);
  margin-bottom: 1em;
  font-size: 1.3em;
}

.footer-col p,
.footer-col ul li {
  margin-bottom: 0.5em;
  font-size: 0.95em;
  opacity: 0.9;
}

.footer-col ul li a {
  color: var(--text-color-light);
}
.footer-col ul li a:hover {
  color: var(--accent-color);
  text-decoration: underline;
}

.social-media a {
  color: var(--text-color-light);
  font-size: 1.5em;
  margin-right: 15px;
  transition: color 0.3s ease;
}
.social-media a:hover {
  color: var(--accent-color);
}

.footer-bottom {
  text-align: center;
  padding-top: 1.5em;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.9em;
  opacity: 0.8;
}
.footer-bottom p {
  margin-bottom: 0.3em;
}

/* Modals (Popups) */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2000;
  align-items: center;
  justify-content: center;
}

.modal.is-open {
  display: flex;
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  cursor: pointer;
}

.modal-container {
  background-color: var(--background-light);
  border-radius: var(--border-radius);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  z-index: 2001;
  animation: modalFadeIn 0.3s ease-out;
}

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

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1em 1.5em;
  border-bottom: 1px solid #eee;
}

.modal-title {
  font-size: 1.5em;
  margin-bottom: 0;
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.8em;
  cursor: pointer;
  color: #888;
  padding: 0.2em;
  line-height: 1;
}
.modal-close:hover {
  color: var(--primary-color);
}

.modal-content {
  padding: 1.5em;
}

/* Form Styles within Modals */
.form-group {
  margin-bottom: 1em;
}

.form-group label {
  display: block;
  margin-bottom: 0.3em;
  font-weight: 600;
  font-size: 0.9em;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="tel"],
.form-group input[type="date"],
.form-group textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: var(--border-radius);
  font-size: 1em;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--secondary-color);
  box-shadow: 0 0 0 2px rgba(62, 146, 204, 0.2);
}

.form-group.form-inline,
.form-group.form-checkbox {
  display: flex;
  align-items: center;
}
.form-group.form-inline input[type="checkbox"],
.form-group.form-checkbox input[type="checkbox"] {
  width: auto;
  margin-right: 0.5em;
}
.form-group.form-inline label,
.form-group.form-checkbox label {
  margin-bottom: 0;
  font-weight: normal;
  font-size: 0.9em;
}

.forgot-password {
  display: block;
  text-align: right;
  font-size: 0.9em;
  margin-bottom: 1em;
}

.switch-form {
  text-align: center;
  margin-top: 1.5em;
  font-size: 0.9em;
}
.switch-form a {
  font-weight: bold;
}

.contact-details {
  margin-top: 2em;
  padding-top: 1em;
  border-top: 1px solid #eee;
}
.contact-details h3 {
  font-size: 1.2em;
  margin-bottom: 0.5em;
}
.contact-details p {
  font-size: 0.95em;
  margin-bottom: 0.3em;
}

/* Cookie Consent Banner */
.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: var(--primary-color);
  color: var(--text-color-light);
  padding: 1em 0;
  z-index: 3000;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
  display: none;
}

.cookie-consent.show {
  display: block;
  animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}

.cookie-consent .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cookie-consent p {
  margin-right: 1em;
  font-size: 0.9em;
}

.cookie-consent a {
  color: var(--accent-color);
  text-decoration: underline;
}
.cookie-consent a:hover {
  color: var(--text-color-light);
}

.cookie-consent .btn-primary {
  background-color: var(--accent-color);
  color: var(--primary-color);
  font-weight: bold;
}
.cookie-consent .btn-primary:hover {
  background-color: var(--text-color-light);
}

/* Responsive Design */
@media (max-width: 992px) {
  .hero h1 {
    font-size: 2.8em;
  }
  .hero p {
    font-size: 1.1em;
  }
  #timer {
    font-size: 1.5em;
  }
  #timer span {
    padding: 8px 12px;
    min-width: 60px;
  }
}

@media (max-width: 768px) {
  header .container {
    flex-wrap: wrap;
  }
  header nav {
    display: none;
    width: 100%;
    order: 3;
    margin-top: 1em;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
  }
  header nav.active {
    display: block;
    max-height: 300px;
  }
  header nav ul {
    flex-direction: column;
  }
  header nav ul li {
    margin-left: 0;
    margin-bottom: 0.5em;
    text-align: center;
  }
  .user-actions {
    order: 2;
  }
  .aus-badge {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
    order: 1;
  }
  .logo {
    order: 0;
  }

  .hero h1 {
    font-size: 2.2em;
  }
  .hero p {
    font-size: 1em;
  }
  .btn-large {
    padding: 12px 25px;
    font-size: 1em;
  }
  #timer {
    font-size: 1.2em;
  }
  #timer span {
    padding: 6px 10px;
    min-width: 50px;
    margin: 0 3px;
  }

  .results-grid,
  .steps-grid,
  .footer-columns {
    grid-template-columns: 1fr;
  }

  .cookie-consent .container {
    flex-direction: column;
    text-align: center;
  }
  .cookie-consent p {
    margin-bottom: 0.5em;
    margin-right: 0;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 2em;
  }
  h2 {
    font-size: 1.8em;
  }
  h3 {
    font-size: 1.3em;
  }

  .user-actions .btn {
    padding: 8px 15px;
    font-size: 0.9em;
  }
  .logo a {
    font-size: 1.5em;
  }

  #timer {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  #timer span {
    margin-bottom: 5px;
  }
}
