/**
 * jilbb - Main Stylesheet
 * CSS class prefix: g020-
 * Mobile-first responsive design
 */

:root {
  --g020-primary: #708090;
  --g020-secondary: #A9A9A9;
  --g020-accent: #808080;
  --g020-dark: #141414;
  --g020-medium: #36454F;
  --g020-light: #A9A9A9;
  --g020-white: #FFFFFF;
  --g020-text: #A9A9A9;
  --g020-text-muted: #808080;
  --g020-border: #36454F;
  --g020-shadow: rgba(0, 0, 0, 0.4);
}

* {
  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, sans-serif;
  font-size: 1.6rem;
  line-height: 1.5;
  color: var(--g020-text);
  background-color: var(--g020-dark);
  min-height: 100vh;
  padding-bottom: 70px;
}

.g020-container {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1rem;
}

.g020-wrapper {
  width: 100%;
  overflow-x: hidden;
}

.g020-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: linear-gradient(180deg, var(--g020-medium), var(--g020-dark));
  border-bottom: 2px solid var(--g020-primary);
  z-index: 1000;
  box-shadow: 0 2px 10px var(--g020-shadow);
}

.g020-header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 1rem;
  max-width: 430px;
  margin: 0 auto;
}

.g020-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--g020-white);
}

.g020-logo-icon {
  width: 28px;
  height: 28px;
  margin-right: 0.5rem;
}

.g020-logo span {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--g020-secondary);
}

.g020-header-buttons {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.g020-btn {
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 5px;
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  min-height: 38px;
}

.g020-btn-primary {
  background: linear-gradient(135deg, var(--g020-primary), var(--g020-secondary));
  color: var(--g020-white);
}

.g020-btn-primary:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(112, 128, 144, 0.4);
}

.g020-btn-secondary {
  background-color: transparent;
  color: var(--g020-white);
  border: 1px solid var(--g020-secondary);
}

.g020-btn-secondary:hover {
  background-color: var(--g020-secondary);
  color: var(--g020-dark);
}

.g020-menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  width: 28px;
  height: 24px;
  cursor: pointer;
  margin-left: 0.5rem;
}

.g020-menu-toggle span {
  width: 100%;
  height: 3px;
  background-color: var(--g020-white);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.g020-mobile-menu {
  position: fixed;
  top: 60px;
  left: -100%;
  width: 100%;
  max-width: 430px;
  height: calc(100vh - 60px);
  background-color: var(--g020-dark);
  transition: left 0.3s ease;
  z-index: 999;
  overflow-y: auto;
  border-top: 2px solid var(--g020-primary);
}

.g020-mobile-menu.g020-menu-open {
  left: 0;
}

.g020-menu-list {
  list-style: none;
  padding: 1rem 0;
}

.g020-menu-item {
  border-bottom: 1px solid var(--g020-border);
}

.g020-menu-link {
  display: flex;
  align-items: center;
  padding: 1rem;
  color: var(--g020-text);
  text-decoration: none;
  font-size: 1.4rem;
  transition: background-color 0.3s ease;
}

.g020-menu-link:hover {
  background-color: var(--g020-medium);
  color: var(--g020-secondary);
}

.g020-menu-icon {
  margin-right: 0.8rem;
  font-size: 1.6rem;
  width: 24px;
  text-align: center;
}

.g020-main {
  margin-top: 60px;
  padding: 1.5rem 0;
  min-height: calc(100vh - 130px);
}

.g020-section {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background-color: rgba(54, 69, 79, 0.3);
  border-radius: 10px;
  border: 1px solid var(--g020-border);
}

.g020-section-title h1,
.g020-section-title h2 {
  color: var(--g020-secondary);
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.g020-section-title h1 {
  font-size: 2rem;
  background: linear-gradient(135deg, var(--g020-secondary), var(--g020-primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.g020-card-content {
  color: var(--g020-text);
  font-size: 1.5rem;
  line-height: 1.6;
}

.g020-highlight {
  color: var(--g020-secondary);
  font-weight: 600;
}

.g020-accent-text {
  color: var(--g020-primary);
  font-weight: 600;
}

.g020-carousel {
  position: relative;
  width: 100%;
  height: 200px;
  margin-bottom: 1.5rem;
  border-radius: 10px;
  overflow: hidden;
}

.g020-carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.g020-carousel-slide.g020-slide-active {
  opacity: 1;
}

.g020-carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.g020-games-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
  margin-top: 1rem;
}

.g020-game-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.5rem;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.g020-game-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 15px var(--g020-shadow);
  background-color: rgba(112, 128, 144, 0.1);
}

.g020-game-icon {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 0.3rem;
}

.g020-game-name {
  font-size: 1rem;
  color: var(--g020-text);
  text-align: center;
  word-wrap: break-word;
  line-height: 1.2;
}

.g020-promo-btn {
  padding: 0.8rem 1.5rem;
  background: linear-gradient(135deg, var(--g020-primary), var(--g020-secondary));
  color: var(--g020-white);
  border: none;
  border-radius: 25px;
  font-size: 1.4rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(112, 128, 144, 0.4);
  min-height: 44px;
}

.g020-promo-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(112, 128, 144, 0.6);
}

.g020-promo-btn-large {
  padding: 1rem 2rem;
  font-size: 1.6rem;
}

.g020-feature-list {
  list-style: none;
  margin-top: 1rem;
}

.g020-feature-item {
  display: flex;
  align-items: flex-start;
  padding: 1rem;
  margin-bottom: 0.8rem;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  border-left: 3px solid var(--g020-secondary);
}

.g020-feature-icon {
  font-size: 1.8rem;
  color: var(--g020-secondary);
  margin-right: 1rem;
  min-width: 28px;
}

.g020-feature-content {
  flex: 1;
}

.g020-feature-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--g020-secondary);
  margin-bottom: 0.3rem;
}

