/**
 * ssg77.com - Main Stylesheet
 * Mobile-first responsive design with custom prefix
 */

/* CSS Reset and Base Styles */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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: #E0F2F1;
  background-color: #1C2833;
  min-height: 100vh;
  overflow-x: hidden;
}

/* CSS Variables */
:root {
  --pg43-primary: #B2DFDB;
  --pg43-secondary: #AFEEEE;
  --pg43-accent: #E0F2F1;
  --pg43-bg-dark: #1C2833;
  --pg43-bg-darker: #0f161b;
  --pg43-text-light: #E0F2F1;
  --pg43-text-dim: #B2DFDB;
  --pg43-border: rgba(178, 223, 219, 0.1);
  --pg43-shadow: rgba(0, 0, 0, 0.3);
  --pg43-gradient: linear-gradient(135deg, #B2DFDB 0%, #AFEEEE 100%);
}

/* Container */
.pg43-container {
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1rem;
  width: 100%;
}

.pg43-wrapper {
  padding-bottom: 80px;
}

/* Header Styles */
.pg43-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(28, 40, 51, 0.98);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--pg43-border);
  z-index: 1000;
  padding: 0.8rem 1rem;
}

.pg43-header-content {
  max-width: 430px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.pg43-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--pg43-text-light);
  font-size: 1.8rem;
  font-weight: 700;
}

.pg43-logo img {
  width: 32px;
  height: 32px;
  border-radius: 6px;
}

.pg43-header-buttons {
  display: flex;
  gap: 0.5rem;
}

.pg43-btn {
  padding: 0.6rem 1.2rem;
  border: none;
  border-radius: 6px;
  font-size: 1.3rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

.pg43-btn-primary {
  background: var(--pg43-gradient);
  color: var(--pg43-bg-dark);
}

.pg43-btn-secondary {
  background: transparent;
  color: var(--pg43-primary);
  border: 1px solid var(--pg43-primary);
}

.pg43-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px var(--pg43-shadow);
}

.pg43-btn.touching,
.pg43-btn:active {
  transform: scale(0.95);
}

.pg43-menu-toggle {
  background: none;
  border: none;
  color: var(--pg43-text-light);
  font-size: 2rem;
  cursor: pointer;
  padding: 0.5rem;
}

/* Mobile Menu */
.pg43-mobile-menu {
  position: fixed;
  top: 0;
  left: -100%;
  width: 80%;
  max-width: 300px;
  height: 100vh;
  background: var(--pg43-bg-darker);
  z-index: 9999;
  transition: left 0.3s ease;
  padding: 2rem 0;
  overflow-y: auto;
}

.pg43-mobile-menu.pg43-menu-open {
  left: 0;
}

.pg43-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.pg43-mobile-menu.pg43-menu-open + .pg43-menu-overlay {
  opacity: 1;
  visibility: visible;
}

.pg43-menu-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: var(--pg43-text-light);
  font-size: 2rem;
  cursor: pointer;
  padding: 0.5rem;
}

.pg43-menu-nav {
  padding: 1rem;
}

.pg43-menu-nav a {
  display: block;
  padding: 1rem;
  color: var(--pg43-text-light);
  text-decoration: none;
  border-bottom: 1px solid var(--pg43-border);
  font-size: 1.5rem;
  transition: all 0.3s ease;
}

.pg43-menu-nav a:hover {
  background: rgba(178, 223, 219, 0.1);
  color: var(--pg43-primary);
  padding-left: 1.5rem;
}

/* Main Content */
.pg43-main {
  margin-top: 60px;
  padding: 1.5rem 0;
}

/* Carousel */
.pg43-carousel {
  position: relative;
  margin-bottom: 2rem;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px var(--pg43-shadow);
}

.pg43-carousel-slide {
  display: none;
  width: 100%;
}

.pg43-carousel-slide:first-child {
  display: block;
}

.pg43-carousel-slide img {
  width: 100%;
  height: auto;
  display: block;
}

