/* me777-icu Core CSS Design System */
/* All classes use w26b1- prefix to avoid conflicts */

/* CSS Custom Properties */
:root {
  --w26b1-primary: #004D40;
  --w26b1-secondary: #0097A7;
  --w26b1-accent: #F0FDFF;
  --w26b1-text: #212F3D;
  --w26b1-bg: #E0E0E0;
  --w26b1-white: #FFFFFF;
  --w26b1-gradient-primary: linear-gradient(135deg, #004D40, #0097A7);
  --w26b1-gradient-secondary: linear-gradient(135deg, #0097A7, #F0FDFF);
  --w26b1-shadow: 0 4px 12px rgba(0, 77, 64, 0.15);
  --w26b1-shadow-hover: 0 8px 24px rgba(0, 77, 64, 0.25);
  --w26b1-border-radius: 0.5rem;
  --w26b1-transition: all 0.3s ease;
}

/* Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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(--w26b1-text);
  background-color: var(--w26b1-bg);
  overflow-x: hidden;
}

/* Layout Components */
.w26b1-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.w26b1-container {
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1rem;
  width: 100%;
}

.w26b1-grid {
  display: grid;
  gap: 1rem;
}

.w26b1-grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.w26b1-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.w26b1-grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.w26b1-flex {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.w26b1-flex-center {
  justify-content: center;
}

.w26b1-flex-between {
  justify-content: space-between;
}

.w26b1-flex-wrap {
  flex-wrap: wrap;
}

/* Header & Navigation */
.w26b1-header {
  background: var(--w26b1-primary);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  box-shadow: var(--w26b1-shadow);
}

.w26b1-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  height: 60px;
}

.w26b1-logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  color: var(--w26b1-white);
  font-weight: bold;
  font-size: 1.8rem;
}

.w26b1-logo img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
}

.w26b1-nav-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.w26b1-menu-btn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.w26b1-menu-btn span {
  width: 24px;
  height: 2px;
  background: var(--w26b1-white);
  margin: 2px 0;
  transition: var(--w26b1-transition);
  border-radius: 1px;
}

/* Mobile Menu */
.w26b1-mobile-menu {
  position: fixed;
  top: 60px;
  right: -300px;
  width: 280px;
  height: calc(100vh - 60px);
  background: var(--w26b1-white);
  box-shadow: var(--w26b1-shadow);
  transition: var(--w26b1-transition);
  z-index: 999;
  overflow-y: auto;
}

.w26b1-mobile-menu.w26b1-menu-active {
  right: 0;
}

.w26b1-menu-backdrop {
  position: fixed;
  top: 60px;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: var(--w26b1-transition);
  z-index: 998;
}

.w26b1-menu-backdrop.w26b1-backdrop-active {
  opacity: 1;
  visibility: visible;
}

.w26b1-menu-items {
  padding: 2rem 0;
}

.w26b1-menu-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem 2rem;
  text-decoration: none;
  color: var(--w26b1-text);
  font-weight: 500;
  transition: var(--w26b1-transition);
  border-bottom: 1px solid var(--w26b1-bg);
}

.w26b1-menu-item:hover {
  background: var(--w26b1-accent);
  color: var(--w26b1-primary);
}

.w26b1-menu-item i {
  font-size: 1.8rem;
  width: 24px;
  text-align: center;
}

/* Buttons */
.w26b1-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.6rem;
  border: none;
  border-radius: var(--w26b1-border-radius);
  font-size: 1.4rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: var(--w26b1-transition);
  position: relative;
  overflow: hidden;
  min-height: 44px; /* Touch-friendly */
}

.w26b1-btn-primary {
  background: var(--w26b1-gradient-primary);
  color: var(--w26b1-white);
}

.w26b1-btn-secondary {
  background: var(--w26b1-white);
  color: var(--w26b1-primary);
  border: 2px solid var(--w26b1-primary);
}

