/* CSS Layout for superph11-sbs - All classes use prefix "v7e3-" */

/* CSS Variables for consistent theming */
:root {
  /* Color Palette */
  --v7e3-primary: #1E90FF;
  --v7e3-secondary: #36454F;
  --v7e3-accent: #A9A9A9;
  --v7e3-dark: #0C0C0C;
  --v7e3-light: #C0C0C0;
  --v7e3-white: #FFFFFF;
  --v7e3-black: #000000;
  --v7e3-gray: #666666;
  --v7e3-success: #28a745;
  --v7e3-warning: #ffc107;
  --v7e3-error: #dc3545;

  /* Typography */
  --v7e3-font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  --v7e3-font-size-base: 1.6rem;
  --v7e3-line-height: 1.5;

  /* Spacing */
  --v7e3-spacing-xs: 0.5rem;
  --v7e3-spacing-sm: 1rem;
  --v7e3-spacing-md: 1.5rem;
  --v7e3-spacing-lg: 2rem;
  --v7e3-spacing-xl: 3rem;

  /* Layout */
  --v7e3-max-width: 430px;
  --v7e3-header-height: 60px;
  --v7e3-bottom-nav-height: 64px;

  /* Border Radius */
  --v7e3-radius-sm: 4px;
  --v7e3-radius-md: 8px;
  --v7e3-radius-lg: 12px;

  /* Shadows */
  --v7e3-shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
  --v7e3-shadow-md: 0 4px 8px rgba(0,0,0,0.15);
  --v7e3-shadow-lg: 0 8px 16px rgba(0,0,0,0.2);

  /* Transitions */
  --v7e3-transition: all 0.3s ease;
  --v7e3-transition-fast: all 0.15s ease;
}

/* 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: var(--v7e3-font-family);
  font-size: var(--v7e3-font-size-base);
  line-height: var(--v7e3-line-height);
  color: var(--v7e3-light);
  background-color: var(--v7e3-dark);
  max-width: var(--v7e3-max-width);
  margin: 0 auto;
  overflow-x: hidden;
}

/* Mobile-first responsive design */
@media (max-width: 768px) {
  body {
    padding-bottom: var(--v7e3-bottom-nav-height);
  }
}

/* Typography */
.v7e3-h1, .v7e3-h2, .v7e3-h3, .v7e3-h4, .v7e3-h5, .v7e3-h6 {
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: var(--v7e3-spacing-sm);
  color: var(--v7e3-white);
}

.v7e3-h1 { font-size: 2.4rem; }
.v7e3-h2 { font-size: 2.0rem; }
.v7e3-h3 { font-size: 1.8rem; }
.v7e3-h4 { font-size: 1.6rem; }
.v7e3-h5 { font-size: 1.4rem; }
.v7e3-h6 { font-size: 1.2rem; }

.v7e3-text-center { text-align: center; }
.v7e3-text-left { text-align: left; }
.v7e3-text-right { text-align: right; }

/* Layout Components */
.v7e3-container {
  width: 100%;
  max-width: var(--v7e3-max-width);
  margin: 0 auto;
  padding: 0 var(--v7e3-spacing-sm);
}

.v7e3-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.v7e3-main {
  flex: 1;
  padding-top: var(--v7e3-header-height);
}

.v7e3-grid {
  display: grid;
  gap: var(--v7e3-spacing-sm);
}

.v7e3-flex {
  display: flex;
}

.v7e3-flex-col {
  flex-direction: column;
}

.v7e3-flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.v7e3-flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Header Styles */
.v7e3-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--v7e3-header-height);
  background: linear-gradient(135deg, var(--v7e3-secondary) 0%, var(--v7e3-dark) 100%);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  z-index: 1000;
  backdrop-filter: blur(10px);
}

.v7e3-header-container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--v7e3-spacing-sm);
}

