/**
 * starph CSS Stylesheet
 * Mobile-first design with pg6a- prefix
 */

/* CSS Variables */
:root {
  --pg6a-primary: #2E8B57;
  --pg6a-secondary: #CD853F;
  --pg6a-accent: #ADFF2F;
  --pg6a-light: #98FB98;
  --pg6a-dark: #212F3D;
  --pg6a-bg: #212F3D;
  --pg6a-text: #98FB98;
  --pg6a-text-dark: #212F3D;
  --pg6a-white: #FFFFFF;
  --pg6a-shadow: rgba(0, 0, 0, 0.3);
  --pg6a-transition: all 0.3s ease;
}

/* 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;
  background-color: var(--pg6a-bg);
  color: var(--pg6a-text);
  overflow-x: hidden;
  padding-bottom: 80px;
}

@media (min-width: 769px) {
  body {
    padding-bottom: 0;
  }
}

/* Container */
.pg6a-container {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header */
.pg6a-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, var(--pg6a-primary) 0%, var(--pg6a-dark) 100%);
  padding: 0.8rem 1rem;
  z-index: 1000;
  box-shadow: 0 2px 10px var(--pg6a-shadow);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.pg6a-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--pg6a-white);
  font-weight: 700;
  font-size: 1.8rem;
}

.pg6a-logo img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
}

.pg6a-header-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.pg6a-btn {
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 8px;
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--pg6a-transition);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
}

.pg6a-btn-primary {
  background: linear-gradient(135deg, var(--pg6a-accent) 0%, var(--pg6a-light) 100%);
  color: var(--pg6a-dark);
}

.pg6a-btn-secondary {
  background: var(--pg6a-white);
  color: var(--pg6a-primary);
}

.pg6a-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px var(--pg6a-shadow);
}

.pg6a-menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.pg6a-menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--pg6a-white);
  border-radius: 2px;
  transition: var(--pg6a-transition);
}

/* Mobile Menu */
.pg6a-mobile-menu {
  position: fixed;
  top: 0;
  left: -100%;
  width: 80%;
  max-width: 300px;
  height: 100vh;
  background: var(--pg6a-dark);
  z-index: 9999;
  transition: left 0.3s ease;
  padding: 4rem 1.5rem;
  overflow-y: auto;
}

.pg6a-mobile-menu.pg6a-menu-open {
  left: 0;
}

.pg6a-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: var(--pg6a-transition);
}

.pg6a-mobile-menu.pg6a-menu-open + .pg6a-menu-overlay {
  opacity: 1;
  visibility: visible;
}

.pg6a-menu-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: var(--pg6a-white);
  font-size: 2rem;
  cursor: pointer;
  padding: 0.5rem;
}

.pg6a-menu-nav a {
  display: block;
  padding: 1rem 0;
  color: var(--pg6a-text);
  text-decoration: none;
  font-size: 1.6rem;
  border-bottom: 1px solid rgba(152, 251, 152, 0.1);
  transition: var(--pg6a-transition);
}

.pg6a-menu-nav a:hover {
  color: var(--pg6a-accent);
  padding-left: 0.5rem;
}

/* Main Content */
.pg6a-main {
  margin-top: 60px;
  min-height: calc(100vh - 200px);
}

/* Carousel */
.pg6a-carousel {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  border-radius: 12px;
  margin-bottom: 2rem;
}

.pg6a-carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.pg6a-carousel-slide.pg6a-active {
  opacity: 1;
}

.pg6a-carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
}

/* Section */
.pg6a-section {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: rgba(46, 139, 87, 0.1);
  border-radius: 12px;
  border: 1px solid rgba(46, 139, 87, 0.3);
}

.pg6a-section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--pg6a-accent);
  margin-bottom: 1rem;
  text-align: center;
}

.pg6a-section-subtitle {
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--pg6a-light);
  margin-bottom: 0.8rem;
}

/* Game Grid */
.pg6a-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
  margin-bottom: 1.5rem;
}

.pg6a-game-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: var(--pg6a-text);
  transition: var(--pg6a-transition);
  cursor: pointer;
}