.w26b1-btn-accent {
  background: var(--w26b1-secondary);
  color: var(--w26b1-white);
}

.w26b1-btn-small {
  padding: 0.6rem 1.2rem;
  font-size: 1.2rem;
}

.w26b1-btn-large {
  padding: 1.2rem 2.4rem;
  font-size: 1.6rem;
}

.w26b1-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--w26b1-shadow-hover);
}

.w26b1-btn:active {
  transform: translateY(0);
}

/* Cards */
.w26b1-card {
  background: var(--w26b1-white);
  border-radius: var(--w26b1-border-radius);
  box-shadow: var(--w26b1-shadow);
  overflow: hidden;
  margin-bottom: 2rem;
}

.w26b1-card-header {
  padding: 2rem;
  background: var(--w26b1-gradient-primary);
  color: var(--w26b1-white);
  text-align: center;
}

.w26b1-card-content {
  padding: 2rem;
}

.w26b1-card-title {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 1rem;
  color: var(--w26b1-primary);
}

.w26b1-card-text {
  color: var(--w26b1-text);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

/* Carousel */
.w26b1-carousel {
  position: relative;
  margin-bottom: 2rem;
  border-radius: var(--w26b1-border-radius);
  overflow: hidden;
  height: 200px;
}

.w26b1-slide {
  position: relative;
  width: 100%;
  height: 100%;
  display: none;
  cursor: pointer;
}

.w26b1-slide:first-child {
  display: block;
}

.w26b1-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.w26b1-slide-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
  color: var(--w26b1-white);
  padding: 2rem;
}

/* Game Grid */
.w26b1-games-section {
  margin: 3rem 0;
}

.w26b1-games-header {
  text-align: center;
  margin-bottom: 2rem;
}

.w26b1-games-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 3rem;
}

.w26b1-game-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem;
  background: var(--w26b1-white);
  border-radius: var(--w26b1-border-radius);
  text-decoration: none;
  color: var(--w26b1-text);
  transition: var(--w26b1-transition);
  box-shadow: var(--w26b1-shadow);
  position: relative;
  overflow: hidden;
  min-height: 90px;
}

.w26b1-game-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--w26b1-shadow-hover);
}

.w26b1-game-img {
  width: 40px;
  height: 40px;
  border-radius: var(--w26b1-border-radius);
  margin-bottom: 0.5rem;
  object-fit: cover;
}

.w26b1-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;
}

/* Feature Sections */
.w26b1-section {
  margin: 3rem 0;
}

.w26b1-section-title {
  font-size: 2.4rem;
  font-weight: bold;
  text-align: center;
  margin-bottom: 2rem;
  color: var(--w26b1-primary);
}

.w26b1-feature-list {
  display: grid;
  gap: 2rem;
}

.w26b1-feature-item {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  padding: 2rem;
  background: var(--w26b1-white);
  border-radius: var(--w26b1-border-radius);
  box-shadow: var(--w26b1-shadow);
}

.w26b1-feature-icon {
  width: 48px;
  height: 48px;
  background: var(--w26b1-gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--w26b1-white);
  font-size: 2rem;
  flex-shrink: 0;
}

.w26b1-feature-content h3 {
  font-size: 1.6rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
  color: var(--w26b1-primary);
}

.w26b1-feature-content p {
  color: var(--w26b1-text);
  line-height: 1.5;
}

/* Stats Grid */
.w26b1-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin: 2rem 0;
}

.w26b1-stat-item {
  text-align: center;
  padding: 2rem 1rem;
  background: var(--w26b1-gradient-primary);
  color: var(--w26b1-white);
  border-radius: var(--w26b1-border-radius);
}

.w26b1-stat-number {
  font-size: 2.4rem;
  font-weight: bold;
  display: block;
}

.w26b1-stat-label {
  font-size: 1.2rem;
  opacity: 0.9;
  margin-top: 0.5rem;
}

