/* ArionPlay VIP CSS Design - Mobile Gaming Platform */
/* Author: ArionPlay Development Team */
/* Version: 1.0.0 */

/* CSS Custom Properties */
:root {
  --w540f-primary: #212F3D;
  --w540f-secondary: #D2691E;
  --w540f-accent: #FF5722;
  --w540f-light: #E0E0E0;
  --w540f-sand: #F4A460;
  --w540f-sky: #BAE1FF;
  --w540f-bg: #1a1a1a;
  --w540f-text: #ffffff;
  --w540f-text-secondary: #cccccc;
  --w540f-border: #333333;
  --w540f-shadow: rgba(0, 0, 0, 0.3);
  --w540f-gradient: linear-gradient(135deg, var(--w540f-primary), var(--w540f-secondary));
  --w540f-font-size: 62.5%;
  --w540f-line-height: 1.5rem;
}

/* Base Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: var(--w540f-font-size);
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: var(--w540f-line-height);
  color: var(--w540f-text);
  background: var(--w540f-bg);
  font-size: 1.4rem;
  overflow-x: hidden;
}

/* Layout Components */
.w540f-container {
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1rem;
  width: 100%;
}

.w540f-wrapper {
  padding: 1rem;
}

.w540f-grid {
  display: grid;
  gap: 1rem;
}

.w540f-flex {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.w540f-hidden {
  display: none !important;
}

/* Header & Navigation */
.w540f-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--w540f-primary);
  z-index: 1000;
  padding: 1rem;
  box-shadow: 0 2px 10px var(--w540f-shadow);
}

.w540f-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 430px;
  margin: 0 auto;
}

.w540f-logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  color: var(--w540f-text);
  font-weight: bold;
  font-size: 1.6rem;
}

.w540f-logo-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
}

.w540f-nav-actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.w540f-menu-toggle {
  background: none;
  border: none;
  color: var(--w540f-text);
  font-size: 2rem;
  cursor: pointer;
  padding: 0.5rem;
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.w540f-mobile-menu {
  position: fixed;
  top: 70px;
  left: 0;
  right: 0;
  background: var(--w540f-primary);
  border-top: 1px solid var(--w540f-border);
  max-height: calc(100vh - 70px);
  overflow-y: auto;
  transform: translateY(-100%);
  transition: transform 0.3s ease;
}

.w540f-mobile-menu.w540f-active {
  transform: translateY(0);
}

.w540f-nav-list {
  list-style: none;
  padding: 1rem 0;
}

.w540f-nav-item {
  border-bottom: 1px solid var(--w540f-border);
}

.w540f-nav-link {
  display: block;
  padding: 1.2rem 2rem;
  color: var(--w540f-text);
  text-decoration: none;
  font-size: 1.5rem;
  transition: background-color 0.3s ease;
}

.w540f-nav-link:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

/* Buttons */
.w540f-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  border: none;
  border-radius: 8px;
  font-size: 1.4rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  min-height: 44px;
  min-width: 44px;
  text-align: center;
}

.w540f-btn-primary {
  background: var(--w540f-gradient);
  color: var(--w540f-text);
  box-shadow: 0 4px 15px rgba(255, 87, 34, 0.3);
}

.w540f-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 87, 34, 0.4);
}

.w540f-btn-secondary {
  background: var(--w540f-secondary);
  color: var(--w540f-text);
}

.w540f-btn-outline {
  background: transparent;
  border: 2px solid var(--w540f-accent);
  color: var(--w540f-accent);
}

.w540f-btn-small {
  padding: 0.8rem 1.5rem;
  font-size: 1.2rem;
}

/* Cards */
.w540f-card {
  background: linear-gradient(145deg, var(--w540f-primary), rgba(33, 47, 61, 0.8));
  border-radius: 12px;
  padding: 2rem;
  margin: 1rem 0;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.w540f-card-header {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 1rem;
  background: var(--w540f-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.w540f-card-content {
  line-height: 1.6;
  color: var(--w540f-text-secondary);
}

/* Game Grid */
.w540f-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  padding: 1rem 0;
}

.w540f-game-item {
  background: var(--w540f-card);
  border-radius: 12px;
  padding: 1rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  min-height: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--w540f-border);
}

.w540f-game-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(255, 87, 34, 0.3);
  border-color: var(--w540f-accent);
}

