/* Modern CSS with updated design for 1xSlots website - 2025 */

:root {
  /* New color scheme */
  --color-primary: #3a0ca3;
  --color-secondary: #f72585;
  --color-accent: #4cc9f0;
  --color-dark: #121b2e;
  --color-light: #f8f9fa;
  --color-gray: #6c757d;
  --color-success: #4caf50;
  --color-warning: #ff9800;
  --color-danger: #f44336;
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #3a0ca3, #4361ee);
  --gradient-secondary: linear-gradient(135deg, #f72585, #7209b7);
  --gradient-accent: linear-gradient(135deg, #4cc9f0, #4895ef);
  
  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.1);
  
  /* Typography */
  --font-primary: 'Inter', system-ui, -apple-system, sans-serif;
  --font-heading: 'Inter', system-ui, -apple-system, sans-serif;
  --font-monospace: SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  
  /* Spacing */
  --space-unit: 8px;
  --space-xs: calc(var(--space-unit) * 0.5);
  --space-sm: var(--space-unit);
  --space-md: calc(var(--space-unit) * 2);
  --space-lg: calc(var(--space-unit) * 3);
  --space-xl: calc(var(--space-unit) * 4);
  
  /* Container */
  --container-max: 1200px;
  --container-padding: var(--space-md);
  
  /* Border radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  
  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-base: 0.25s ease;
  --transition-slow: 0.4s ease;
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-primary);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-dark);
  background-color: var(--color-light);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--color-dark);
}

h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
}

h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: 1.5rem;
}

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

h4 {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
}

p {
  margin-bottom: 1.5rem;
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover, a:focus {
  color: var(--color-secondary);
  text-decoration: underline;
}

img, svg, video {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

/* Utility Classes */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-padding);
}

.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

.text-muted {
  color: var(--color-gray);
  font-size: 0.9rem;
}

.fw-bold {
  font-weight: 700;
}

.fw-semi {
  font-weight: 600;
}

.accent {
  color: var(--color-secondary);
  font-weight: 600;
}

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: var(--space-sm); }
.mt-2 { margin-top: var(--space-md); }
.mt-3 { margin-top: var(--space-lg); }
.mt-4 { margin-top: var(--space-xl); }

.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); }
.mb-4 { margin-bottom: var(--space-xl); }

/* Layout */
.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.flex-wrap {
  flex-wrap: wrap;
}

.items-center {
  align-items: center;
}

.justify-between {
  justify-content: space-between;
}

.gap-1 { gap: var(--space-sm); }
.gap-2 { gap: var(--space-md); }
.gap-3 { gap: var(--space-lg); }
.gap-4 { gap: var(--space-xl); }

.grid {
  display: grid;
  gap: var(--space-lg);
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
}

.grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
}

/* Components */
/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--color-dark);
  box-shadow: var(--shadow-md);
  padding: var(--space-md) 0;
}

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

.logo {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  color: white;
  font-weight: 700;
  font-size: 1.25rem;
}

.logo img {
  height: 50px;
  width: auto;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
}

.main-nav ul {
  display: flex;
  gap: var(--space-lg);
  list-style: none;
}

.main-nav a {
  color: white;
  font-weight: 500;
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-sm);
  transition: background-color var(--transition-fast), color var(--transition-fast);
}

.main-nav a:hover, 
.main-nav a:focus,
.main-nav a.active {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--color-accent);
  text-decoration: none;
}

/* Hero Section */
.hero {
  background: var(--gradient-primary);
  color: white;
  padding: clamp(4rem, 8vw, 8rem) 0;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='rgba(255,255,255,.05)' fill-rule='evenodd'/%3E%3C/svg%3E");
  opacity: 0.3;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.hero-title {
  margin-bottom: var(--space-md);
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  margin-bottom: var(--space-lg);
  font-weight: 400;
  opacity: 0.9;
}

.badge {
  display: inline-block;
  padding: 0.35em 0.8em;
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1;
  background-color: rgba(255, 255, 255, 0.2);
  color: white;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-md);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Buttons */
.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75em 2em;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 1rem;
  text-align: center;
  cursor: pointer;
  border: none;
  transition: all var(--transition-fast);
  text-decoration: none !important;
}

.btn-primary {
  background-color: var(--color-secondary);
  color: white;
  box-shadow: 0 4px 12px rgba(247, 37, 133, 0.3);
}

.btn-primary:hover, 
.btn-primary:focus {
  background-color: #e11d74;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(247, 37, 133, 0.4);
}

.btn-secondary {
  background-color: transparent;
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.5);
}

.btn-secondary:hover, 
.btn-secondary:focus {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: white;
  color: white;
}

