/**
 * Big Bunny App - Main CSS Styles
 * Version: 1.0.0
 * Mobile-first responsive design with dark purple theme
 */

/* CSS Variables */
:root {
  --s9ff-primary: #9932CC;
  --s9ff-bg: #0C0C0C;
  --s9ff-text: #FFFFFF;
  --s9ff-text-secondary: #CCCCCC;
  --s9ff-accent: #7B68EE;
  --s9ff-success: #00FF88;
  --s9ff-warning: #FFD700;
  --s9ff-error: #FF4444;
  --s9ff-border: #333333;
  --s9ff-shadow: rgba(153, 50, 204, 0.3);
  --s9ff-header-height: 60px;
  --s9ff-mobile-nav-height: 64px;
}

/* Reset and Base Styles */
* {
  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;
  background-color: var(--s9ff-bg);
  color: var(--s9ff-text);
  line-height: 1.5;
  font-size: 1.4rem;
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 { font-size: 2.4rem; }
h2 { font-size: 2.0rem; }
h3 { font-size: 1.8rem; }
h4 { font-size: 1.6rem; }
h5 { font-size: 1.4rem; }
h6 { font-size: 1.2rem; }

p {
  margin-bottom: 1rem;
  line-height: 1.6;
}

a {
  color: var(--s9ff-primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--s9ff-accent);
  text-decoration: underline;
}

/* Layout Components */
.s9ff-container {
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.s9ff-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.s9ff-grid {
  display: grid;
  gap: 1.5rem;
}

.s9ff-flex {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Header Styles */
.s9ff-header {
  background: linear-gradient(135deg, var(--s9ff-bg) 0%, #1a1a2e 100%);
  border-bottom: 1px solid var(--s9ff-border);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--s9ff-header-height);
  transition: all 0.3s ease;
}

.s9ff-header.scrolled {
  background: rgba(12, 12, 12, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px var(--s9ff-shadow);
}

.s9ff-header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.s9ff-logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--s9ff-primary);
}

.s9ff-logo-img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
}

.s9ff-header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Menu Toggle */
.s9ff-menu-toggle {
  width: 30px;
  height: 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}

.s9ff-menu-toggle span {
  width: 100%;
  height: 2px;
  background: var(--s9ff-text);
  margin: 2px 0;
  transition: 0.3s;
  transform-origin: center;
}

.s9ff-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.s9ff-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.s9ff-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* Navigation Menu */
.s9ff-nav-menu {
  position: fixed;
  top: var(--s9ff-header-height);
  right: -100%;
  width: 280px;
  height: calc(100vh - var(--s9ff-header-height));
  background: linear-gradient(180deg, var(--s9ff-bg) 0%, #1a1a2e 100%);
  transition: right 0.3s ease;
  z-index: 999;
  border-left: 1px solid var(--s9ff-border);
  overflow-y: auto;
}

.s9ff-nav-menu.active {
  right: 0;
}

.s9ff-nav-list {
  list-style: none;
  padding: 2rem 0;
}

.s9ff-nav-item {
  border-bottom: 1px solid var(--s9ff-border);
}

.s9ff-nav-link {
  display: block;
  padding: 1.5rem 2rem;
  color: var(--s9ff-text);
  font-weight: 500;
  transition: all 0.3s ease;
}

.s9ff-nav-link:hover {
  background: var(--s9ff-primary);
  color: white;
  text-decoration: none;
}

.s9ff-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.s9ff-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Button Styles */
.s9ff-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  font-size: 1.4rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  min-height: 44px;
  min-width: 44px;
}

.s9ff-btn-primary {
  background: linear-gradient(135deg, var(--s9ff-primary) 0%, var(--s9ff-accent) 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(153, 50, 204, 0.4);
}

.s9ff-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(153, 50, 204, 0.6);
  color: white;
  text-decoration: none;
}

.s9ff-btn-secondary {
  background: transparent;
  color: var(--s9ff-primary);
  border: 2px solid var(--s9ff-primary);
}

.s9ff-btn-secondary:hover {
  background: var(--s9ff-primary);
  color: white;
  text-decoration: none;
}

.s9ff-btn-small {
  padding: 0.6rem 1.2rem;
  font-size: 1.2rem;
}

.s9ff-btn-large {
  padding: 1.5rem 3rem;
  font-size: 1.6rem;
}

/* Main Content */
.s9ff-main {
  flex: 1;
  margin-top: var(--s9ff-header-height);
  padding-bottom: var(--s9ff-mobile-nav-height);
}

.s9ff-section {
  padding: 2rem 0;
}

.s9ff-section-title {
  text-align: center;
  margin-bottom: 2rem;
  color: var(--s9ff-primary);
}

/* Carousel Styles */
.s9ff-carousel {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  border-radius: 12px;
  margin-bottom: 2rem;
}

.s9ff-slide {
  position: absolute;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  cursor: pointer;
  transition: opacity 0.5s ease;
}

.s9ff-slide::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(153, 50, 204, 0.3), rgba(123, 104, 238, 0.3));
}

