/**
 * LL777 Layout Stylesheet
 * All classes use prefix: gcc4-
 * Mobile-first responsive design
 * Color palette: #808080, #778899, #0F0F23, #9370DB, #6C757D, #BA55D3
 */

/* CSS Variables */
:root {
  --gcc4-primary: #9370DB;
  --gcc4-secondary: #BA55D3;
  --gcc4-dark: #0F0F23;
  --gcc4-gray: #808080;
  --gcc4-light-gray: #778899;
  --gcc4-medium-gray: #6C757D;
  --gcc4-white: #FFFFFF;
  --gcc4-black: #000000;
  --gcc4-bg-dark: #0F0F23;
  --gcc4-bg-card: #1a1a35;
  --gcc4-text: #E8E8E8;
  --gcc4-text-muted: #B0B0B0;
  --gcc4-border: #2a2a4a;
  --gcc4-gradient: linear-gradient(135deg, #9370DB 0%, #BA55D3 100%);
  --gcc4-shadow: 0 4px 12px rgba(147, 112, 219, 0.3);
  --gcc4-shadow-hover: 0 6px 20px rgba(147, 112, 219, 0.5);
}

/* Reset & Base Styles */
* {
  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, Oxygen, Ubuntu, Cantarell, sans-serif;
  font-size: 1.6rem;
  line-height: 1.5;
  color: var(--gcc4-text);
  background-color: var(--gcc4-bg-dark);
  min-height: 100vh;
  overflow-x: hidden;
}

/* Container */
.gcc4-container {
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.gcc4-wrapper {
  width: 100%;
  overflow: hidden;
}

/* Header Styles */
.gcc4-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: var(--gcc4-dark);
  border-bottom: 2px solid var(--gcc4-primary);
  z-index: 1000;
  transition: box-shadow 0.3s ease;
}

.gcc4-header.gcc4-scrolled {
  box-shadow: var(--gcc4-shadow);
}

.gcc4-header-inner {
  max-width: 430px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  height: 60px;
}

.gcc4-logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  color: var(--gcc4-white);
  font-weight: 700;
  font-size: 1.8rem;
}

.gcc4-logo-icon {
  width: 28px;
  height: 28px;
}

.gcc4-header-buttons {
  display: flex;
  gap: 0.8rem;
}

.gcc4-btn {
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  font-size: 1.3rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  display: inline-block;
  text-align: center;
}

.gcc4-btn-primary {
  background: var(--gcc4-gradient);
  color: var(--gcc4-white);
  box-shadow: 0 2px 8px rgba(147, 112, 219, 0.4);
}

.gcc4-btn-primary:hover,
.gcc4-btn-primary.gcc4-touching {
  transform: translateY(-2px);
  box-shadow: var(--gcc4-shadow-hover);
}

.gcc4-btn-secondary {
  background: transparent;
  color: var(--gcc4-primary);
  border: 2px solid var(--gcc4-primary);
}

.gcc4-btn-secondary:hover,
.gcc4-btn-secondary.gcc4-touching {
  background: var(--gcc4-primary);
  color: var(--gcc4-white);
}

.gcc4-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--gcc4-primary);
  font-size: 2.4rem;
  cursor: pointer;
  padding: 0.5rem;
}

/* Mobile Menu */
.gcc4-mobile-menu {
  position: fixed;
  top: 60px;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--gcc4-bg-dark);
  z-index: 9999;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
  padding: 2rem 0;
}

.gcc4-mobile-menu.gcc4-active {
  transform: translateX(0);
}

.gcc4-menu-list {
  list-style: none;
  padding: 0 1.5rem;
}

.gcc4-menu-item {
  margin-bottom: 0.5rem;
}

.gcc4-menu-link {
  display: block;
  padding: 1.2rem 1.5rem;
  color: var(--gcc4-text);
  text-decoration: none;
  font-size: 1.6rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.gcc4-menu-link:hover,
.gcc4-menu-link.gcc4-touching {
  background: var(--gcc4-bg-card);
  border-color: var(--gcc4-primary);
  color: var(--gcc4-primary);
}

/* Main Content */
main {
  padding-top: 80px;
  padding-bottom: 80px;
  min-height: 100vh;
}

/* Carousel */
.gcc4-carousel {
  position: relative;
  width: 100%;
  height: 200px;
  margin-bottom: 2rem;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--gcc4-shadow);
}

.gcc4-carousel-slide {
  width: 100%;
  height: 100%;
  display: none;
}

.gcc4-carousel-slide:first-child {
  display: block;
}

.gcc4-carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gcc4-carousel-slide:hover {
  cursor: pointer;
}

/* Section Styles */
.gcc4-section {
  margin-bottom: 3rem;
  padding: 2rem;
  background: var(--gcc4-bg-card);
  border-radius: 12px;
  border: 1px solid var(--gcc4-border);
}

.gcc4-section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--gcc4-primary);
  margin-bottom: 1.5rem;
  text-align: center;
}