.v7e3-logo {
  display: flex;
  align-items: center;
  gap: var(--v7e3-spacing-xs);
  text-decoration: none;
  color: var(--v7e3-white);
  font-weight: 600;
  font-size: 1.8rem;
}

.v7e3-logo img {
  width: 32px;
  height: 32px;
  border-radius: var(--v7e3-radius-sm);
}

.v7e3-header-actions {
  display: flex;
  align-items: center;
  gap: var(--v7e3-spacing-sm);
}

/* Button Styles */
.v7e3-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--v7e3-spacing-xs) var(--v7e3-spacing-md);
  border: none;
  border-radius: var(--v7e3-radius-md);
  font-size: 1.4rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: var(--v7e3-transition);
  min-height: 44px; /* Touch-friendly minimum */
  white-space: nowrap;
}

.v7e3-btn-primary {
  background: linear-gradient(135deg, var(--v7e3-primary) 0%, #0066cc 100%);
  color: var(--v7e3-white);
  box-shadow: var(--v7e3-shadow-sm);
}

.v7e3-btn-primary:hover {
  background: linear-gradient(135deg, #0066cc 0%, var(--v7e3-primary) 100%);
  box-shadow: var(--v7e3-shadow-md);
  transform: translateY(-2px);
}

.v7e3-btn-secondary {
  background: transparent;
  color: var(--v7e3-primary);
  border: 2px solid var(--v7e3-primary);
}

.v7e3-btn-secondary:hover {
  background: var(--v7e3-primary);
  color: var(--v7e3-white);
}

.v7e3-btn-success {
  background: var(--v7e3-success);
  color: var(--v7e3-white);
}

.v7e3-btn-lg {
  padding: var(--v7e3-spacing-sm) var(--v7e3-spacing-lg);
  font-size: 1.6rem;
  min-height: 50px;
}

.v7e3-btn-sm {
  padding: var(--v7e3-spacing-xs) var(--v7e3-spacing-sm);
  font-size: 1.2rem;
  min-height: 36px;
}

/* Navigation Styles */
.v7e3-nav {
  display: none;
}

.v7e3-nav-list {
  display: flex;
  list-style: none;
  gap: var(--v7e3-spacing-md);
}

.v7e3-nav-link {
  color: var(--v7e3-light);
  text-decoration: none;
  padding: var(--v7e3-spacing-xs) var(--v7e3-spacing-sm);
  border-radius: var(--v7e3-radius-sm);
  transition: var(--v7e3-transition-fast);
  font-weight: 500;
}

.v7e3-nav-link:hover {
  color: var(--v7e3-primary);
  background-color: rgba(30, 144, 255, 0.1);
}

/* Mobile Navigation */
.v7e3-hamburger {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--v7e3-spacing-xs);
  min-height: 44px;
  min-width: 44px;
}

.v7e3-hamburger span {
  width: 24px;
  height: 3px;
  background-color: var(--v7e3-white);
  border-radius: 2px;
  transition: var(--v7e3-transition);
}

.v7e3-hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.v7e3-hamburger.active span:nth-child(2) {
  opacity: 0;
}

.v7e3-hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

.v7e3-mobile-menu {
  position: fixed;
  top: var(--v7e3-header-height);
  right: -100%;
  width: 80%;
  max-width: 300px;
  height: calc(100vh - var(--v7e3-header-height));
  background: linear-gradient(135deg, var(--v7e3-secondary) 0%, var(--v7e3-dark) 100%);
  backdrop-filter: blur(10px);
  z-index: 9999;
  transition: right 0.3s ease;
  overflow-y: auto;
  border-left: 1px solid rgba(255,255,255,0.1);
}

.v7e3-mobile-menu.active {
  right: 0;
}

.v7e3-mobile-nav {
  padding: var(--v7e3-spacing-md);
}

.v7e3-mobile-nav-list {
  list-style: none;
}

.v7e3-mobile-nav-item {
  margin-bottom: var(--v7e3-spacing-xs);
}

.v7e3-mobile-nav-link {
  display: block;
  padding: var(--v7e3-spacing-sm);
  color: var(--v7e3-light);
  text-decoration: none;
  border-radius: var(--v7e3-radius-md);
  transition: var(--v7e3-transition-fast);
  font-weight: 500;
}

.v7e3-mobile-nav-link:hover {
  background-color: rgba(30, 144, 255, 0.1);
  color: var(--v7e3-primary);
}

.v7e3-menu-overlay {
  position: fixed;
  top: var(--v7e3-header-height);
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: var(--v7e3-transition);
}

.v7e3-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Carousel Styles */
.v7e3-carousel {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  border-radius: var(--v7e3-radius-lg);
  margin-bottom: var(--v7e3-spacing-lg);
}

.v7e3-carousel-inner {
  position: relative;
  width: 100%;
  height: 100%;
}

.v7e3-carousel-item {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease;
  cursor: pointer;
}

.v7e3-carousel-item.active {
  opacity: 1;
}

.v7e3-carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.v7e3-carousel-controls {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 var(--v7e3-spacing-sm);
}

.v7e3-carousel-btn {
  background: rgba(0, 0, 0, 0.5);
  color: var(--v7e3-white);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--v7e3-transition);
  backdrop-filter: blur(10px);
}