.w540f-game-icon {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  margin-bottom: 0.5rem;
  object-fit: cover;
}

.w540f-game-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--w540f-text);
  text-align: center;
  line-height: 1.2;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Carousel */
.w540f-carousel {
  position: relative;
  width: 100%;
  height: 200px;
  margin: 2rem 0;
  border-radius: 12px;
  overflow: hidden;
}

.w540f-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease;
  cursor: pointer;
}

.w540f-slide.w540f-active {
  opacity: 1;
}

.w540f-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.w540f-carousel-indicators {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
}

.w540f-indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: background 0.3s ease;
}

.w540f-indicator.w540f-active {
  background: var(--w540f-accent);
}

/* Bottom Navigation */
.w540f-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--w540f-primary);
  border-top: 1px solid var(--w540f-border);
  display: flex;
  justify-content: space-around;
  padding: 0.8rem 0;
  z-index: 999;
  max-width: 430px;
  margin: 0 auto;
}

.w540f-bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: var(--w540f-text-secondary);
  transition: color 0.3s ease;
  min-width: 44px;
  padding: 0.5rem;
}

.w540f-bottom-nav-item.w540f-active,
.w540f-bottom-nav-item:hover {
  color: var(--w540f-accent);
}

.w540f-bottom-nav-icon {
  font-size: 2.4rem;
  margin-bottom: 0.3rem;
}

.w540f-bottom-nav-label {
  font-size: 1rem;
  font-weight: 500;
}

/* Footer */
.w540f-footer {
  background: var(--w540f-primary);
  padding: 3rem 1rem 10rem;
  margin-top: 4rem;
  border-top: 1px solid var(--w540f-border);
}

.w540f-footer-content {
  max-width: 430px;
  margin: 0 auto;
  text-align: center;
}

.w540f-footer-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin: 2rem 0;
}

.w540f-footer-link {
  color: var(--w540f-text-secondary);
  text-decoration: none;
  font-size: 1.3rem;
  padding: 0.5rem;
  transition: color 0.3s ease;
}

.w540f-footer-link:hover {
  color: var(--w540f-accent);
}

.w540f-partners {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  margin: 2rem 0;
}

.w540f-partner-logo {
  width: 100%;
  height: 40px;
  object-fit: contain;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.w540f-partner-logo:hover {
  opacity: 1;
}

.w540f-copyright {
  color: var(--w540f-text-secondary);
  font-size: 1.2rem;
  margin-top: 2rem;
}

/* Animations */
.w540f-animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.w540f-animate-on-scroll.w540f-animated {
  opacity: 1;
  transform: translateY(0);
}

/* Utility Classes */
.w540f-text-center { text-align: center; }
.w540f-text-left { text-align: left; }
.w540f-text-right { text-align: right; }
.w540f-mb-1 { margin-bottom: 1rem; }
.w540f-mb-2 { margin-bottom: 2rem; }
.w540f-mt-1 { margin-top: 1rem; }
.w540f-mt-2 { margin-top: 2rem; }
.w540f-p-1 { padding: 1rem; }
.w540f-p-2 { padding: 2rem; }

/* Responsive Design */
@media (max-width: 430px) {
  .w540f-container {
    padding: 0 0.8rem;
  }
  
  .w540f-game-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.8rem;
  }
  
  .w540f-footer-links {
    grid-template-columns: 1fr;
  }
  
  .w540f-partners {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 320px) {
  .w540f-game-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .w540f-partners {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Loading States */
.w540f-loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid var(--w540f-border);
  border-radius: 50%;
  border-top-color: var(--w540f-accent);
  animation: w540f-spin 1s ease-in-out infinite;
}

@keyframes w540f-spin {
  to { transform: rotate(360deg); }
}

/* Focus States for Accessibility */
.w540f-btn:focus,
.w540f-nav-link:focus,
.w540f-game-item:focus {
  outline: 2px solid var(--w540f-accent);
  outline-offset: 2px;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
  :root {
    --w540f-bg: #000000;
    --w540f-text: #ffffff;
    --w540f-border: #ffffff;
  }
}