/**
 * bwin bonus code - Main Stylesheet
 * Version: 1.0.0
 * Mobile-first responsive design
 */

/* Root variables */
:root {
  --s90d-primary: #CD5C5C;
  --s90d-secondary: #DEB887;
  --s90d-dark: #333333;
  --s90d-accent: #CD853F;
  --s90d-highlight: #B22222;
  --s90d-bg: #1a1a1a;
  --s90d-bg-light: #2a2a2a;
  --s90d-text: #f5f5f5;
  --s90d-text-muted: #b0b0b0;
  --s90d-border: #CD853F;
  --s90d-shadow: rgba(0, 0, 0, 0.3);
  --s90d-gradient: linear-gradient(135deg, #CD5C5C 0%, #B22222 100%);
  --s90d-radius: 8px;
  --s90d-transition: all 0.3s ease;
}

/* Base reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 62.5%;
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  font-size: 1.6rem;
  line-height: 1.5;
  color: var(--s90d-text);
  background-color: var(--s90d-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Container */
.s90d-container {
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1rem;
  width: 100%;
}

.s90d-wrapper {
  padding-bottom: 80px;
}

/* Header */
.s90d-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--s90d-dark);
  border-bottom: 2px solid var(--s90d-primary);
  z-index: 1000;
  transition: var(--s90d-transition);
}

.s90d-header.s90d-scrolled {
  box-shadow: 0 4px 12px var(--s90d-shadow);
}

.s90d-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 1rem;
  max-width: 430px;
  margin: 0 auto;
}

.s90d-logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  color: var(--s90d-text);
  font-size: 1.8rem;
  font-weight: 700;
}

.s90d-logo-icon {
  width: 28px;
  height: 28px;
  border-radius: 4px;
}

.s90d-header-actions {
  display: flex;
  gap: 0.8rem;
  align-items: center;
}

.s90d-btn {
  padding: 0.6rem 1.2rem;
  border: none;
  border-radius: var(--s90d-radius);
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--s90d-transition);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
}

.s90d-btn-primary {
  background: var(--s90d-gradient);
  color: white;
}

.s90d-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(205, 92, 92, 0.4);
}

.s90d-btn-secondary {
  background: transparent;
  color: var(--s90d-secondary);
  border: 2px solid var(--s90d-secondary);
}

.s90d-btn-secondary:hover {
  background: var(--s90d-secondary);
  color: var(--s90d-dark);
}

.s90d-menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.s90d-menu-toggle span {
  display: block;
  width: 24px;
  height: 3px;
  background: var(--s90d-primary);
  border-radius: 2px;
  transition: var(--s90d-transition);
}

/* Mobile Menu */
.s90d-mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 320px;
  height: 100vh;
  background: var(--s90d-dark);
  z-index: 9999;
  transition: right 0.3s ease;
  overflow-y: auto;
  border-left: 2px solid var(--s90d-primary);
}

.s90d-mobile-menu.s90d-menu-open {
  right: 0;
}

.s90d-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  border-bottom: 2px solid var(--s90d-bg-light);
}

.s90d-menu-close {
  background: none;
  border: none;
  color: var(--s90d-text);
  font-size: 2rem;
  cursor: pointer;
  padding: 0.5rem;
}

.s90d-menu-nav {
  padding: 1rem 0;
}

.s90d-menu-nav a {
  display: block;
  padding: 1rem 1.5rem;
  color: var(--s90d-text);
  text-decoration: none;
  font-size: 1.4rem;
  border-left: 3px solid transparent;
  transition: var(--s90d-transition);
}

.s90d-menu-nav a:hover {
  background: var(--s90d-bg-light);
  border-left-color: var(--s90d-primary);
  color: var(--s90d-secondary);
}

/* Carousel */
.s90d-carousel {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  margin-top: 60px;
}

.s90d-carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.s90d-carousel-slide.s90d-active {
  opacity: 1;
}

.s90d-carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Content sections */
.s90d-section {
  padding: 2rem 0;
  border-bottom: 1px solid var(--s90d-bg-light);
}

.s90d-section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--s90d-secondary);
  margin-bottom: 1.5rem;
  text-align: center;
}

.s90d-section-content {
  color: var(--s90d-text-muted);
  line-height: 1.8;
}

.s90d-section-content p {
  margin-bottom: 1rem;
}

.s90d-section-content a {
  color: var(--s90d-primary);
  text-decoration: none;
  font-weight: 600;
}