.v7e3-carousel-btn:hover {
  background: rgba(30, 144, 255, 0.8);
}

/* Game Grid Styles */
.v7e3-games-section {
  margin-bottom: var(--v7e3-spacing-xl);
}

.v7e3-games-title {
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--v7e3-white);
  margin-bottom: var(--v7e3-spacing-md);
  display: flex;
  align-items: center;
  gap: var(--v7e3-spacing-xs);
}

.v7e3-games-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--v7e3-spacing-xs);
  margin-bottom: var(--v7e3-spacing-lg);
}

.v7e3-game-item {
  background: linear-gradient(135deg, var(--v7e3-secondary) 0%, var(--v7e3-dark) 100%);
  border-radius: var(--v7e3-radius-md);
  padding: var(--v7e3-spacing-xs);
  text-align: center;
  cursor: pointer;
  transition: var(--v7e3-transition);
  border: 1px solid rgba(255,255,255,0.1);
  min-height: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.v7e3-game-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--v7e3-shadow-md);
  border-color: var(--v7e3-primary);
}

.v7e3-game-item img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  margin-bottom: var(--v7e3-spacing-xs);
  border-radius: var(--v7e3-radius-sm);
}

.v7e3-game-name {
  font-size: 1rem;
  color: var(--v7e3-light);
  font-weight: 500;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* Card Styles */
.v7e3-card {
  background: linear-gradient(135deg, var(--v7e3-secondary) 0%, var(--v7e3-dark) 100%);
  border-radius: var(--v7e3-radius-lg);
  padding: var(--v7e3-spacing-md);
  margin-bottom: var(--v7e3-spacing-md);
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: var(--v7e3-shadow-sm);
}

.v7e3-card-title {
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--v7e3-white);
  margin-bottom: var(--v7e3-spacing-sm);
}

/* Bottom Navigation */
.v7e3-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--v7e3-bottom-nav-height);
  background: linear-gradient(135deg, var(--v7e3-secondary) 0%, var(--v7e3-dark) 100%);
  border-top: 1px solid rgba(255,255,255,0.1);
  z-index: 1000;
  display: flex;
  justify-content: space-around;
  align-items: center;
  backdrop-filter: blur(10px);
}

.v7e3-bottom-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  min-width: 60px;
  cursor: pointer;
  transition: var(--v7e3-transition-fast);
  text-decoration: none;
}

.v7e3-bottom-nav-item:hover {
  background-color: rgba(30, 144, 255, 0.1);
}

.v7e3-bottom-nav-item.active {
  background-color: rgba(30, 144, 255, 0.2);
}

.v7e3-bottom-nav-item.active .v7e3-bottom-nav-icon {
  color: var(--v7e3-primary);
}