/* Footer */
.w26b1-footer {
  background: var(--w26b1-primary);
  color: var(--w26b1-white);
  padding: 3rem 0 8rem; /* Extra bottom padding for mobile nav */
  margin-top: auto;
}

.w26b1-footer-content {
  text-align: center;
}

.w26b1-footer-title {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 1rem;
}

.w26b1-footer-text {
  margin-bottom: 2rem;
  opacity: 0.9;
  line-height: 1.6;
}

.w26b1-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.w26b1-footer-link {
  color: var(--w26b1-accent);
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: var(--w26b1-border-radius);
  transition: var(--w26b1-transition);
}

.w26b1-footer-link:hover {
  background: rgba(255, 255, 255, 0.1);
}

.w26b1-partners {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin: 2rem 0;
  opacity: 0.7;
}

.w26b1-partner-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
  filter: grayscale(1) brightness(0) invert(1);
  opacity: 0.6;
}

.w26b1-copyright {
  font-size: 1.2rem;
  opacity: 0.7;
  margin-top: 2rem;
}

/* Bottom Navigation */
.w26b1-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--w26b1-white);
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  height: 64px;
}

.w26b1-bottom-nav-content {
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 100%;
  max-width: 430px;
  margin: 0 auto;
}

.w26b1-bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: var(--w26b1-text);
  font-size: 1rem;
  font-weight: 500;
  transition: var(--w26b1-transition);
  padding: 0.5rem;
  border-radius: var(--w26b1-border-radius);
  min-width: 48px;
  min-height: 48px;
  position: relative;
  overflow: hidden;
}

.w26b1-bottom-nav-item:hover,
.w26b1-bottom-nav-item.w26b1-nav-active {
  color: var(--w26b1-primary);
  background: var(--w26b1-accent);
}

.w26b1-bottom-nav-item i,
.w26b1-bottom-nav-item ion-icon {
  font-size: 2rem;
  margin-bottom: 0.2rem;
}

.w26b1-bottom-nav-item span {
  font-size: 1rem;
  line-height: 1;
}

/* Utility Classes */
.w26b1-text-center { text-align: center; }
.w26b1-text-left { text-align: left; }
.w26b1-text-right { text-align: right; }

.w26b1-mt-1 { margin-top: 1rem; }
.w26b1-mt-2 { margin-top: 2rem; }
.w26b1-mb-1 { margin-bottom: 1rem; }
.w26b1-mb-2 { margin-bottom: 2rem; }

.w26b1-p-1 { padding: 1rem; }
.w26b1-p-2 { padding: 2rem; }

.w26b1-hidden { display: none; }
.w26b1-visible { display: block; }

/* Ripple Effect */
.w26b1-ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  transform: scale(0);
  animation: w26b1-ripple-animation 0.6s linear;
  pointer-events: none;
}

@keyframes w26b1-ripple-animation {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* Lazy Loading */
.w26b1-lazy {
  opacity: 0;
  transition: opacity 0.3s;
}

.w26b1-lazy.loaded {
  opacity: 1;
}

/* Responsive Design */
@media (max-width: 480px) {
  .w26b1-container {
    padding: 0 0.8rem;
  }
  
  .w26b1-games-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.8rem;
  }
  
  .w26b1-game-img {
    width: 32px;
    height: 32px;
  }
  
  .w26b1-game-name {
    font-size: 0.9rem;
  }
  
  .w26b1-stats-grid {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }
}

/* Loading Animation */
.w26b1-loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: var(--w26b1-white);
  animation: w26b1-spin 1s ease-in-out infinite;
}

@keyframes w26b1-spin {
  to { transform: rotate(360deg); }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Focus Styles */
.w26b1-btn:focus,
.w26b1-menu-item:focus,
.w26b1-bottom-nav-item:focus {
  outline: 2px solid var(--w26b1-secondary);
  outline-offset: 2px;
}

/* Print Styles */
@media print {
  .w26b1-header,
  .w26b1-bottom-nav,
  .w26b1-mobile-menu {
    display: none;
  }
}