.s90d-section-content a:hover {
  text-decoration: underline;
  color: var(--s90d-secondary);
}

/* Game Grid */
.s90d-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  padding: 1rem 0;
}

.s90d-game-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--s90d-text);
  transition: var(--s90d-transition);
  cursor: pointer;
}

.s90d-game-item:hover {
  transform: scale(1.05);
}

.s90d-game-item.s90d-touching {
  transform: scale(0.95);
}

.s90d-game-icon {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--s90d-radius);
  background: var(--s90d-bg-light);
}

.s90d-game-name {
  font-size: 1rem;
  text-align: center;
  line-height: 1.3;
  word-wrap: break-word;
}

.s90d-game-category {
  padding: 1rem 0;
  background: var(--s90d-bg-light);
  margin-bottom: 1rem;
}

.s90d-category-title {
  font-size: 1.6rem;
  color: var(--s90d-primary);
  padding: 0 1rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

/* Card Component */
.s90d-card {
  background: var(--s90d-bg-light);
  border-radius: var(--s90d-radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border: 1px solid var(--s90d-border);
}

.s90d-card-title {
  font-size: 1.6rem;
  color: var(--s90d-secondary);
  margin-bottom: 1rem;
  font-weight: 600;
}

.s90d-card-content {
  color: var(--s90d-text-muted);
  line-height: 1.8;
}

/* Links */
.s90d-link-btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  background: var(--s90d-gradient);
  color: white;
  text-decoration: none;
  border-radius: var(--s90d-radius);
  font-weight: 600;
  margin: 1rem 0;
  transition: var(--s90d-transition);
}

.s90d-link-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(205, 92, 92, 0.4);
}

/* Footer */
.s90d-footer {
  background: var(--s90d-dark);
  border-top: 2px solid var(--s90d-primary);
  padding: 2rem 0 1rem;
  margin-top: 2rem;
}

.s90d-footer-content {
  text-align: center;
  margin-bottom: 1.5rem;
}

.s90d-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.s90d-footer-links a {
  color: var(--s90d-secondary);
  text-decoration: none;
  font-size: 1.2rem;
}

.s90d-footer-links a:hover {
  color: var(--s90d-primary);
}

.s90d-partners {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding: 0 1rem;
}

.s90d-partner-logo {
  height: 30px;
  width: auto;
  opacity: 0.8;
  transition: var(--s90d-transition);
}

.s90d-partner-logo:hover {
  opacity: 1;
}

.s90d-copyright {
  text-align: center;
  color: var(--s90d-text-muted);
  font-size: 1.2rem;
  padding: 1rem;
}

/* Bottom Navigation */
.s90d-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: var(--s90d-dark);
  border-top: 2px solid var(--s90d-primary);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 -2px 8px var(--s90d-shadow);
}

.s90d-nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 60px;
  min-height: 60px;
  color: var(--s90d-text-muted);
  text-decoration: none;
  transition: var(--s90d-transition);
  padding: 0.5rem;
}

.s90d-nav-btn:hover {
  color: var(--s90d-secondary);
  background: var(--s90d-bg-light);
}

.s90d-nav-btn.s90d-nav-active {
  color: var(--s90d-primary);
}

.s90d-nav-btn.s90d-nav-active .s90d-nav-icon {
  color: var(--s90d-secondary);
}

.s90d-nav-icon {
  font-size: 22px;
  color: var(--s90d-text-muted);
}

.s90d-nav-text {
  font-size: 10px;
  font-weight: 500;
}

/* Desktop styles */
@media (min-width: 769px) {
  .s90d-container {
    max-width: 1200px;
  }

  .s90d-bottom-nav {
    display: none;
  }

  .s90d-wrapper {
    padding-bottom: 2rem;
  }

  .s90d-menu-toggle {
    display: none;
  }

  .s90d-game-grid {
    grid-template-columns: repeat(8, 1fr);
  }
}

/* Utility classes */
.s90d-text-center {
  text-align: center;
}

.s90d-mb-1 {
  margin-bottom: 1rem;
}

.s90d-mb-2 {
  margin-bottom: 2rem;
}

.s90d-mt-1 {
  margin-top: 1rem;
}

.s90d-mt-2 {
  margin-top: 2rem;
}

.s90d-highlight {
  color: var(--s90d-primary);
  font-weight: 600;
}