.v7e3-bottom-nav-item.active .v7e3-bottom-nav-text {
  color: var(--v7e3-primary);
}

.v7e3-bottom-nav-icon {
  font-size: 24px;
  color: var(--v7e3-light);
  margin-bottom: 2px;
  transition: var(--v7e3-transition-fast);
}

.v7e3-bottom-nav-text {
  font-size: 1rem;
  color: var(--v7e3-light);
  text-align: center;
  line-height: 1.2;
  transition: var(--v7e3-transition-fast);
}

/* Footer Styles */
.v7e3-footer {
  background: linear-gradient(135deg, var(--v7e3-secondary) 0%, var(--v7e3-dark) 100%);
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: var(--v7e3-spacing-xl) var(--v7e3-spacing-sm) var(--v7e3-spacing-lg);
  margin-top: var(--v7e3-spacing-xl);
}

.v7e3-footer-content {
  margin-bottom: var(--v7e3-spacing-lg);
}

.v7e3-footer-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--v7e3-white);
  margin-bottom: var(--v7e3-spacing-sm);
}

.v7e3-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--v7e3-spacing-md);
  margin-bottom: var(--v7e3-spacing-md);
}

.v7e3-footer-link {
  color: var(--v7e3-light);
  text-decoration: none;
  font-size: 1.2rem;
  transition: var(--v7e3-transition-fast);
}

.v7e3-footer-link:hover {
  color: var(--v7e3-primary);
}

.v7e3-partners {
  display: flex;
  flex-wrap: wrap;
  gap: var(--v7e3-spacing-sm);
  justify-content: center;
  margin-bottom: var(--v7e3-spacing-md);
}

.v7e3-partner {
  width: 40px;
  height: 40px;
  object-fit: contain;
  opacity: 0.8;
  transition: var(--v7e3-transition);
}

.v7e3-partner:hover {
  opacity: 1;
  transform: scale(1.1);
}

.v7e3-copyright {
  text-align: center;
  font-size: 1rem;
  color: var(--v7e3-accent);
  margin-top: var(--v7e3-spacing-md);
}

/* Utility Classes */
.v7e3-mb-sm { margin-bottom: var(--v7e3-spacing-sm); }
.v7e3-mb-md { margin-bottom: var(--v7e3-spacing-md); }
.v7e3-mb-lg { margin-bottom: var(--v7e3-spacing-lg); }
.v7e3-mb-xl { margin-bottom: var(--v7e3-spacing-xl); }

.v7e3-mt-sm { margin-top: var(--v7e3-spacing-sm); }
.v7e3-mt-md { margin-top: var(--v7e3-spacing-md); }
.v7e3-mt-lg { margin-top: var(--v7e3-spacing-lg); }
.v7e3-mt-xl { margin-top: var(--v7e3-spacing-xl); }

.v7e3-p-sm { padding: var(--v7e3-spacing-sm); }
.v7e3-p-md { padding: var(--v7e3-spacing-md); }
.v7e3-p-lg { padding: var(--v7e3-spacing-lg); }

.v7e3-px-sm { padding-left: var(--v7e3-spacing-sm); padding-right: var(--v7e3-spacing-sm); }
.v7e3-px-md { padding-left: var(--v7e3-spacing-md); padding-right: var(--v7e3-spacing-md); }

.v7e3-py-sm { padding-top: var(--v7e3-spacing-sm); padding-bottom: var(--v7e3-spacing-sm); }
.v7e3-py-md { padding-top: var(--v7e3-spacing-md); padding-bottom: var(--v7e3-spacing-md); }

.v7e3-hidden { display: none; }
.v7e3-visible { display: block; }

.v7e3-text-primary { color: var(--v7e3-primary); }
.v7e3-text-secondary { color: var(--v7e3-secondary); }
.v7e3-text-accent { color: var(--v7e3-accent); }
.v7e3-text-white { color: var(--v7e3-white); }