/* Section Styles */
.pg43-section {
  margin-bottom: 2.5rem;
  padding: 1.5rem;
  background: rgba(178, 223, 219, 0.05);
  border-radius: 12px;
  border: 1px solid var(--pg43-border);
}

.pg43-section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--pg43-primary);
  margin-bottom: 1.5rem;
  text-align: center;
}

/* Game Grid */
.pg43-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
}

.pg43-game-item {
  background: rgba(28, 40, 51, 0.8);
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: block;
}

.pg43-game-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px var(--pg43-shadow);
}

.pg43-game-item.touching,
.pg43-game-item:active {
  transform: scale(0.95);
}

.pg43-game-icon {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
}

.pg43-game-name {
  padding: 0.5rem;
  font-size: 1rem;
  color: var(--pg43-text-light);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Card Styles */
.pg43-card {
  background: rgba(28, 40, 51, 0.8);
  border-radius: 10px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border: 1px solid var(--pg43-border);
}

.pg43-card-title {
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--pg43-secondary);
  margin-bottom: 1rem;
}

.pg43-card-content {
  font-size: 1.4rem;
  line-height: 1.6;
  color: var(--pg43-text-dim);
}

/* Link Styles */
.pg43-link {
  color: var(--pg43-primary);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.pg43-link:hover {
  color: var(--pg43-secondary);
  text-decoration: underline;
}

/* Bottom Navigation */
.pg43-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(28, 40, 51, 0.98);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--pg43-border);
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 60px;
  z-index: 1000;
  padding: 0.5rem 0;
}

.pg43-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(--pg43-text-dim);
  transition: all 0.3s ease;
  gap: 0.3rem;
}

.pg43-bottom-nav a:hover {
  color: var(--pg43-primary);
  transform: scale(1.1);
}

.pg43-bottom-nav a.pg43-active {
  color: var(--pg43-primary);
}

.pg43-bottom-nav-icon {
  font-size: 24px;
}

.pg43-bottom-nav-label {
  font-size: 10px;
  font-weight: 500;
}

/* Footer */
.pg43-footer {
  background: var(--pg43-bg-darker);
  padding: 2rem 0 8rem;
  margin-top: 3rem;
  border-top: 1px solid var(--pg43-border);
}

.pg43-footer-content {
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1rem;
}

.pg43-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
  justify-content: center;
}

.pg43-footer-links a {
  color: var(--pg43-text-dim);
  text-decoration: none;
  font-size: 1.3rem;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  background: rgba(178, 223, 219, 0.05);
  transition: all 0.3s ease;
}

.pg43-footer-links a:hover {
  background: rgba(178, 223, 219, 0.15);
  color: var(--pg43-primary);
}

.pg43-partners {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.pg43-partner-logo {
  width: 50px;
  height: 30px;
  object-fit: contain;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.pg43-partner-logo:hover {
  opacity: 1;
}

.pg43-copyright {
  text-align: center;
  color: var(--pg43-text-dim);
  font-size: 1.2rem;
  padding: 1rem;
  border-top: 1px solid var(--pg43-border);
}

/* Typography */
h1 {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--pg43-text-light);
  margin-bottom: 1.5rem;
  text-align: center;
  line-height: 1.3;
}

h2 {
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--pg43-secondary);
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--pg43-primary);
  margin-bottom: 0.8rem;
}

p {
  margin-bottom: 1rem;
  color: var(--pg43-text-dim);
}

/* Utility Classes */
.pg43-text-center {
  text-align: center;
}

.pg43-mb-1 {
  margin-bottom: 1rem;
}

.pg43-mb-2 {
  margin-bottom: 2rem;
}

/* Desktop Styles */
@media (min-width: 769px) {
  .pg43-bottom-nav {
    display: none;
  }

  .pg43-wrapper {
    padding-bottom: 2rem;
  }

  .pg43-container {
    max-width: 1200px;
  }

  .pg43-game-grid {
    grid-template-columns: repeat(8, 1fr);
  }
}

/* Animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.pg43-fade-in {
  animation: fadeIn 0.6s ease;
}
