/**
 * ok laro - Core Stylesheet
 * All classes prefixed with w6152- for namespace isolation
 * @version 1.0.0
 */

/* CSS Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* Color palette */
  --w6152-primary: #80CBC4;
  --w6152-secondary: #00B8D4;
  --w6152-accent: #D2691E;
  --w6152-highlight: #FFDEAD;
  --w6152-dark: #2E4057;
  --w6152-gray: #495057;
  --w6152-light: #f8f9fa;
  --w6152-white: #ffffff;
  --w6152-text: #212529;
  --w6152-text-muted: #6c757d;

  /* Spacing */
  --w6152-spacing-xs: 0.25rem;
  --w6152-spacing-sm: 0.5rem;
  --w6152-spacing-md: 1rem;
  --w6152-spacing-lg: 1.5rem;
  --w6152-spacing-xl: 2rem;

  /* Border radius */
  --w6152-radius-sm: 4px;
  --w6152-radius-md: 8px;
  --w6152-radius-lg: 12px;

  /* Shadows */
  --w6152-shadow-sm: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
  --w6152-shadow-md: 0 4px 6px rgba(0,0,0,0.1);
  --w6152-shadow-lg: 0 10px 20px rgba(0,0,0,0.15);
}

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.4rem;
  line-height: 1.5;
  color: var(--w6152-text);
  background-color: var(--w6152-light);
  min-height: 100vh;
  overflow-x: hidden;
}

/* Layout */
.w6152-container {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 var(--w6152-spacing-md);
}

.w6152-wrapper {
  padding-top: 70px;
  padding-bottom: 80px;
}

@media (max-width: 768px) {
  .w6152-wrapper {
    padding-bottom: 80px;
  }
}

@media (min-width: 769px) {
  .w6152-wrapper {
    padding-bottom: var(--w6152-spacing-xl);
  }
}

/* Header */
.w6152-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(135deg, var(--w6152-dark) 0%, var(--w6152-gray) 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--w6152-spacing-md);
  box-shadow: var(--w6152-shadow-md);
  z-index: 1000;
}

.w6152-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--w6152-white);
  font-weight: 700;
  font-size: 1.8rem;
}

.w6152-logo img {
  width: 32px;
  height: 32px;
  margin-right: var(--w6152-spacing-sm);
  border-radius: var(--w6152-radius-sm);
}

.w6152-header-actions {
  display: flex;
  gap: var(--w6152-spacing-sm);
}

.w6152-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  font-size: 1.3rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--w6152-radius-md);
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}

.w6152-btn-register {
  background: var(--w6152-primary);
  color: var(--w6152-dark);
}

.w6152-btn-register:hover {
  background: var(--w6152-secondary);
  transform: translateY(-2px);
}

.w6152-btn-login {
  background: transparent;
  color: var(--w6152-white);
  border: 2px solid var(--w6152-primary);
}

.w6152-btn-login:hover {
  background: var(--w6152-primary);
  color: var(--w6152-dark);
}

.w6152-menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  width: 28px;
  height: 24px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}

.w6152-menu-toggle span {
  width: 100%;
  height: 3px;
  background: var(--w6152-white);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Mobile Menu */
.w6152-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 9998;
}

.w6152-menu-overlay.w6152-overlay-active {
  opacity: 1;
  visibility: visible;
}

.w6152-mobile-menu {
  position: fixed;
  top: 0;
  right: -280px;
  width: 280px;
  height: 100vh;
  background: var(--w6152-dark);
  padding: var(--w6152-spacing-lg) var(--w6152-spacing-md);
  transition: right 0.3s ease;
  overflow-y: auto;
  z-index: 9999;
}

.w6152-mobile-menu.w6152-menu-active {
  right: 0;
}

.w6152-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--w6152-spacing-lg);
  padding-bottom: var(--w6152-spacing-md);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.w6152-menu-close {
  background: transparent;
  border: none;
  color: var(--w6152-white);
  font-size: 2rem;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.w6152-menu-nav a {
  display: block;
  padding: var(--w6152-spacing-md) 0;
  color: var(--w6152-white);
  text-decoration: none;
  font-size: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: color 0.2s ease;
}

.w6152-menu-nav a:hover {
  color: var(--w6152-primary);
}

/* Carousel */
.w6152-carousel {
  position: relative;
  width: 100%;
  height: 180px;
  margin: var(--w6152-spacing-md) 0;
  border-radius: var(--w6152-radius-lg);
  overflow: hidden;
  box-shadow: var(--w6152-shadow-md);
}

.w6152-carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.w6152-carousel-slide.w6152-slide-active {
  opacity: 1;
}

.w6152-carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.w6152-carousel-dots {
  position: absolute;
  bottom: var(--w6152-spacing-md);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: var(--w6152-spacing-sm);
}

.w6152-carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
}

.w6152-carousel-dot.w6152-dot-active {
  background: var(--w6152-white);
  width: 24px;
  border-radius: 4px;
}

/* Game Grid */
.w6152-game-section {
  margin: var(--w6152-spacing-lg) 0;
}