.btn-outline {
  background-color: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

.btn-outline:hover, 
.btn-outline:focus {
  background-color: var(--color-primary);
  color: white;
}

/* Card */
.card {
  background-color: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: var(--space-lg);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.card-img {
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: var(--space-md);
}

.card-title {
  margin-bottom: var(--space-sm);
}

.card-content {
  flex-grow: 1;
}

/* Section styles */
.section {
  padding: clamp(3rem, 5vw, 6rem) 0;
}

.section-title {
  position: relative;
  margin-bottom: var(--space-xl);
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--gradient-secondary);
  margin-top: var(--space-sm);
  border-radius: var(--radius-full);
}

.section-subtitle {
  color: var(--color-gray);
  margin-top: -0.75rem;
  margin-bottom: var(--space-lg);
  font-size: 1.1rem;
}

.section-light {
  background-color: var(--color-light);
}

.section-dark {
  background-color: var(--color-dark);
  color: white;
}

.section-dark h2, 
.section-dark h3, 
.section-dark h4 {
  color: white;
}

.section-gradient {
  background: var(--gradient-primary);
  color: white;
}

.section-gradient h2, 
.section-gradient h3, 
.section-gradient h4 {
  color: white;
}

/* Feature */
.feature {
  display: flex;
  gap: var(--space-md);
}

.feature-icon {
  flex-shrink: 0;
  font-size: 1.5rem;
  color: var(--color-primary);
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(58, 12, 163, 0.1);
  border-radius: var(--radius-full);
}

.feature-content {
  flex-grow: 1;
}

.feature-title {
  margin-bottom: var(--space-xs);
}

/* Table */
.table-container {
  overflow-x: auto;
  margin-bottom: var(--space-lg);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.table {
  width: 100%;
  border-collapse: collapse;
  background-color: white;
}

.table th,
.table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.table th {
  background-color: rgba(58, 12, 163, 0.05);
  font-weight: 600;
}

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

.table-striped tr:nth-child(odd) {
  background-color: rgba(0, 0, 0, 0.02);
}

/* Lists */
.list-check, .list-arrow {
  list-style: none;
  padding: 0;
  margin-bottom: var(--space-lg);
}

.list-check li, 
.list-arrow li {
  position: relative;
  padding-left: 1.8rem;
  margin-bottom: var(--space-sm);
}

.list-check li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0.1rem;
  font-weight: bold;
  color: var(--color-success);
}

.list-arrow li::before {
  content: '→';
  position: absolute;
  left: 0;
  top: 0.1rem;
  color: var(--color-primary);
}

/* Alerts and notices */
.alert {
  padding: var(--space-md);
  margin-bottom: var(--space-lg);
  border-radius: var(--radius-md);
  border-left: 4px solid;
}

.alert-info {
  background-color: rgba(76, 201, 240, 0.1);
  border-left-color: var(--color-accent);
  color: var(--color-dark);
}

.alert-success {
  background-color: rgba(76, 175, 80, 0.1);
  border-left-color: var(--color-success);
  color: var(--color-dark);
}

.alert-warning {
  background-color: rgba(255, 152, 0, 0.1);
  border-left-color: var(--color-warning);
  color: var(--color-dark);
}

.alert-danger {
  background-color: rgba(244, 67, 54, 0.1);
  border-left-color: var(--color-danger);
  color: var(--color-dark);
}

/* Testimonial */
.testimonial {
  text-align: center;
  padding: var(--space-xl);
}

.testimonial-content {
  font-size: 1.2rem;
  font-style: italic;
  margin-bottom: var(--space-md);
}

.testimonial-author {
  font-weight: 600;
}

/* FAQ */
.faq-item {
  margin-bottom: var(--space-md);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.faq-question {
  padding: var(--space-md);
  background-color: white;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-answer {
  padding: var(--space-md);
  padding-top: 0;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

/* CTA section */
.cta-section {
  background: var(--gradient-secondary);
  color: white;
  text-align: center;
  padding: var(--space-xl) 0;
  border-radius: var(--radius-lg);
  margin: var(--space-xl) 0;
}

.cta-title {
  color: white;
  margin-bottom: var(--space-md);
}

/* Footer */
.footer {
  background-color: var(--color-dark);
  color: white;
  padding: var(--space-xl) 0 var(--space-lg);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.footer-title {
  color: white;
  margin-bottom: var(--space-md);
  font-size: 1.2rem;
}

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

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

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  transition: color var(--transition-fast);
}

.footer-links a:hover,
.footer-links a:focus {
  color: var(--color-accent);
  text-decoration: none;
}

.footer-bottom {
  text-align: center;
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
}

/* Utilities for spacing and layout */
.mt-auto {
  margin-top: auto;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

/* Media queries */
@media (max-width: 992px) {
  .container {
    padding-inline: var(--space-lg);
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }
  
  .main-nav {
    position: fixed;
    top: 0;
    left: -100%;
    width: 80%;
    height: 100vh;
    background-color: var(--color-dark);
    padding: var(--space-xl) var(--space-lg);
    z-index: 1000;
    transition: left var(--transition-base);
    overflow-y: auto;
  }
  
  .main-nav.active {
    left: 0;
  }
  
  .main-nav ul {
    flex-direction: column;
    gap: var(--space-md);
  }
  
  .btn-group {
    flex-direction: column;
  }
  
  .feature {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 576px) {
  :root {
    --container-padding: var(--space-sm);
  }
  
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.75rem;
  }
  
  .card {
    padding: var(--space-md);
  }
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation: fadeIn 0.5s ease forwards;
}

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