.g020-feature-text {
  font-size: 1.3rem;
  color: var(--g020-text);
  line-height: 1.5;
}

.g020-footer {
  background-color: var(--g020-medium);
  padding: 2rem 0 80px;
  margin-top: 2rem;
  border-top: 3px solid var(--g020-primary);
}

.g020-footer-content {
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1rem;
  text-align: center;
}

.g020-footer-description {
  color: var(--g020-text);
  font-size: 1.3rem;
  margin-bottom: 1rem;
  line-height: 1.5;
}

.g020-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.g020-footer-link {
  color: var(--g020-secondary);
  text-decoration: none;
  font-size: 1.2rem;
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.g020-footer-link:hover {
  background-color: var(--g020-primary);
  color: var(--g020-white);
}

.g020-partners {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.g020-partner-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.7;
  transition: all 0.3s ease;
}

.g020-partner-logo:hover {
  filter: grayscale(0%);
  opacity: 1;
}

.g020-copyright {
  color: var(--g020-text-muted);
  font-size: 1.1rem;
  margin-top: 1rem;
}

.g020-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(180deg, var(--g020-medium), var(--g020-dark));
  border-top: 2px solid var(--g020-primary);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  max-width: 430px;
  margin: 0 auto;
}

.g020-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 60px;
  text-decoration: none;
  color: var(--g020-text);
  transition: all 0.3s ease;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0.3rem;
}

.g020-nav-item:hover,
.g020-nav-item.g020-active {
  color: var(--g020-secondary);
  transform: scale(1.1);
}

.g020-nav-icon {
  font-size: 22px;
  margin-bottom: 0.2rem;
}

.g020-nav-text {
  font-size: 1rem;
  font-weight: 500;
}

.g020-touch-active {
  transform: scale(0.95) !important;
  opacity: 0.8;
}

@media (min-width: 769px) {
  .g020-bottom-nav {
    display: none;
  }

  body {
    padding-bottom: 0;
  }
}

.g020-text-center {
  text-align: center;
}

.g020-mt-1 { margin-top: 1rem; }
.g020-mt-2 { margin-top: 2rem; }
.g020-mb-1 { margin-bottom: 1rem; }
.g020-mb-2 { margin-bottom: 2rem; }