.pg6a-game-item:hover {
  transform: scale(1.05);
}

.pg6a-game-icon {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 0.3rem;
  background: rgba(255, 255, 255, 0.05);
}

.pg6a-game-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pg6a-game-name {
  font-size: 1rem;
  text-align: center;
  line-height: 1.2;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Links */
.pg6a-link {
  color: var(--pg6a-accent);
  text-decoration: none;
  font-weight: 600;
  transition: var(--pg6a-transition);
  cursor: pointer;
}

.pg6a-link:hover {
  color: var(--pg6a-light);
  text-decoration: underline;
}

/* Cards */
.pg6a-card {
  background: rgba(205, 133, 63, 0.1);
  border: 1px solid rgba(205, 133, 63, 0.3);
  border-radius: 12px;
  padding: 1.2rem;
  margin-bottom: 1rem;
}

.pg6a-card h3 {
  font-size: 1.6rem;
  color: var(--pg6a-secondary);
  margin-bottom: 0.8rem;
}

.pg6a-card p {
  font-size: 1.4rem;
  line-height: 1.6;
  margin-bottom: 0.8rem;
}

/* Footer */
.pg6a-footer {
  background: var(--pg6a-dark);
  padding: 2rem 1rem 1rem;
  margin-top: 2rem;
  border-top: 2px solid var(--pg6a-primary);
}

.pg6a-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.pg6a-footer-links a {
  color: var(--pg6a-text);
  text-decoration: none;
  font-size: 1.2rem;
  padding: 0.3rem 0.8rem;
  background: rgba(46, 139, 87, 0.2);
  border-radius: 6px;
  transition: var(--pg6a-transition);
}

.pg6a-footer-links a:hover {
  background: var(--pg6a-primary);
  color: var(--pg6a-white);
}

.pg6a-partners {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.pg6a-partners img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  opacity: 0.7;
  transition: var(--pg6a-transition);
}

.pg6a-partners img:hover {
  opacity: 1;
}

.pg6a-copyright {
  text-align: center;
  font-size: 1.2rem;
  color: rgba(152, 251, 152, 0.7);
  padding-top: 1rem;
  border-top: 1px solid rgba(46, 139, 87, 0.3);
}

/* Mobile Bottom Navigation */
.pg6a-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(180deg, var(--pg6a-dark) 0%, #1a2530 100%);
  padding: 0.5rem 0;
  z-index: 1000;
  display: flex;
  justify-content: space-around;
  border-top: 2px solid var(--pg6a-primary);
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
}

@media (min-width: 769px) {
  .pg6a-bottom-nav {
    display: none;
  }
}

.pg6a-bottom-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 60px;
  text-decoration: none;
  color: var(--pg6a-text);
  font-size: 1rem;
  gap: 0.3rem;
  transition: var(--pg6a-transition);
  position: relative;
}

.pg6a-bottom-nav a:hover,
.pg6a-bottom-nav a.pg6a-active {
  color: var(--pg6a-accent);
}

.pg6a-bottom-nav a:hover {
  transform: scale(1.1);
}

.pg6a-bottom-nav i,
.pg6a-bottom-nav svg {
  font-size: 2.2rem;
  width: 24px;
  height: 24px;
}

.pg6a-bottom-nav .material-icons {
  font-size: 2.4rem;
}

/* Utilities */
.pg6a-mt-1 { margin-top: 1rem; }
.pg6a-mt-2 { margin-top: 2rem; }
.pg6a-mb-1 { margin-bottom: 1rem; }
.pg6a-mb-2 { margin-bottom: 2rem; }
.pg6a-text-center { text-align: center; }
.pg6a-text-accent { color: var(--pg6a-accent); }

/* Responsive */
@media (min-width: 769px) {
  .pg6a-container {
    max-width: 1200px;
  }

  .pg6a-game-grid {
    grid-template-columns: repeat(8, 1fr);
  }

  .pg6a-carousel {
    height: 350px;
  }

  .pg6a-menu-toggle {
    display: none;
  }
}
