/* jl555 Core Layout Styles */
/* All classes use v535- prefix for namespace isolation */

/* CSS Variables */
:root {
  --v535-primary: #00BFFF;
  --v535-secondary: #6495ED;
  --v535-accent: #F5DEB3;
  --v535-bg-dark: #2E4057;
  --v535-bg-darker: #1a2639;
  --v535-text-light: #F5DEB3;
  --v535-text-white: #ffffff;
  --v535-border: #B0E0E6;
  --v535-success: #28a745;
  --v535-warning: #ffc107;
  --v535-danger: #dc3545;
  --v535-shadow: rgba(0, 191, 255, 0.2);
  --v535-transition: all 0.3s ease;
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 62.5%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  font-size: 1.6rem;
  line-height: 1.5;
  color: var(--v535-text-light);
  background: linear-gradient(135deg, var(--v535-bg-darker) 0%, var(--v535-bg-dark) 100%);
  min-height: 100vh;
  overflow-x: hidden;
}

/* Container and Layout */
.v535-container {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1rem;
}

.v535-wrapper {
  width: 100%;
  padding: 1rem 0;
}

.v535-grid {
  display: grid;
  gap: 1rem;
}

.v535-grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.v535-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.v535-grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

/* Header and Navigation */
.v535-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, var(--v535-bg-darker) 0%, var(--v535-bg-dark) 100%);
  box-shadow: 0 2px 10px var(--v535-shadow);
  z-index: 1000;
  padding: 0.8rem 0;
}

.v535-header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1rem;
}

.v535-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--v535-text-white);
  font-size: 1.8rem;
  font-weight: bold;
}

.v535-logo img {
  width: 32px;
  height: 32px;
}

.v535-menu-toggle {
  display: block;
  background: none;
  border: none;
  color: var(--v535-text-white);
  font-size: 2rem;
  cursor: pointer;
  padding: 0.5rem;
}

.v535-header-buttons {
  display: flex;
  gap: 0.8rem;
}

.v535-btn {
  padding: 0.6rem 1.2rem;
  border: none;
  border-radius: 8px;
  font-size: 1.4rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--v535-transition);
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

.v535-btn-primary {
  background: linear-gradient(135deg, var(--v535-primary) 0%, var(--v535-secondary) 100%);
  color: var(--v535-text-white);
}

.v535-btn-secondary {
  background: transparent;
  color: var(--v535-text-white);
  border: 2px solid var(--v535-primary);
}

.v535-btn:hover,
.v535-btn:active {
  transform: scale(1.05);
  box-shadow: 0 4px 15px var(--v535-shadow);
}

.v535-btn.v535-touch-active {
  transform: scale(0.95);
}

/* Mobile Menu */
.v535-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 9998;
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.v535-menu-overlay.v535-overlay-active {
  display: block;
  opacity: 1;
}

.v535-mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 300px;
  height: 100%;
  background: linear-gradient(135deg, var(--v535-bg-darker) 0%, var(--v535-bg-dark) 100%);
  z-index: 9999;
  padding: 6rem 1.5rem 2rem;
  transition: right 0.3s ease;
  overflow-y: auto;
  box-shadow: -2px 0 15px rgba(0, 0, 0, 0.5);
}

.v535-mobile-menu.v535-menu-open {
  right: 0;
}

.v535-menu-header {
  position: absolute;
  top: 1rem;
  right: 1rem;
}

.v535-menu-close {
  background: none;
  border: none;
  color: var(--v535-text-white);
  font-size: 2.5rem;
  cursor: pointer;
  padding: 0.5rem;
}

.v535-menu-list {
  list-style: none;
}

.v535-menu-item {
  margin-bottom: 0.5rem;
}

.v535-menu-item a {
  display: block;
  padding: 1rem;
  color: var(--v535-text-light);
  text-decoration: none;
  border-radius: 8px;
  transition: var(--v535-transition);
  font-size: 1.6rem;
}

.v535-menu-item a:hover {
  background: rgba(0, 191, 255, 0.1);
  color: var(--v535-primary);
  padding-left: 1.5rem;
}

/* Main Content */
main {
  margin-top: 70px;
  padding-bottom: 80px;
}

.v535-section {
  margin: 2rem 0;
}

.v535-section-title {
  font-size: 2rem;
  font-weight: bold;
  color: var(--v535-primary);
  margin-bottom: 1.5rem;
  text-align: center;
}

/* Carousel */
.v535-carousel {
  position: relative;
  width: 100%;
  margin: 1.5rem 0;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 20px var(--v535-shadow);
}

.v535-carousel-slide {
  width: 100%;
  display: none;
}

