/* Spin PH Casino - Mobile First CSS Stylesheet */
/* All classes use w2f14 prefix for namespace isolation */

/* CSS Variables - Color Scheme */
:root {
  --w2f14-primary: #F8F8FF;
  --w2f14-secondary: #1A1A2E;
  --w2f14-accent: #F0F0F0;
  --w2f14-text: #333333;
  --w2f14-text-light: #666666;
  --w2f14-success: #28a745;
  --w2f14-warning: #ffc107;
  --w2f14-danger: #dc3545;
  --w2f14-info: #17a2b8;
  --w2f14-shadow: rgba(0, 0, 0, 0.1);
  --w2f14-shadow-hover: rgba(0, 0, 0, 0.15);
  --w2f14-border: #e0e0e0;
  --w2f14-border-radius: 8px;
  --w2f14-transition: all 0.3s ease;
}

/* 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, 'Helvetica Neue', Arial, sans-serif;
  font-size: 1.6rem;
  line-height: 1.5;
  color: var(--w2f14-text);
  background: linear-gradient(135deg, var(--w2f14-secondary) 0%, #16213e 100%);
  min-height: 100vh;
  overflow-x: hidden;
}

/* Mobile-first responsive design */
@media (max-width: 768px) {
  body {
    padding-bottom: 80px;
  }
}

/* Container and Layout */
.w2f14-container {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.w2f14-wrapper {
  background: var(--w2f14-primary);
  min-height: 100vh;
  border-radius: 0;
}

.w2f14-grid {
  display: grid;
  gap: 1.5rem;
}

.w2f14-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.w2f14-flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.w2f14-flex-col {
  display: flex;
  flex-direction: column;
}

/* Typography */
.w2f14-h1 {
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--w2f14-text);
  margin-bottom: 1.5rem;
  line-height: 1.3;
}

.w2f14-h2 {
  font-size: 2rem;
  font-weight: 600;
  color: var(--w2f14-text);
  margin-bottom: 1.2rem;
  line-height: 1.4;
}

.w2f14-h3 {
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--w2f14-text);
  margin-bottom: 1rem;
  line-height: 1.4;
}

.w2f14-text {
  font-size: 1.6rem;
  color: var(--w2f14-text);
  line-height: 1.5;
  margin-bottom: 1rem;
}

.w2f14-text-small {
  font-size: 1.4rem;
  color: var(--w2f14-text-light);
  line-height: 1.4;
}

/* Header and Navigation */
.w2f14-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, var(--w2f14-secondary) 0%, #16213e 100%);
  backdrop-filter: blur(10px);
  z-index: 1000;
  padding: 1rem 0;
  box-shadow: 0 2px 10px var(--w2f14-shadow);
}

.w2f14-header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
}

.w2f14-logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 2rem;
  font-weight: 700;
  color: var(--w2f14-primary);
  text-decoration: none;
}

.w2f14-logo img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
}

.w2f14-header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Buttons */
.w2f14-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  border: none;
  border-radius: var(--w2f14-border-radius);
  font-size: 1.6rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: var(--w2f14-transition);
  min-height: 44px;
  min-width: 44px;
  touch-action: manipulation;
}

.w2f14-btn-primary {
  background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
  color: white;
  box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
}

.w2f14-btn-primary:hover {
  background: linear-gradient(135deg, #45a049 0%, #3d8b40 100%);
  box-shadow: 0 4px 12px rgba(76, 175, 80, 0.4);
  transform: translateY(-2px);
}

.w2f14-btn-secondary {
  background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
  color: white;
  box-shadow: 0 2px 8px rgba(33, 150, 243, 0.3);
}

.w2f14-btn-secondary:hover {
  background: linear-gradient(135deg, #1976D2 0%, #0d47a1 100%);
  box-shadow: 0 4px 12px rgba(33, 150, 243, 0.4);
  transform: translateY(-2px);
}

.w2f14-btn-outline {
  background: transparent;
  color: var(--w2f14-primary);
  border: 2px solid var(--w2f14-primary);
}

.w2f14-btn-outline:hover {
  background: var(--w2f14-primary);
  color: var(--w2f14-secondary);
}

/* Mobile Menu */
.w2f14-mobile-menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  width: 24px;
  height: 24px;
  cursor: pointer;
  padding: 0.5rem;
}

.w2f14-mobile-menu-toggle span {
  width: 100%;
  height: 2px;
  background: var(--w2f14-primary);
  transition: var(--w2f14-transition);
}

.w2f14-mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 300px;
  height: 100vh;
  background: var(--w2f14-secondary);
  backdrop-filter: blur(10px);
  z-index: 9999;
  transition: var(--w2f14-transition);
  padding: 2rem;
  overflow-y: auto;
}

.w2f14-mobile-menu.active {
  right: 0;
}

.w2f14-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: var(--w2f14-transition);
}

.w2f14-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

.w2f14-menu-nav {
  list-style: none;
  padding: 0;
  margin: 2rem 0;
}

.w2f14-menu-nav li {
  margin-bottom: 1rem;
}

.w2f14-menu-nav a {
  display: block;
  padding: 1rem;
  color: var(--w2f14-primary);
  text-decoration: none;
  border-radius: var(--w2f14-border-radius);
  transition: var(--w2f14-transition);
}

.w2f14-menu-nav a:hover {
  background: rgba(248, 248, 255, 0.1);
}

/* Carousel */
.w2f14-carousel {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  border-radius: var(--w2f14-border-radius);
  margin: 1rem 0;
}