.v7e3-bg-primary { background-color: var(--v7e3-primary); }
.v7e3-bg-secondary { background-color: var(--v7e3-secondary); }
.v7e3-bg-dark { background-color: var(--v7e3-dark); }

/* Scroll to Top Button */
.v7e3-scroll-top {
  position: fixed;
  bottom: calc(var(--v7e3-bottom-nav-height) + 20px);
  right: 20px;
  width: 50px;
  height: 50px;
  background: var(--v7e3-primary);
  color: var(--v7e3-white);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: var(--v7e3-transition);
  box-shadow: var(--v7e3-shadow-md);
}

.v7e3-scroll-top.visible {
  opacity: 1;
  visibility: visible;
}

.v7e3-scroll-top:hover {
  background: #0066cc;
  transform: translateY(-2px);
}

/* Notification Styles */
.v7e3-notification {
  position: fixed;
  top: 80px;
  right: 20px;
  background: var(--v7e3-secondary);
  color: var(--v7e3-white);
  padding: var(--v7e3-spacing-md);
  border-radius: var(--v7e3-radius-md);
  box-shadow: var(--v7e3-shadow-lg);
  z-index: 10000;
  max-width: 300px;
  animation: slideInRight 0.3s ease;
}

.v7e3-notification-success {
  background: var(--v7e3-success);
}

.v7e3-notification-error {
  background: var(--v7e3-error);
}

.v7e3-notification-warning {
  background: var(--v7e3-warning);
  color: var(--v7e3-dark);
}

/* Animations */
@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes scaleIn {
  from {
    transform: scale(0.9);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* Loading States */
.v7e3-loading {
  position: relative;
  pointer-events: none;
}

.v7e3-loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid transparent;
  border-top: 2px solid var(--v7e3-white);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (min-width: 769px) {
  .v7e3-bottom-nav {
    display: none;
  }

  .v7e3-nav {
    display: block;
  }

  .v7e3-hamburger {
    display: none;
  }

  .v7e3-games-grid {
    grid-template-columns: repeat(6, 1fr);
  }

  .v7e3-carousel {
    height: 250px;
  }
}

@media (max-width: 768px) {
  .v7e3-games-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--v7e3-spacing-xs);
  }

  .v7e3-game-item {
    min-height: 70px;
    padding: var(--v7e3-spacing-xs);
  }

  .v7e3-game-item img {
    width: 40px;
    height: 40px;
  }

  .v7e3-game-name {
    font-size: 0.9rem;
  }

  .v7e3-card {
    padding: var(--v7e3-spacing-sm);
  }
}

@media (max-width: 480px) {
  .v7e3-games-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .v7e3-header-actions {
    gap: var(--v7e3-spacing-xs);
  }

  .v7e3-btn {
    padding: var(--v7e3-spacing-xs) var(--v7e3-spacing-sm);
    font-size: 1.2rem;
    min-height: 40px;
  }
}

/* Print Styles */
@media print {
  .v7e3-header,
  .v7e3-bottom-nav,
  .v7e3-scroll-top,
  .v7e3-carousel-controls {
    display: none;
  }

  body {
    background: white;
    color: black;
  }

  .v7e3-card {
    border: 1px solid #ccc;
    box-shadow: none;
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --v7e3-primary: #0066cc;
    --v7e3-secondary: #333333;
    --v7e3-dark: #000000;
    --v7e3-light: #ffffff;
  }
}

/* Focus styles for accessibility */
.v7e3-btn:focus,
.v7e3-nav-link:focus,
.v7e3-mobile-nav-link:focus,
.v7e3-footer-link:focus {
  outline: 2px solid var(--v7e3-primary);
  outline-offset: 2px;
}

/* Error states */
.v7e3-error {
  border-color: var(--v7e3-error) !important;
  box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.25) !important;
}

.v7e3-error-message {
  color: var(--v7e3-error);
  font-size: 1.2rem;
  margin-top: var(--v7e3-spacing-xs);
}