/**
 * 22JL Layout Styles
 * Version: 1.0.0
 * All classes use prefix 'sec0-' for namespace isolation
 * Color scheme: #2F2F2F (dark bg), #E0FFFF (cyan), #00695C (teal), #A9A9A9 (gray), #1A1A1A (black)
 */

/* CSS Variables */
:root {
  --sec0-primary: #00695C;
  --sec0-secondary: #E0FFFF;
  --sec0-accent: #A9A9A9;
  --sec0-dark: #2F2F2F;
  --sec0-black: #1A1A1A;
  --sec0-bg: #1A1A1A;
  --sec0-text: #E0FFFF;
  --sec0-gradient: linear-gradient(135deg, #00695C 0%, #2F2F2F 100%);
  --sec0-border: #00695C;
  --sec0-shadow: rgba(0, 105, 92, 0.3);
}

/* Reset and Base */
* {
  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.4rem;
  line-height: 1.5;
  color: var(--sec0-text);
  background-color: var(--sec0-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Layout Containers */
.sec0-container {
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.sec0-wrapper {
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.sec0-grid {
  display: grid;
  gap: 1.5rem;
}

/* Header */
.sec0-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--sec0-dark);
  border-bottom: 2px solid var(--sec0-primary);
  box-shadow: 0 2px 10px var(--sec0-shadow);
}

.sec0-header-content {
  max-width: 430px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  height: 60px;
}

.sec0-logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
}

.sec0-logo-icon {
  width: 32px;
  height: 32px;
  border-radius: 6px;
}

.sec0-logo-text {
  font-size: 2rem;
  font-weight: 700;
  color: var(--sec0-secondary);
  letter-spacing: 1px;
}

.sec0-header-actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

/* Menu Toggle */
.sec0-menu-toggle {
  background: none;
  border: none;
  color: var(--sec0-secondary);
  font-size: 2.4rem;
  cursor: pointer;
  padding: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Mobile Menu */
.sec0-mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 280px;
  height: 100vh;
  background: var(--sec0-dark);
  z-index: 9999;
  transition: right 0.3s ease;
  overflow-y: auto;
  border-left: 2px solid var(--sec0-primary);
}

.sec0-mobile-menu.sec0-active {
  right: 0;
}

.sec0-menu-header {
  padding: 2rem 1.5rem;
  border-bottom: 1px solid var(--sec0-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sec0-menu-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--sec0-secondary);
}

.sec0-menu-close {
  background: none;
  border: none;
  color: var(--sec0-secondary);
  font-size: 2.4rem;
  cursor: pointer;
}

.sec0-menu-nav {
  padding: 1.5rem 0;
}

.sec0-menu-link {
  display: flex;
  align-items: center;
  padding: 1.2rem 1.5rem;
  color: var(--sec0-text);
  text-decoration: none;
  font-size: 1.5rem;
  transition: all 0.3s;
  border-left: 3px solid transparent;
}

.sec0-menu-link:hover,
.sec0-menu-link:active {
  background: rgba(0, 105, 92, 0.2);
  border-left-color: var(--sec0-primary);
  color: var(--sec0-secondary);
}

.sec0-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.7);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
}

.sec0-menu-overlay.sec0-active {
  opacity: 1;
  visibility: visible;
}

/* Buttons */
.sec0-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.6rem;
  font-size: 1.3rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s;
  border: none;
  min-height: 44px;
  white-space: nowrap;
}

.sec0-btn-primary {
  background: var(--sec0-primary);
  color: var(--sec0-secondary);
  border: 2px solid var(--sec0-primary);
}

.sec0-btn-primary:hover {
  background: #00897B;
  border-color: #00897B;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px var(--sec0-shadow);
}

.sec0-btn-secondary {
  background: transparent;
  color: var(--sec0-secondary);
  border: 2px solid var(--sec0-primary);
}

.sec0-btn-secondary:hover {
  background: var(--sec0-primary);
  transform: translateY(-2px);
}

/* Main Content */
.sec0-main {
  flex: 1;
  padding-top: 60px;
  padding-bottom: 80px;
}

/* Carousel */
.sec0-carousel {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  border-radius: 12px;
  margin: 2rem 0;
}

.sec0-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease;
  cursor: pointer;
}

.sec0-slide.sec0-active {
  opacity: 1;
}

.sec0-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sec0-indicators {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.8rem;
  z-index: 10;
}

.sec0-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(224, 255, 255, 0.4);
  cursor: pointer;
  transition: all 0.3s;
}

.sec0-indicator.sec0-active {
  background: var(--sec0-secondary);
  width: 24px;
  border-radius: 4px;
}

/* Sections */
.sec0-section {
  margin: 3rem 0;
}