.gcc4-section-title h2 {
  font-size: inherit;
  font-weight: inherit;
  color: inherit;
}

/* Game Grid */
.gcc4-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.gcc4-game-card {
  background: var(--gcc4-bg-dark);
  border-radius: 10px;
  overflow: hidden;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  display: block;
}

.gcc4-game-card:hover,
.gcc4-game-card.gcc4-game-hover {
  border-color: var(--gcc4-primary);
  transform: translateY(-4px);
  box-shadow: var(--gcc4-shadow);
}

.gcc4-game-image {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
}

.gcc4-game-name {
  padding: 0.6rem 0.4rem;
  font-size: 1rem;
  color: var(--gcc4-text);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Category Section */
.gcc4-category {
  margin-bottom: 2.5rem;
}

.gcc4-category-title {
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--gcc4-secondary);
  margin-bottom: 1rem;
  padding-left: 1rem;
  border-left: 4px solid var(--gcc4-primary);
}

.gcc4-category-title h3 {
  font-size: inherit;
  font-weight: inherit;
  color: inherit;
}

/* Text Content */
.gcc4-content p {
  margin-bottom: 1.2rem;
  color: var(--gcc4-text-muted);
  text-align: justify;
}

.gcc4-content a {
  color: var(--gcc4-primary);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.gcc4-content a:hover {
  color: var(--gcc4-secondary);
  text-decoration: underline;
}

/* Footer */
.gcc4-footer {
  background: var(--gcc4-bg-card);
  border-top: 2px solid var(--gcc4-primary);
  padding: 2.5rem 1.5rem 8rem;
  margin-top: 3rem;
}

.gcc4-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.gcc4-footer-link {
  color: var(--gcc4-primary);
  text-decoration: none;
  font-size: 1.4rem;
  padding: 0.5rem 1rem;
  border: 1px solid var(--gcc4-border);
  border-radius: 6px;
  transition: all 0.3s ease;
}

.gcc4-footer-link:hover {
  background: var(--gcc4-primary);
  color: var(--gcc4-white);
  border-color: var(--gcc4-primary);
}

.gcc4-partners {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.gcc4-partner-logo {
  height: 35px;
  width: auto;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.gcc4-partner-logo:hover {
  opacity: 1;
}

.gcc4-copyright {
  text-align: center;
  color: var(--gcc4-text-muted);
  font-size: 1.2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--gcc4-border);
}

.gcc4-footer-text {
  text-align: center;
  color: var(--gcc4-text-muted);
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

/* Mobile Bottom Navigation */
.gcc4-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(180deg, var(--gcc4-bg-card) 0%, var(--gcc4-dark) 100%);
  border-top: 2px solid var(--gcc4-primary);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 -2px 10px rgba(147, 112, 219, 0.3);
}

.gcc4-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 60px;
  text-decoration: none;
  color: var(--gcc4-text-muted);
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  background: none;
  padding: 0.5rem;
}

.gcc4-nav-item:hover,
.gcc4-nav-item.gcc4-active {
  color: var(--gcc4-primary);
  transform: scale(1.1);
}

.gcc4-nav-icon {
  font-size: 22px;
  margin-bottom: 0.2rem;
}

.gcc4-nav-label {
  font-size: 10px;
  font-weight: 500;
}

/* Utility Classes */
.gcc4-text-center {
  text-align: center;
}

.gcc4-mb-1 {
  margin-bottom: 1rem;
}

.gcc4-mb-2 {
  margin-bottom: 2rem;
}

.gcc4-mt-2 {
  margin-top: 2rem;
}

.gcc4-highlight {
  color: var(--gcc4-primary);
  font-weight: 600;
}

/* Link Button */
.gcc4-link-btn {
  color: var(--gcc4-primary);
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.gcc4-link-btn:hover {
  color: var(--gcc4-secondary);
  text-decoration: underline;
  transform: scale(1.05);
  display: inline-block;
}

/* Desktop Responsive */
@media (min-width: 769px) {
  .gcc4-bottom-nav {
    display: none;
  }

  main {
    padding-bottom: 2rem;
  }

  .gcc4-menu-toggle {
    display: block;
  }
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .gcc4-menu-toggle {
    display: block;
  }

  .gcc4-header-buttons {
    display: none;
  }

  .gcc4-container {
    padding: 0 1rem;
  }
}

/* Animation */
@keyframes gcc4-pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

.gcc4-pulse {
  animation: gcc4-pulse 2s infinite;
}

/* Card Hover Effect */
.gcc4-card {
  background: var(--gcc4-bg-card);
  border-radius: 12px;
  padding: 1.5rem;
  border: 1px solid var(--gcc4-border);
  transition: all 0.3s ease;
}

.gcc4-card:hover {
  border-color: var(--gcc4-primary);
  box-shadow: var(--gcc4-shadow);
  transform: translateY(-2px);
}
