/* Base styles - Stake.com inspired design */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: #1a2d38;
  color: #ffffff;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: #1874e1;
  text-decoration: none;
  transition: all 0.2s ease;
}

a:hover:not(.btn):not(.btn-primary):not(.btn-outline):not(.btn-ghost) {
  color: #4a9eff;
}

/* Override global link styles for buttons */
a.btn,
a.btn-primary,
a.btn-outline,
a.btn-ghost {
  color: inherit !important;
}

a.btn:hover,
a.btn-primary:hover,
a.btn-outline:hover,
a.btn-ghost:hover {
  color: inherit !important;
}

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

.page-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #1a2d38;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header - Stake.com style */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(26, 45, 56, 0.8);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.logo-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo-img {
  height: 50px;
  width: auto;
  filter: brightness(0) invert(1);
  -webkit-filter: brightness(0) invert(1);
}

.logo-text {
  font-weight: 600;
  letter-spacing: 0.5px;
  font-size: 14px;
  text-transform: uppercase;
  color: #ffffff;
}

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

.nav-links {
  display: flex;
  gap: 24px;
  font-size: 14px;
  font-weight: 500;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.7);
  padding: 8px 0;
  position: relative;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: #ffffff;
}

.nav-links a.active {
  color: #1874e1;
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: #1874e1;
  border-radius: 2px;
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.2s ease;
  white-space: nowrap;
  text-decoration: none;
}

.btn-primary {
  background: #1874e1 !important;
  color: #ffffff !important;
  font-weight: 600;
}

a.btn-primary,
a.btn-primary:link,
a.btn-primary:visited {
  color: #ffffff !important;
}

.btn-primary:hover,
a.btn-primary:hover,
a.btn-primary:focus,
a.btn-primary:active {
  background: #4a9eff !important;
  color: #ffffff !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(24, 116, 225, 0.3);
}