.w6152-section-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--w6152-dark);
  margin: var(--w6152-spacing-lg) 0 var(--w6152-spacing-md);
  display: flex;
  align-items: center;
  gap: var(--w6152-spacing-sm);
}

.w6152-section-title i {
  color: var(--w6152-accent);
}

.w6152-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--w6152-spacing-sm);
}

.w6152-game-item {
  position: relative;
  background: var(--w6152-white);
  border-radius: var(--w6152-radius-md);
  overflow: hidden;
  box-shadow: var(--w6152-shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
  text-decoration: none;
  display: block;
}

.w6152-game-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--w6152-shadow-md);
}

.w6152-game-item img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
}

.w6152-game-name {
  padding: var(--w6152-spacing-xs);
  font-size: 1rem;
  font-weight: 600;
  color: var(--w6152-dark);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.w6152-game-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

/* Content Cards */
.w6152-card {
  background: var(--w6152-white);
  border-radius: var(--w6152-radius-lg);
  padding: var(--w6152-spacing-lg);
  margin: var(--w6152-spacing-md) 0;
  box-shadow: var(--w6152-shadow-sm);
}

.w6152-card-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--w6152-dark);
  margin-bottom: var(--w6152-spacing-md);
}

.w6152-card-content {
  color: var(--w6152-text-muted);
  line-height: 1.6;
}

.w6152-card-content p {
  margin-bottom: var(--w6152-spacing-md);
}

.w6152-link {
  color: var(--w6152-secondary);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.w6152-link:hover {
  color: var(--w6152-accent);
  text-decoration: underline;
}

.w6152-btn-promo {
  display: inline-block;
  background: linear-gradient(135deg, var(--w6152-accent) 0%, var(--w6152-secondary) 100%);
  color: var(--w6152-white);
  padding: 0.75rem 1.5rem;
  border-radius: var(--w6152-radius-md);
  text-decoration: none;
  font-weight: 700;
  margin: var(--w6152-spacing-sm) 0;
  box-shadow: var(--w6152-shadow-md);
  transition: all 0.3s ease;
}

.w6152-btn-promo:hover {
  transform: translateY(-2px);
  box-shadow: var(--w6152-shadow-lg);
}

/* Footer */
.w6152-footer {
  background: var(--w6152-dark);
  color: var(--w6152-white);
  padding: var(--w6152-spacing-xl) var(--w6152-spacing-md) 100px;
  margin-top: var(--w6152-spacing-xl);
}

.w6152-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--w6152-spacing-md);
  margin-bottom: var(--w6152-spacing-lg);
}

.w6152-footer-link {
  color: var(--w6152-primary);
  text-decoration: none;
  font-size: 1.3rem;
}

.w6152-footer-link:hover {
  color: var(--w6152-highlight);
}

.w6152-partners {
  display: flex;
  flex-wrap: wrap;
  gap: var(--w6152-spacing-md);
  justify-content: center;
  margin: var(--w6152-spacing-lg) 0;
}

.w6152-partner-logo {
  width: 50px;
  height: 30px;
  object-fit: contain;
  opacity: 0.7;
  filter: grayscale(100%);
  transition: all 0.3s ease;
}

.w6152-partner-logo:hover {
  opacity: 1;
  filter: grayscale(0%);
}

.w6152-copyright {
  text-align: center;
  color: var(--w6152-text-muted);
  font-size: 1.2rem;
  margin-top: var(--w6152-spacing-lg);
}

/* Bottom Navigation */
.w6152-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(180deg, var(--w6152-gray) 0%, var(--w6152-dark) 100%);
  display: flex;
  justify-content: space-around;
  align-items: center;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
  z-index: 1000;
}

.w6152-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 60px;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.7);
  transition: all 0.3s ease;
  padding: var(--w6152-spacing-xs);
}

.w6152-nav-item:hover {
  color: var(--w6152-primary);
  transform: scale(1.1);
}

.w6152-nav-item.w6152-nav-active {
  color: var(--w6152-primary);
}

.w6152-nav-icon {
  font-size: 24px;
  margin-bottom: 2px;
}

.w6152-nav-label {
  font-size: 10px;
  font-weight: 500;
}

@media (min-width: 769px) {
  .w6152-bottom-nav {
    display: none;
  }

  .w6152-footer {
    padding-bottom: var(--w6152-spacing-xl);
  }
}

/* Typography */
h1 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--w6152-dark);
  margin: var(--w6152-spacing-md) 0;
  line-height: 1.3;
}

h2 {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--w6152-dark);
  margin: var(--w6152-spacing-lg) 0 var(--w6152-spacing-md);
}

h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--w6152-gray);
  margin: var(--w6152-spacing-md) 0 var(--w6152-spacing-sm);
}

p {
  margin-bottom: var(--w6152-spacing-md);
}

/* Utilities */
.w6152-text-center {
  text-align: center;
}

.w6152-mt-md {
  margin-top: var(--w6152-spacing-md);
}

.w6152-mb-md {
  margin-bottom: var(--w6152-spacing-md);
}

.w6152-py-lg {
  padding-top: var(--w6152-spacing-lg);
  padding-bottom: var(--w6152-spacing-lg);
}