.v535-carousel-slide:first-child {
  display: block;
}

.v535-carousel-slide img {
  width: 100%;
  height: auto;
  display: block;
}

/* Game Cards */
.v535-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
  margin: 1.5rem 0;
}

.v535-game-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  overflow: hidden;
  transition: var(--v535-transition);
  cursor: pointer;
  border: 1px solid rgba(0, 191, 255, 0.1);
}

.v535-game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 20px var(--v535-shadow);
  border-color: var(--v535-primary);
}

.v535-game-icon {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
}

.v535-game-name {
  padding: 0.6rem 0.4rem;
  font-size: 1.1rem;
  text-align: center;
  color: var(--v535-text-light);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  background: rgba(0, 0, 0, 0.3);
}

.v535-game-card a {
  text-decoration: none;
  color: inherit;
  display: block;
}

/* Content Modules */
.v535-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 1.5rem;
  margin: 1.5rem 0;
  border: 1px solid rgba(0, 191, 255, 0.1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.v535-card-title {
  font-size: 1.8rem;
  font-weight: bold;
  color: var(--v535-primary);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.v535-card-content {
  font-size: 1.5rem;
  line-height: 1.6;
  color: var(--v535-text-light);
}

.v535-promo-link {
  color: var(--v535-primary);
  font-weight: 600;
  text-decoration: none;
  transition: var(--v535-transition);
}

.v535-promo-link:hover {
  color: var(--v535-secondary);
  text-decoration: underline;
}

/* Footer */
.v535-footer {
  background: linear-gradient(135deg, var(--v535-bg-darker) 0%, var(--v535-bg-dark) 100%);
  padding: 2rem 0;
  margin-top: 3rem;
  border-top: 2px solid var(--v535-primary);
}

.v535-footer-content {
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1rem;
}

.v535-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}

.v535-footer-link {
  color: var(--v535-primary);
  text-decoration: none;
  font-size: 1.4rem;
  padding: 0.5rem 1rem;
  border: 1px solid var(--v535-primary);
  border-radius: 6px;
  transition: var(--v535-transition);
}

.v535-footer-link:hover {
  background: var(--v535-primary);
  color: var(--v535-text-white);
}

.v535-partners {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  margin: 2rem 0;
}

.v535-partner-icon {
  width: 100%;
  height: auto;
  opacity: 0.7;
  transition: var(--v535-transition);
}

.v535-partner-icon:hover {
  opacity: 1;
  transform: scale(1.1);
}

.v535-copyright {
  text-align: center;
  color: rgba(245, 222, 179, 0.6);
  font-size: 1.2rem;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(0, 191, 255, 0.2);
}

/* Bottom Navigation */
.v535-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, var(--v535-bg-darker) 0%, var(--v535-bg-dark) 100%);
  box-shadow: 0 -2px 10px var(--v535-shadow);
  z-index: 1000;
  padding: 0.5rem 0;
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 60px;
  border-top: 2px solid var(--v535-primary);
}

.v535-bottom-nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 60px;
  text-decoration: none;
  color: var(--v535-text-light);
  transition: var(--v535-transition);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.3rem;
}

.v535-bottom-nav-btn i,
.v535-bottom-nav-btn span.icon {
  font-size: 24px;
  margin-bottom: 0.2rem;
  transition: var(--v535-transition);
}

.v535-bottom-nav-btn span.text {
  font-size: 10px;
  font-weight: 500;
}

.v535-bottom-nav-btn:hover {
  color: var(--v535-primary);
  transform: scale(1.1);
}

.v535-bottom-nav-btn.v535-nav-active {
  color: var(--v535-primary);
}

.v535-bottom-nav-btn.v535-nav-active i,
.v535-bottom-nav-btn.v535-nav-active span.icon {
  transform: scale(1.2);
}

/* Desktop Styles */
@media (min-width: 769px) {
  .v535-bottom-nav {
    display: none;
  }

  main {
    padding-bottom: 2rem;
  }

  .v535-menu-toggle {
    display: none;
  }
}

/* Animations */
@keyframes v535-fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.v535-animate-on-scroll {
  opacity: 0;
}

.v535-animated {
  animation: v535-fadeIn 0.6s ease forwards;
}

/* Utility Classes */
.v535-text-center {
  text-align: center;
}

.v535-mt-1 {
  margin-top: 1rem;
}

.v535-mt-2 {
  margin-top: 2rem;
}

.v535-mb-1 {
  margin-bottom: 1rem;
}

.v535-mb-2 {
  margin-bottom: 2rem;
}

.v535-hidden {
  display: none;
}