.btn-outline {
  background: transparent !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

a.btn-outline,
a.btn-outline:link,
a.btn-outline:visited {
  color: #ffffff !important;
}

.btn-outline:hover,
a.btn-outline:hover,
a.btn-outline:focus,
a.btn-outline:active {
  border-color: #1874e1 !important;
  color: #1874e1 !important;
  background: rgba(24, 116, 225, 0.05) !important;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-small {
  padding: 6px 12px;
  font-size: 12px;
}

/* Mobile nav */

.nav-toggle {
  display: none;
  border: none;
  background: transparent;
  color: #ffffff;
  font-size: 24px;
  cursor: pointer;
  padding: 8px;
}

.mobile-nav {
  display: none;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(26, 45, 56, 0.95);
  backdrop-filter: blur(20px);
}

.mobile-nav-inner {
  padding: 16px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mobile-nav-links a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  padding: 8px 0;
}

.mobile-nav-links a.active {
  color: #1874e1;
}

.mobile-nav-links a:hover {
  color: #ffffff;
}

.mobile-cta {
  margin-top: 8px;
}

/* Hero section */

.hero {
  padding: 60px 0 40px;
  background: #1a2d38;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: center;
}

.eyebrow {
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 16px;
  font-weight: 500;
}

.hero-title {
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.1;
  font-weight: 700;
  margin: 0 0 16px;
  color: #ffffff;
}

.hero-highlight {
  background: linear-gradient(135deg, #1874e1 0%, #4a9eff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

.hero-subtitle {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.7);
  max-width: 600px;
  margin-bottom: 24px;
  line-height: 1.6;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.badge {
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 6px 12px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.8);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.03);
}

.badge-dot {
  height: 6px;
  width: 6px;
  border-radius: 50%;
  background: #1874e1;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 20px;
}

.hero-note {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.5;
}

.hero-side {
  display: grid;
  gap: 16px;
}

.hero-image-card {
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.hero-image-card:hover {
  border-color: rgba(24, 116, 225, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.hero-image-card img {
  display: block;
  width: 100%;
  height: auto;
}

.hero-overlay {
  position: absolute;
  inset: auto 0 0;
  padding: 16px;
  background: linear-gradient(to top, rgba(13, 17, 23, 0.95), transparent);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
}

.hero-overlay-text {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.4;
}

.hero-overlay-text strong {
  color: #ffffff;
  display: block;
  margin-bottom: 4px;
}

.hero-overlay-cta {
  flex-shrink: 0;
}

.cta-banner {
  position: relative;
  border-radius: 8px;
  padding: 16px 20px;
  background: rgba(24, 116, 225, 0.1);
  border: 1px solid rgba(24, 116, 225, 0.3);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.cta-banner-text {
  font-size: 14px;
  color: #1874e1;
  font-weight: 600;
}

.cta-banner-sub {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 4px;
}

/* Main layout */

main {
  flex: 1;
  background: #1a2d38;
}

.section {
  padding: 48px 0;
}

.section-heading {
  margin-bottom: 32px;
}

.section-heading h2 {
  margin: 0 0 12px;
  font-size: 32px;
  font-weight: 700;
  color: #ffffff;
}

.section-heading p {
  margin: 0;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.7);
  max-width: 700px;
  line-height: 1.6;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}

.contact-image-card {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-image-card img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
}

.card {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 28px;
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.card:hover {
  border-color: rgba(24, 116, 225, 0.4);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.card h3 {
  margin-top: 0;
  margin-bottom: 12px;
  font-size: 20px;
  font-weight: 600;
  color: #ffffff;
}

.card p {
  margin-top: 0;
  margin-bottom: 12px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
}

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.pill {
  padding: 4px 12px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.03);
}

.list-check {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.list-check li {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 8px;
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

.check-icon {
  color: #1874e1;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}

.content-columns {
  max-width: 100%;
  margin: 0;
}

.btn-wrapper {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  width: 100% !important;
  margin-top: 24px;
}

.content-columns > div:has(.btn),
.content-columns div[style*="justify-content"] {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  width: 100% !important;
}

.content-columns h3 {
  font-size: 24px;
  margin-top: 32px;
  margin-bottom: 12px;
  font-weight: 600;
  color: #ffffff;
}

.content-columns h3:first-child {
  margin-top: 0;
}

.content-columns h4 {
  font-size: 18px;
  margin-top: 24px;
  margin-bottom: 8px;
  font-weight: 600;
  color: #ffffff;
}

.content-columns p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 0;
  margin-bottom: 16px;
  line-height: 1.7;
}

.content-columns ul {
  padding-left: 20px;
  margin-top: 0;
  margin-bottom: 16px;
}

.content-columns li {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 8px;
  line-height: 1.6;
}

.content-columns strong {
  color: #ffffff;
  font-weight: 600;
}

.content-columns > div {
  width: 100%;
}

.content-columns div[style*="display: flex"],
.content-columns div[style*="justify-content: center"] {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  width: 100% !important;
  margin-left: auto;
  margin-right: auto;
}

/* Latest winners table */

.winners-table-wrapper {
  margin-top: 16px;
  overflow-x: auto;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.02);
}

.username-cell {
  transition: opacity 0.2s ease;
}

table.winners-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  min-width: 600px;
}

table.winners-table thead {
  background: rgba(255, 255, 255, 0.03);
}

table.winners-table th,
table.winners-table td {
  padding: 12px 16px;
  text-align: left;
}

table.winners-table th {
  font-weight: 600;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

table.winners-table th:hover {
  color: rgba(255, 255, 255, 0.8);
}

table.winners-table th span.sort-indicator {
  font-size: 10px;
  margin-left: 4px;
  opacity: 0.5;
}

table.winners-table tr {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.2s ease;
}

table.winners-table tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

table.winners-table tr.highlight {
  background: rgba(24, 116, 225, 0.1) !important;
  border-left: 3px solid #1874e1;
}

table.winners-table tr.new-row {
  opacity: 0 !important;
  transform: translateY(-30px) !important;
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

table.winners-table tr.new-row.slide-in {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

table.winners-table tr.fade-out {
  animation: fadeOutToBottom 0.4s ease-out forwards;
  pointer-events: none;
}

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

table.winners-table td {
  color: rgba(255, 255, 255, 0.8);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

table.winners-table td.payout {
  color: #1874e1;
  font-weight: 600;
}

table.winners-table td.multiplier {
  color: #0ea5e9;
  font-weight: 500;
}

/* FAQ */

.faq {
  margin-top: 24px;
}

.faq-item {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 16px 0;
}

.faq-item:last-child {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.faq-question {
  font-size: 16px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 8px;
}

.faq-answer {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
}

/* Utility sections */

.page-hero {
  padding: 48px 0 32px;
  background: #1a2d38;
}

.breadcrumbs {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 12px;
}

.breadcrumbs a {
  color: rgba(255, 255, 255, 0.7);
}

.breadcrumbs a:hover {
  color: #1874e1;
}

.breadcrumbs span {
  margin: 0 8px;
  color: rgba(255, 255, 255, 0.3);
}

.page-title {
  margin: 0 0 12px;
  font-size: 40px;
  font-weight: 700;
  color: #ffffff;
}

.page-subtitle {
  margin: 0;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.7);
  max-width: 700px;
  line-height: 1.6;
}

.page-content {
  padding-bottom: 48px;
}

.page-content .card {
  margin-bottom: 24px;
}

.page-content p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.7;
}

.page-content h3 {
  font-size: 20px;
  font-weight: 600;
  color: #ffffff;
  margin-top: 32px;
  margin-bottom: 12px;
}

.page-content h3:first-child {
  margin-top: 0;
}

.page-content ul {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
  padding-left: 20px;
}

.page-content li {
  margin-bottom: 8px;
}

.page-content strong {
  color: #ffffff;
  font-weight: 600;
}

.page-content code {
  background: rgba(255, 255, 255, 0.05);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 13px;
  color: #1874e1;
  font-family: 'Courier New', monospace;
}

/* Forms */

.form-card {
  max-width: 600px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 500;
  color: #ffffff;
}

.form-group input,
.form-group textarea {
  width: 100%;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  color: #ffffff;
  padding: 10px 12px;
  font-size: 14px;
  transition: all 0.2s ease;
  font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #1874e1;
  background: rgba(255, 255, 255, 0.05);
}

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

.form-helper {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 4px;
}

/* Footer */

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(26, 45, 56, 0.95);
  backdrop-filter: blur(20px);
  padding: 32px 0 24px;
  margin-top: auto;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 32px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.footer-logo img {
  height: 44px;
  filter: brightness(0) invert(1);
  -webkit-filter: brightness(0) invert(1);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  margin-top: 12px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
}

.footer-links a:hover {
  color: #1874e1;
}

.footer-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-end;
  text-align: right;
}

.footer-meta small {
  color: rgba(255, 255, 255, 0.5);
  font-size: 12px;
}

.footer-legal {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 12px;
  line-height: 1.5;
}

/* Responsive */

@media (max-width: 1024px) {
  .container {
    max-width: 100%;
    padding: 0 20px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hero-side {
    order: -1;
  }

  .grid-2 {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer-meta {
    align-items: flex-start;
    text-align: left;
  }
}

@media (max-width: 768px) {
  .nav-main {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .header-inner {
    padding: 12px 16px;
  }

  .container {
    padding: 0 16px;
  }

  .hero {
    padding: 32px 0 24px;
  }

  .section {
    padding: 32px 0;
  }

  .section-heading h2 {
    font-size: 24px;
  }

  .page-title {
    font-size: 32px;
  }

  .card {
    padding: 20px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

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

  .header-cta {
    display: none;
  }
}

@media (min-width: 769px) {
  .mobile-nav {
    display: none !important;
  }
}
