/* Saklagame Gaming Platform - Design System CSS */
/* Color Palette: #DA70D6 | #273746 | #CCCCCC */
/* All classes use v784- prefix to avoid conflicts */

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 62.5%; /* 1rem = 10px */
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  font-size: 1.4rem;
  line-height: 1.5;
  color: #273746;
  background-color: #ffffff;
  overflow-x: hidden;
}

/* CSS Variables */
:root {
  --v784-primary: #DA70D6;
  --v784-dark: #273746;
  --v784-light: #CCCCCC;
  --v784-white: #ffffff;
  --v784-black: #000000;
  --v784-bg-light: #f8f9fa;
  --v784-border: #e9ecef;
  --v784-shadow: 0 2px 4px rgba(39, 55, 70, 0.1);
  --v784-shadow-lg: 0 4px 20px rgba(39, 55, 70, 0.15);
  --v784-radius: 0.8rem;
  --v784-radius-sm: 0.4rem;
  --v784-radius-lg: 1.6rem;
  --v784-transition: all 0.3s ease;
  --v784-max-width: 430px;
  --v784-gradient: linear-gradient(135deg, #DA70D6, #273746);
}

/* Container and Layout */
.v784-wrapper {
  max-width: var(--v784-max-width);
  margin: 0 auto;
  background-color: var(--v784-white);
  min-height: 100vh;
  position: relative;
}

.v784-container {
  padding: 0 1.5rem;
  width: 100%;
}

/* Header Styles */
.v784-header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--v784-max-width);
  background: var(--v784-gradient);
  z-index: 1000;
  transition: var(--v784-transition);
  box-shadow: var(--v784-shadow);
}

.v784-header-scrolled {
  background: rgba(218, 112, 214, 0.95);
  backdrop-filter: blur(10px);
}

.v784-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  height: 6rem;
}

.v784-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--v784-white);
  font-weight: bold;
  font-size: 1.8rem;
}

.v784-logo img {
  width: 3.2rem;
  height: 3.2rem;
  margin-right: 0.8rem;
  border-radius: var(--v784-radius-sm);
}

.v784-nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Button Styles */
.v784-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  border: none;
  border-radius: var(--v784-radius);
  font-size: 1.4rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: var(--v784-transition);
  min-height: 4.4rem;
  background: var(--v784-primary);
  color: var(--v784-white);
  box-shadow: var(--v784-shadow);
}

.v784-btn:hover {
  transform: translateY(-0.2rem);
  box-shadow: var(--v784-shadow-lg);
  opacity: 0.9;
}

.v784-btn-sm {
  padding: 0.8rem 1.6rem;
  font-size: 1.2rem;
  min-height: 3.6rem;
}

.v784-btn-outline {
  background: transparent;
  border: 0.2rem solid var(--v784-primary);
  color: var(--v784-white);
}

.v784-cta-btn {
  background: var(--v784-gradient);
  color: var(--v784-white);
  font-size: 1.6rem;
  padding: 1.5rem 3rem;
  border-radius: var(--v784-radius-lg);
  box-shadow: var(--v784-shadow-lg);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: bold;
}

.v784-promo-btn {
  background: var(--v784-gradient);
  color: var(--v784-white);
  border: none;
  font-weight: 600;
  position: relative;
  overflow: hidden;
}

.v784-promo-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.5s;
}

.v784-promo-btn:hover::before {
  left: 100%;
}

/* Hamburger Menu */
.v784-hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 3rem;
  height: 3rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.v784-hamburger span {
  width: 2rem;
  height: 0.2rem;
  background-color: var(--v784-white);
  margin: 0.2rem 0;
  transition: var(--v784-transition);
  border-radius: 0.1rem;
}

.v784-hamburger-active span:nth-child(1) {
  transform: rotate(45deg) translate(0.5rem, 0.5rem);
}

.v784-hamburger-active span:nth-child(2) {
  opacity: 0;
}

.v784-hamburger-active span:nth-child(3) {
  transform: rotate(-45deg) translate(0.5rem, -0.5rem);
}

/* Mobile Menu */
.v784-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1001;
  opacity: 0;
  visibility: hidden;
  transition: var(--v784-transition);
}

.v784-overlay-active {
  opacity: 1;
  visibility: visible;
}

.v784-mobile-menu {
  position: fixed;
  top: 6rem;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--v784-max-width);
  background: var(--v784-white);
  z-index: 1002;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  box-shadow: var(--v784-shadow-lg);
}

.v784-menu-active {
  max-height: 50rem;
}

.v784-menu-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.v784-menu-list li {
  border-bottom: 0.1rem solid var(--v784-border);
}

.v784-nav-link {
  display: flex;
  align-items: center;
  padding: 1.5rem 2rem;
  text-decoration: none;
  color: var(--v784-dark);
  font-size: 1.4rem;
  transition: var(--v784-transition);
}

.v784-nav-link:hover,
.v784-nav-link.v784-active {
  background-color: var(--v784-primary);
  color: var(--v784-white);
}

.v784-nav-link i {
  margin-right: 1rem;
  width: 2rem;
  font-size: 1.6rem;
}

.v784-menu-actions {
  padding: 2rem;
  background-color: var(--v784-bg-light);
}

/* Main Content */
.v784-main {
  margin-top: 6rem;
  min-height: calc(100vh - 6rem);
}

.v784-section {
  padding: 2rem 0;
}

/* Card Styles */
.v784-card {
  background: var(--v784-white);
  border-radius: var(--v784-radius-lg);
  box-shadow: var(--v784-shadow);
  padding: 2rem;
  margin-bottom: 2rem;
  border: 0.1rem solid var(--v784-border);
}