.s9ff-carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  margin-top: 1rem;
}

.s9ff-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--s9ff-border);
  cursor: pointer;
  transition: all 0.3s ease;
}

.s9ff-dot.active {
  background: var(--s9ff-primary);
  transform: scale(1.2);
}

/* Game Grid */
.s9ff-games-section {
  padding: 2rem 0;
}

.s9ff-games-category {
  margin-bottom: 3rem;
}

.s9ff-category-title {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  color: var(--s9ff-primary);
  border-left: 4px solid var(--s9ff-primary);
  padding-left: 1rem;
}

.s9ff-games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 1rem;
}

.s9ff-game-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid var(--s9ff-border);
  text-decoration: none;
  color: var(--s9ff-text);
}

.s9ff-game-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(153, 50, 204, 0.3);
  border-color: var(--s9ff-primary);
  color: var(--s9ff-text);
  text-decoration: none;
}

.s9ff-game-icon {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  margin-bottom: 0.5rem;
  object-fit: cover;
}

.s9ff-game-name {
  font-size: 1rem;
  font-weight: 500;
  text-align: center;
  line-height: 1.2;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Content Cards */
.s9ff-card {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  border: 1px solid var(--s9ff-border);
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 2rem;
  transition: all 0.3s ease;
}

.s9ff-card:hover {
  border-color: var(--s9ff-primary);
  box-shadow: 0 8px 25px rgba(153, 50, 204, 0.2);
}

.s9ff-card-title {
  color: var(--s9ff-primary);
  margin-bottom: 1rem;
}

.s9ff-card-content {
  line-height: 1.6;
}

/* Features List */
.s9ff-features {
  display: grid;
  gap: 1.5rem;
}

.s9ff-feature {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.5rem;
  background: rgba(153, 50, 204, 0.1);
  border-radius: 12px;
  border-left: 4px solid var(--s9ff-primary);
}

.s9ff-feature-icon {
  color: var(--s9ff-primary);
  font-size: 2rem;
  flex-shrink: 0;
}

.s9ff-feature-content h4 {
  color: var(--s9ff-primary);
  margin-bottom: 0.5rem;
}

/* RTP Stats */
.s9ff-rtp-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}

.s9ff-rtp-stat {
  text-align: center;
  padding: 1.5rem 1rem;
  background: linear-gradient(135deg, var(--s9ff-primary), var(--s9ff-accent));
  border-radius: 12px;
  color: white;
}

.s9ff-rtp-value {
  font-size: 2rem;
  font-weight: 700;
  display: block;
  margin-bottom: 0.5rem;
}

.s9ff-rtp-label {
  font-size: 1.2rem;
  opacity: 0.9;
}

/* FAQ Section */
.s9ff-faq {
  margin: 2rem 0;
}

.s9ff-faq-item {
  margin-bottom: 1rem;
  border: 1px solid var(--s9ff-border);
  border-radius: 8px;
  overflow: hidden;
}

.s9ff-faq-question {
  background: var(--s9ff-border);
  padding: 1.5rem;
  cursor: pointer;
  font-weight: 600;
  color: var(--s9ff-primary);
  transition: background 0.3s ease;
}

.s9ff-faq-question:hover {
  background: rgba(153, 50, 204, 0.1);
}