.w2f14-carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
  cursor: pointer;
}

.w2f14-carousel-slide.active {
  opacity: 1;
}

.w2f14-carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Game Grid */
.w2f14-game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}

.w2f14-game-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  transition: var(--w2f14-transition);
  padding: 1rem;
  border-radius: var(--w2f14-border-radius);
  background: var(--w2f14-accent);
  min-height: 100px;
}

.w2f14-game-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px var(--w2f14-shadow-hover);
}

.w2f14-game-icon {
  width: 48px;
  height: 48px;
  object-fit: contain;
  margin-bottom: 0.5rem;
  border-radius: 8px;
}

.w2f14-game-name {
  font-size: 1.2rem;
  color: var(--w2f14-text);
  font-weight: 500;
  line-height: 1.3;
  word-break: break-word;
}

/* Content Sections */
.w2f14-section {
  padding: 2rem 0;
  margin-bottom: 2rem;
}

.w2f14-card {
  background: var(--w2f14-primary);
  border-radius: var(--w2f14-border-radius);
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 2px 8px var(--w2f14-shadow);
  transition: var(--w2f14-transition);
}

.w2f14-card:hover {
  box-shadow: 0 4px 16px var(--w2f14-shadow-hover);
}

/* Partner Logos */
.w2f14-partners {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  align-items: center;
  margin: 2rem 0;
}

.w2f14-partner-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
  opacity: 0.7;
  transition: var(--w2f14-transition);
}

.w2f14-partner-logo:hover {
  opacity: 1;
  transform: scale(1.1);
}

/* Footer */
.w2f14-footer {
  background: var(--w2f14-secondary);
  color: var(--w2f14-primary);
  padding: 3rem 0 2rem;
  margin-top: 4rem;
}

.w2f14-footer-content {
  text-align: center;
}

.w2f14-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.w2f14-footer-links a {
  color: var(--w2f14-primary);
  text-decoration: none;
  font-size: 1.4rem;
  transition: var(--w2f14-transition);
}

.w2f14-footer-links a:hover {
  color: var(--w2f14-accent);
}

.w2f14-footer-copyright {
  font-size: 1.2rem;
  color: var(--w2f14-accent);
  margin-top: 2rem;
}

/* Bottom Navigation */
.w2f14-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--w2f14-secondary);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(248, 248, 255, 0.1);
  z-index: 1000;
  padding: 0.5rem 0;
  display: none;
}

@media (max-width: 768px) {
  .w2f14-bottom-nav {
    display: block;
  }
}

.w2f14-bottom-nav-content {
  display: flex;
  justify-content: space-around;
  align-items: center;
  max-width: 430px;
  margin: 0 auto;
}

.w2f14-bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 60px;
  padding: 0.5rem;
  text-decoration: none;
  color: var(--w2f14-accent);
  transition: var(--w2f14-transition);
  cursor: pointer;
  border: none;
  background: none;
}

.w2f14-bottom-nav-item:hover,
.w2f14-bottom-nav-item.active {
  color: var(--w2f14-primary);
  transform: scale(1.05);
}

.w2f14-bottom-nav-icon {
  font-size: 24px;
  margin-bottom: 0.2rem;
  transition: var(--w2f14-transition);
}

.w2f14-bottom-nav-text {
  font-size: 1rem;
  font-weight: 500;
  text-align: center;
  line-height: 1.2;
}

/* Utility Classes */
.w2f14-text-center {
  text-align: center;
}

.w2f14-text-left {
  text-align: left;
}

.w2f14-text-right {
  text-align: right;
}

.w2f14-mb-1 {
  margin-bottom: 1rem;
}

.w2f14-mb-2 {
  margin-bottom: 2rem;
}

.w2f14-mb-3 {
  margin-bottom: 3rem;
}

.w2f14-mt-1 {
  margin-top: 1rem;
}

.w2f14-mt-2 {
  margin-top: 2rem;
}

.w2f14-mt-3 {
  margin-top: 3rem;
}

.w2f14-p-1 {
  padding: 1rem;
}

.w2f14-p-2 {
  padding: 2rem;
}

.w2f14-p-3 {
  padding: 3rem;
}

.w2f14-hidden {
  display: none;
}

.w2f14-visible {
  display: block;
}

/* Responsive Design */
@media (min-width: 769px) {
  .w2f14-bottom-nav {
    display: none !important;
  }

  body {
    padding-bottom: 0 !important;
  }
}

@media (max-width: 768px) {
  .w2f14-container {
    padding: 0 1rem;
  }

  .w2f14-header-content {
    padding: 0 1rem;
  }

  .w2f14-game-grid {
    grid-template-columns: repeat(auto-fit, minmax(70px, 1fr));
    gap: 0.8rem;
  }

  .w2f14-game-item {
    padding: 0.8rem;
    min-height: 90px;
  }

  .w2f14-game-icon {
    width: 40px;
    height: 40px;
  }

  .w2f14-game-name {
    font-size: 1.1rem;
  }
}

/* Print Styles */
@media print {
  .w2f14-header,
  .w2f14-bottom-nav,
  .w2f14-mobile-menu-toggle {
    display: none !important;
  }

  body {
    background: white !important;
    color: black !important;
  }
}

/* High contrast mode */
@media (prefers-contrast: high) {
  :root {
    --w2f14-text: #000000;
    --w2f14-primary: #ffffff;
    --w2f14-secondary: #000000;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}