.sec0-section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--sec0-secondary);
  margin-bottom: 1.5rem;
  padding-bottom: 0.8rem;
  border-bottom: 2px solid var(--sec0-primary);
}

/* Game Grid */
.sec0-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
}

.sec0-game-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.3s;
}

.sec0-game-card:active {
  transform: scale(0.95);
}

.sec0-game-image {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 8px;
  object-fit: cover;
  border: 2px solid var(--sec0-primary);
}

.sec0-game-name {
  font-size: 1.1rem;
  color: var(--sec0-text);
  text-align: center;
  margin-top: 0.5rem;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-height: 1.3;
}

/* Content Sections */
.sec0-content-section {
  background: var(--sec0-dark);
  border-radius: 12px;
  padding: 2rem 1.5rem;
  margin: 2rem 0;
  border: 1px solid var(--sec0-border);
}

.sec0-content-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--sec0-secondary);
  margin-bottom: 1.2rem;
}

.sec0-content-text {
  font-size: 1.4rem;
  line-height: 1.6;
  color: var(--sec0-accent);
  margin-bottom: 1rem;
}

.sec0-content-text a {
  color: var(--sec0-primary);
  text-decoration: underline;
  font-weight: 600;
}

.sec0-content-text a:hover {
  color: var(--sec0-secondary);
}

/* Cards */
.sec0-card {
  background: var(--sec0-dark);
  border-radius: 8px;
  padding: 1.5rem;
  border: 1px solid var(--sec0-border);
  transition: transform 0.3s;
}

.sec0-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px var(--sec0-shadow);
}

/* Highlight */
.sec0-highlight {
  color: var(--sec0-secondary);
  font-weight: 700;
}

/* Animation */
.sec0-animate {
  animation: sec0-fadeIn 0.6s ease;
}

@keyframes sec0-fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Footer */
.sec0-footer {
  background: var(--sec0-dark);
  border-top: 2px solid var(--sec0-primary);
  padding: 2rem 0 9rem;
  margin-top: 3rem;
}

.sec0-partners {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  margin: 2rem 0;
  padding: 1.5rem;
}

.sec0-partner-logo {
  width: 100%;
  height: 40px;
  object-fit: contain;
  opacity: 0.6;
  transition: opacity 0.3s;
}

.sec0-partner-logo:hover {
  opacity: 1;
}

.sec0-footer-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin: 2rem 0;
  padding: 0 1.5rem;
}

.sec0-footer-link {
  color: var(--sec0-accent);
  text-decoration: none;
  font-size: 1.3rem;
  padding: 0.5rem 0;
  transition: color 0.3s;
}

.sec0-footer-link:hover {
  color: var(--sec0-secondary);
}

.sec0-copyright {
  text-align: center;
  color: var(--sec0-accent);
  font-size: 1.2rem;
  padding: 1.5rem;
  border-top: 1px solid var(--sec0-border);
}

/* Bottom Navigation */
.sec0-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: linear-gradient(180deg, #2F2F2F 0%, #1A1A1A 100%);
  border-top: 2px solid var(--sec0-primary);
  box-shadow: 0 -2px 10px var(--sec0-shadow);
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 64px;
  padding: 0.5rem 0;
}

.sec0-nav-button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--sec0-accent);
  min-width: 60px;
  min-height: 60px;
  transition: all 0.3s;
  cursor: pointer;
  border-radius: 8px;
}

.sec0-nav-button:active {
  transform: scale(0.9);
}

.sec0-nav-button.sec0-active {
  color: var(--sec0-secondary);
}

.sec0-nav-button.sec0-active .sec0-nav-icon {
  color: var(--sec0-primary);
}

.sec0-nav-icon {
  font-size: 2.4rem;
  margin-bottom: 0.3rem;
  transition: color 0.3s;
}

.sec0-nav-text {
  font-size: 1rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Scroll to Top */
.sec0-scroll-top {
  position: fixed;
  bottom: 80px;
  right: 1.5rem;
  width: 48px;
  height: 48px;
  background: var(--sec0-primary);
  color: var(--sec0-secondary);
  border: none;
  border-radius: 50%;
  font-size: 2rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
  z-index: 999;
  box-shadow: 0 4px 12px var(--sec0-shadow);
}

.sec0-scroll-top.sec0-visible {
  opacity: 1;
  visibility: visible;
}

/* Desktop Styles */
@media (min-width: 769px) {
  .sec0-bottom-nav {
    display: none;
  }

  .sec0-main {
    padding-bottom: 2rem;
  }

  .sec0-scroll-top {
    bottom: 2rem;
  }
}

/* Mobile Specific */
@media (max-width: 768px) {
  .sec0-main {
    padding-bottom: 80px;
  }
}