.s9ff-faq-answer {
  padding: 1.5rem;
  line-height: 1.6;
}

/* Mobile Bottom Navigation */
.s9ff-mobile-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, var(--s9ff-bg) 0%, #1a1a2e 100%);
  border-top: 1px solid var(--s9ff-border);
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: var(--s9ff-mobile-nav-height);
  z-index: 999;
  padding: 0.5rem;
}

.s9ff-nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  padding: 0.5rem;
  text-decoration: none;
  color: var(--s9ff-text-secondary);
  transition: all 0.3s ease;
  min-width: 44px;
  min-height: 44px;
  border-radius: 8px;
}

.s9ff-nav-btn:hover,
.s9ff-nav-btn.active {
  color: var(--s9ff-primary);
  background: rgba(153, 50, 204, 0.1);
  text-decoration: none;
  transform: scale(1.05);
}

.s9ff-nav-icon {
  font-size: 2rem;
}

.s9ff-nav-text {
  font-size: 1rem;
  font-weight: 500;
}

/* Partners Section */
.s9ff-partners {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin: 2rem 0;
  padding: 2rem;
  background: rgba(153, 50, 204, 0.05);
  border-radius: 12px;
}

.s9ff-partner-logo {
  width: 40px;
  height: 40px;
  opacity: 0.6;
  transition: opacity 0.3s ease;
  border-radius: 6px;
}

.s9ff-partner-logo:hover {
  opacity: 1;
}

/* Footer */
.s9ff-footer {
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 100%);
  border-top: 1px solid var(--s9ff-border);
  padding: 3rem 0 2rem;
  margin-top: 3rem;
}

.s9ff-footer-content {
  text-align: center;
}

.s9ff-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin: 2rem 0;
}

.s9ff-footer-link {
  color: var(--s9ff-text-secondary);
  font-size: 1.3rem;
  transition: color 0.3s ease;
}

.s9ff-footer-link:hover {
  color: var(--s9ff-primary);
}

.s9ff-copyright {
  color: var(--s9ff-text-secondary);
  font-size: 1.2rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--s9ff-border);
}

/* Utility Classes */
.s9ff-text-center { text-align: center; }
.s9ff-text-left { text-align: left; }
.s9ff-text-right { text-align: right; }

.s9ff-mt-1 { margin-top: 1rem; }
.s9ff-mt-2 { margin-top: 2rem; }
.s9ff-mb-1 { margin-bottom: 1rem; }
.s9ff-mb-2 { margin-bottom: 2rem; }

.s9ff-p-1 { padding: 1rem; }
.s9ff-p-2 { padding: 2rem; }

.s9ff-hidden { display: none; }
.s9ff-visible { display: block; }

/* Loading Spinner */
.s9ff-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(12, 12, 12, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.s9ff-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid var(--s9ff-border);
  border-top: 4px solid var(--s9ff-primary);
  border-radius: 50%;
  animation: s9ff-spin 1s linear infinite;
}

@keyframes s9ff-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Tooltip */
.s9ff-tooltip {
  position: absolute;
  background: var(--s9ff-bg);
  color: var(--s9ff-text);
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-size: 1.2rem;
  border: 1px solid var(--s9ff-border);
  z-index: 1001;
  pointer-events: none;
}

/* Responsive Design */
@media (min-width: 480px) {
  .s9ff-games-grid {
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  }
  
  .s9ff-game-icon {
    width: 56px;
    height: 56px;
  }
  
  h1 { font-size: 2.8rem; }
  h2 { font-size: 2.4rem; }
}

@media (min-width: 768px) {
  .s9ff-container {
    max-width: 768px;
  }
  
  .s9ff-mobile-nav {
    display: none;
  }
  
  .s9ff-main {
    padding-bottom: 0;
  }
  
  .s9ff-games-grid {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  }
}

/* Print Styles */
@media print {
  .s9ff-header,
  .s9ff-mobile-nav,
  .s9ff-menu-overlay {
    display: none;
  }
  
  .s9ff-main {
    margin-top: 0;
  }
  
  body {
    background: white;
    color: black;
  }
}