/* Carousel Styles */
.v784-carousel {
  position: relative;
  width: 100%;
  height: 20rem;
  overflow: hidden;
  border-radius: var(--v784-radius-lg);
  margin-bottom: 2rem;
}

.v784-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease;
  cursor: pointer;
}

.v784-slide.v784-active {
  opacity: 1;
}

.v784-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.v784-carousel-indicators {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
}

.v784-indicator {
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: var(--v784-transition);
}

.v784-indicator.v784-active {
  background: var(--v784-white);
}

/* Game Grid */
.v784-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin: 2rem 0;
}

.v784-game-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem;
  background: var(--v784-white);
  border-radius: var(--v784-radius);
  box-shadow: var(--v784-shadow);
  transition: var(--v784-transition);
  cursor: pointer;
  text-decoration: none;
  color: var(--v784-dark);
}

.v784-game-item:hover {
  transform: translateY(-0.2rem);
  box-shadow: var(--v784-shadow-lg);
}

.v784-game-item img {
  width: 4rem;
  height: 4rem;
  border-radius: var(--v784-radius-sm);
  margin-bottom: 0.5rem;
  object-fit: cover;
}

.v784-game-item span {
  font-size: 1rem;
  text-align: center;
  line-height: 1.2;
  font-weight: 500;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  color: var(--v784-dark);
  margin-bottom: 1rem;
  font-weight: 600;
  line-height: 1.3;
}

h1 {
  font-size: 2.4rem;
  margin-bottom: 1.5rem;
}

h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

h3 {
  font-size: 1.8rem;
}

h4 {
  font-size: 1.6rem;
}

p {
  margin-bottom: 1rem;
  line-height: 1.6;
}

/* Utility Classes */
.v784-text-center {
  text-align: center;
}

.v784-mb-0 { margin-bottom: 0; }
.v784-mb-1 { margin-bottom: 1rem; }
.v784-mb-2 { margin-bottom: 2rem; }
.v784-mb-3 { margin-bottom: 3rem; }

.v784-mt-0 { margin-top: 0; }
.v784-mt-1 { margin-top: 1rem; }
.v784-mt-2 { margin-top: 2rem; }
.v784-mt-3 { margin-top: 3rem; }

/* Feature List */
.v784-feature-list {
  list-style: none;
  padding: 0;
}

.v784-feature-list li {
  display: flex;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 0.1rem solid var(--v784-border);
}

.v784-feature-list li:last-child {
  border-bottom: none;
}

.v784-feature-list li i {
  margin-right: 1rem;
  color: var(--v784-primary);
  width: 2rem;
  text-align: center;
}

/* Grid System */
.v784-grid {
  display: grid;
  gap: 2rem;
}

.v784-grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.v784-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.v784-grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

/* Responsive adjustments */
@media (max-width: 360px) {
  .v784-grid-4 {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .v784-grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .v784-game-item img {
    width: 3.5rem;
    height: 3.5rem;
  }
  
  .v784-game-item span {
    font-size: 0.9rem;
  }
}

/* Bottom Navigation */
.v784-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--v784-max-width);
  background: var(--v784-gradient);
  z-index: 1000;
  height: 6rem;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
}

.v784-bottom-nav-container {
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 100%;
  padding: 0 1rem;
}

.v784-bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: var(--v784-white);
  font-size: 1rem;
  transition: var(--v784-transition);
  padding: 0.5rem;
  border-radius: var(--v784-radius-sm);
  min-width: 5rem;
  opacity: 0.8;
}

.v784-bottom-nav-item:hover,
.v784-bottom-nav-item.v784-active {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-0.2rem);
  opacity: 1;
}

.v784-bottom-nav-item i {
  font-size: 2rem;
  margin-bottom: 0.2rem;
}

/* Footer */
.v784-footer {
  background: var(--v784-dark);
  color: var(--v784-white);
  padding: 3rem 0 8rem;
  margin-top: 3rem;
}

.v784-footer-content {
  padding: 0 1.5rem;
}

.v784-footer h4 {
  color: var(--v784-primary);
  margin-bottom: 1rem;
  font-size: 1.6rem;
}

.v784-footer-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.v784-footer-link {
  color: var(--v784-white);
  text-decoration: none;
  padding: 0.5rem 0;
  border-bottom: 0.1rem solid transparent;
  transition: var(--v784-transition);
}

.v784-footer-link:hover {
  color: var(--v784-primary);
  border-bottom-color: var(--v784-primary);
}

.v784-partners {
  margin-bottom: 2rem;
}

.v784-partners-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  margin-top: 1rem;
}

.v784-partner-logo {
  width: 100%;
  height: 4rem;
  object-fit: contain;
  opacity: 0.7;
  transition: var(--v784-transition);
}

.v784-partner-logo:hover {
  opacity: 1;
}

.v784-copyright {
  text-align: center;
  padding-top: 2rem;
  border-top: 0.1rem solid rgba(255,255,255,0.1);
  font-size: 1.2rem;
  opacity: 0.8;
}

/* Loading Spinner */
.v784-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.v784-spinner {
  width: 4rem;
  height: 4rem;
  border: 0.4rem solid var(--v784-light);
  border-top: 0.4rem solid var(--v784-primary);
  border-radius: 50%;
  animation: v784-spin 1s linear infinite;
}

@keyframes v784-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Fade in animation */
@keyframes v784-fade-in {
  from {
    opacity: 0;
    transform: translateY(2rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.v784-fade-in {
  opacity: 0;
  transform: translateY(2rem);
  transition: all 0.6s ease;
}

/* Responsive Design */
@media (min-width: 431px) {
  .v784-wrapper {
    max-width: var(--v784-max-width);
    margin: 0 auto;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --v784-primary: #000000;
    --v784-dark: #000000;
    --v784-light: #ffffff;
  }
}