/**
 * JL56 Core CSS Stylesheet
 * All classes use pgf6- prefix to avoid conflicts
 */

/* Root Variables */
:root {
  --pgf6-primary: #008B8B;
  --pgf6-secondary: #00E5FF;
  --pgf6-accent: #48D1CC;
  --pgf6-dark: #0F0F23;
  --pgf6-light: #E0FFFF;
  --pgf6-white: #ffffff;
  --pgf6-gray: #6c757d;
  --pgf6-success: #28a745;
  --pgf6-danger: #dc3545;
  --pgf6-warning: #ffc107;
}

/* Reset & 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.6rem;
  line-height: 1.5;
  color: var(--pgf6-light);
  background-color: var(--pgf6-dark);
  min-width: 320px;
  max-width: 430px;
  margin: 0 auto;
  overflow-x: hidden;
}

/* Container & Wrapper */
.pgf6-container {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1rem;
}

.pgf6-wrapper {
  padding-bottom: 8rem;
}

/* Header Styles */
.pgf6-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  max-width: 430px;
  margin: 0 auto;
  background: linear-gradient(135deg, var(--pgf6-primary) 0%, var(--pgf6-dark) 100%);
  box-shadow: 0 2px 10px rgba(0, 229, 255, 0.3);
  z-index: 1000;
  padding: 0.8rem 1rem;
}

.pgf6-header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.pgf6-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--pgf6-light);
  font-size: 1.8rem;
  font-weight: bold;
}

.pgf6-logo img {
  width: 28px;
  height: 28px;
}

.pgf6-header-buttons {
  display: flex;
  gap: 0.5rem;
}

.pgf6-btn {
  padding: 0.6rem 1.2rem;
  border: none;
  border-radius: 5px;
  font-size: 1.3rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.pgf6-btn-primary {
  background: linear-gradient(135deg, var(--pgf6-secondary) 0%, var(--pgf6-accent) 100%);
  color: var(--pgf6-dark);
  box-shadow: 0 2px 8px rgba(0, 229, 255, 0.4);
}

.pgf6-btn-secondary {
  background: transparent;
  color: var(--pgf6-light);
  border: 2px solid var(--pgf6-secondary);
}

.pgf6-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 229, 255, 0.6);
}

.pgf6-menu-btn {
  background: none;
  border: none;
  color: var(--pgf6-light);
  font-size: 2.4rem;
  cursor: pointer;
  padding: 0.3rem;
  line-height: 1;
}

/* Mobile Menu */
.pgf6-mobile-menu {
  display: none;
  position: fixed;
  top: 5rem;
  left: 0;
  right: 0;
  max-width: 430px;
  margin: 0 auto;
  background: rgba(15, 15, 35, 0.98);
  backdrop-filter: blur(10px);
  z-index: 9999;
  padding: 1rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.pgf6-mobile-menu.show {
  display: block;
}

.pgf6-menu-item {
  display: block;
  padding: 1rem;
  color: var(--pgf6-light);
  text-decoration: none;
  border-bottom: 1px solid rgba(72, 209, 204, 0.2);
  transition: background 0.3s ease;
  font-size: 1.5rem;
}

.pgf6-menu-item:hover {
  background: rgba(72, 209, 204, 0.1);
  color: var(--pgf6-secondary);
}

/* Main Content */
main {
  margin-top: 5rem;
  padding: 1.5rem 1rem;
  min-height: 60vh;
}

h1, h2, h3, h4 {
  color: var(--pgf6-secondary);
  margin-bottom: 1rem;
  line-height: 1.3;
}

h1 {
  font-size: 2.2rem;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-shadow: 0 0 20px rgba(0, 229, 255, 0.5);
}

h2 {
  font-size: 1.9rem;
  margin-top: 2rem;
  border-left: 4px solid var(--pgf6-accent);
  padding-left: 1rem;
}

h3 {
  font-size: 1.6rem;
  margin-top: 1.5rem;
}

p {
  margin-bottom: 1rem;
  color: var(--pgf6-light);
}

/* Carousel */
.pgf6-carousel {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  border-radius: 10px;
  margin-bottom: 2rem;
  box-shadow: 0 4px 15px rgba(0, 229, 255, 0.3);
}

.pgf6-carousel-slide {
  display: none;
  width: 100%;
  height: 100%;
}

.pgf6-carousel-slide:first-child {
  display: block;
}

.pgf6-carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Game Grid */
.pgf6-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
  margin-bottom: 2rem;
}

.pgf6-card {
  background: linear-gradient(145deg, rgba(0, 139, 139, 0.2) 0%, rgba(15, 15, 35, 0.8) 100%);
  border-radius: 8px;
  padding: 0.8rem;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 1px solid rgba(72, 209, 204, 0.2);
}

.pgf6-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 229, 255, 0.5);
  border-color: var(--pgf6-secondary);
}

.pgf6-card img {
  width: 100%;
  height: auto;
  border-radius: 5px;
  margin-bottom: 0.5rem;
}

.pgf6-card-title {
  font-size: 1.1rem;
  color: var(--pgf6-light);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Link Styles */
.pgf6-link {
  color: var(--pgf6-secondary);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.pgf6-link:hover {
  color: var(--pgf6-accent);
  text-decoration: underline;
}

/* Footer */
.pgf6-footer {
  background: linear-gradient(135deg, var(--pgf6-dark) 0%, rgba(0, 139, 139, 0.3) 100%);
  padding: 2rem 1rem;
  margin-top: 2rem;
  border-top: 2px solid var(--pgf6-accent);
}

.pgf6-footer h4 {
  color: var(--pgf6-secondary);
  margin-bottom: 1rem;
}

.pgf6-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.pgf6-footer-link {
  color: var(--pgf6-light);
  text-decoration: none;
  font-size: 1.3rem;
  transition: color 0.3s ease;
}

.pgf6-footer-link:hover {
  color: var(--pgf6-secondary);
}

.pgf6-partners {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.pgf6-partner img {
  height: 30px;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.pgf6-partner img:hover {
  opacity: 1;
}

.pgf6-copyright {
  text-align: center;
  color: var(--pgf6-gray);
  font-size: 1.2rem;
  padding: 1rem 0;
}

/* Mobile Bottom Navigation */
.pgf6-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  max-width: 430px;
  margin: 0 auto;
  background: linear-gradient(135deg, var(--pgf6-primary) 0%, var(--pgf6-dark) 100%);
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 60px;
  z-index: 1000;
  box-shadow: 0 -2px 10px rgba(0, 229, 255, 0.3);
  border-top: 1px solid var(--pgf6-accent);
}

.pgf6-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 60px;
  color: var(--pgf6-light);
  text-decoration: none;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.pgf6-nav-item i {
  font-size: 24px;
  margin-bottom: 2px;
}

.pgf6-nav-item span {
  font-size: 10px;
  font-weight: 500;
}

.pgf6-nav-item:hover {
  color: var(--pgf6-secondary);
  transform: scale(1.1);
}

.pgf6-nav-item.active {
  color: var(--pgf6-secondary);
}

.pgf6-nav-item.active::after {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 3px;
  background: var(--pgf6-secondary);
  border-radius: 0 0 3px 3px;
}

/* Responsive */
@media (min-width: 769px) {
  .pgf6-bottom-nav {
    display: none;
  }

  main {
    padding-bottom: 0;
  }
}

@media (max-width: 768px) {
  main {
    padding-bottom: 8rem;
  }
}

/* Utility Classes */
.pgf6-text-center {
  text-align: center;
}

.pgf6-mt-1 {
  margin-top: 1rem;
}

.pgf6-mt-2 {
  margin-top: 2rem;
}

.pgf6-mb-1 {
  margin-bottom: 1rem;
}

.pgf6-mb-2 {
  margin-bottom: 2rem;
}

.pgf6-highlight {
  color: var(--pgf6-secondary);
  font-weight: bold;
}
