/* genymotion gaming website CSS stylesheet */
/* Mobile-first responsive design with pg0c- prefix */

/* CSS Variables */
:root {
  --pg0c-primary: #40E0D0;
  --pg0c-dark-bg: #0D1117;
  --pg0c-light-text: #E8F5E8;
  --pg0c-secondary: #1f6f59;
  --pg0c-accent: #ff6b6b;
  --pg0c-border: #2d333b;
  --pg0c-success: #3fb950;
  --pg0c-warning: #d29922;
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 62.5%;
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--pg0c-dark-bg);
  color: var(--pg0c-light-text);
  line-height: 1.5rem;
  font-size: 1.4rem;
  overflow-x: hidden;
}

/* Main Container */
.pg0c-container {
  max-width: 430px;
  margin: 0 auto;
  width: 100%;
  background-color: var(--pg0c-dark-bg);
}

.pg0c-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
  padding: 6rem 1rem 2rem 1rem;
}

/* Header Styles */
.pg0c-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, var(--pg0c-dark-bg) 0%, #1a1f26 100%);
  border-bottom: 2px solid var(--pg0c-primary);
  z-index: 1000;
  padding: 0.8rem 1rem;
  max-width: 430px;
  margin: 0 auto;
}

.pg0c-header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.pg0c-logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  color: var(--pg0c-light-text);
  font-weight: 700;
  font-size: 1.6rem;
}

.pg0c-logo img {
  width: 32px;
  height: 32px;
  border-radius: 4px;
}

.pg0c-nav-buttons {
  display: flex;
  gap: 0.6rem;
  align-items: center;
}

.pg0c-btn {
  padding: 0.6rem 1.2rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1.2rem;
  font-weight: 600;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.pg0c-btn-primary {
  background-color: var(--pg0c-primary);
  color: var(--pg0c-dark-bg);
  border: 2px solid var(--pg0c-primary);
}

.pg0c-btn-primary:hover,
.pg0c-btn-primary:active {
  background-color: transparent;
  color: var(--pg0c-primary);
  transform: scale(1.05);
}

.pg0c-btn-secondary {
  background-color: transparent;
  color: var(--pg0c-light-text);
  border: 2px solid var(--pg0c-light-text);
}

.pg0c-btn-secondary:hover,
.pg0c-btn-secondary:active {
  background-color: var(--pg0c-primary);
  color: var(--pg0c-dark-bg);
  border-color: var(--pg0c-primary);
}

.pg0c-hamburger {
  background: none;
  border: none;
  color: var(--pg0c-primary);
  font-size: 2.4rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
}

/* Mobile Menu */
.pg0c-mobile-menu {
  display: none;
  position: fixed;
  top: 60px;
  left: 0;
  right: 0;
  background: var(--pg0c-dark-bg);
  border-bottom: 2px solid var(--pg0c-primary);
  max-width: 430px;
  margin: 0 auto;
  z-index: 999;
  flex-direction: column;
  padding: 1rem 0;
}

.pg0c-mobile-menu a {
  padding: 1rem 1.5rem;
  color: var(--pg0c-light-text);
  text-decoration: none;
  border-bottom: 1px solid var(--pg0c-border);
  transition: all 0.2s ease;
  display: block;
}

.pg0c-mobile-menu a:hover {
  background-color: var(--pg0c-secondary);
  color: var(--pg0c-primary);
  padding-left: 2rem;
}

/* Carousel */
.pg0c-carousel {
  position: relative;
  width: 100%;
  height: 240px;
  margin-bottom: 2rem;
  border-radius: 8px;
  overflow: hidden;
  background: var(--pg0c-border);
}

.pg0c-carousel-slide {
  display: none;
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
}

.pg0c-carousel-slide.pg0c-active {
  display: block;
}

.pg0c-carousel-prev,
.pg0c-carousel-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(64, 224, 208, 0.7);
  color: var(--pg0c-dark-bg);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: all 0.3s ease;
}

.pg0c-carousel-prev:hover,
.pg0c-carousel-next:hover {
  background-color: var(--pg0c-primary);
  transform: translateY(-50%) scale(1.1);
}

.pg0c-carousel-prev {
  left: 10px;
}

.pg0c-carousel-next {
  right: 10px;
}

.pg0c-carousel-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.pg0c-carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.pg0c-carousel-dot.pg0c-active {
  background-color: var(--pg0c-primary);
  border-color: var(--pg0c-light-text);
  transform: scale(1.3);
}

/* Typography */
h1 {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--pg0c-primary);
  margin-bottom: 1.5rem;
  line-height: 1.3;
}

h2 {
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--pg0c-primary);
  margin-top: 2rem;
  margin-bottom: 1rem;
  border-bottom: 2px solid var(--pg0c-secondary);
  padding-bottom: 0.8rem;
}

h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--pg0c-light-text);
  margin-top: 1.5rem;
  margin-bottom: 0.8rem;
}

p {
  margin-bottom: 1rem;
  color: var(--pg0c-light-text);
  line-height: 1.6;
}

/* Section Styles */
.pg0c-section {
  margin-bottom: 2.5rem;
  padding: 1.5rem;
  background: linear-gradient(135deg, rgba(64, 224, 208, 0.05) 0%, rgba(31, 111, 89, 0.05) 100%);
  border-left: 4px solid var(--pg0c-primary);
  border-radius: 6px;
}

.pg0c-section-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

/* Game Display */
.pg0c-game-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.pg0c-game-card {
  position: relative;
  aspect-ratio: 1;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
  background: var(--pg0c-border);
  border: 2px solid var(--pg0c-border);
}

.pg0c-game-card:hover {
  transform: translateY(-6px);
  border-color: var(--pg0c-primary);
  box-shadow: 0 8px 20px rgba(64, 224, 208, 0.3);
}

.pg0c-game-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pg0c-game-name {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(13, 17, 23, 0.95), transparent);
  padding: 0.8rem 0.6rem 0.6rem 0.6rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--pg0c-primary);
  text-align: center;
  max-height: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.pg0c-game-card:hover .pg0c-game-name {
  background: linear-gradient(to top, rgba(64, 224, 208, 0.9), rgba(64, 224, 208, 0.6));
  color: var(--pg0c-dark-bg);
}

/* Category Title */
.pg0c-category-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--pg0c-primary);
  margin: 2rem 0 1rem 0;
  padding-left: 1rem;
  border-left: 4px solid var(--pg0c-accent);
  text-transform: capitalize;
}

/* Links */
a {
  color: var(--pg0c-primary);
  text-decoration: none;
  transition: all 0.2s ease;
  font-weight: 600;
}

a:hover {
  color: var(--pg0c-accent);
  text-decoration: underline;
}

/* Footer */
.pg0c-footer {
  background: linear-gradient(135deg, #1a1f26 0%, var(--pg0c-dark-bg) 100%);
  border-top: 2px solid var(--pg0c-primary);
  padding: 2rem 1rem;
  margin-top: 3rem;
}

.pg0c-footer-content {
  max-width: 430px;
  margin: 0 auto;
}

.pg0c-footer-section {
  margin-bottom: 1.5rem;
}

.pg0c-footer-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--pg0c-primary);
  margin-bottom: 0.8rem;
}

.pg0c-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
}

.pg0c-footer-links a {
  color: var(--pg0c-light-text);
  font-size: 1.2rem;
  font-weight: 500;
}

.pg0c-partners {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
  align-items: center;
  margin: 1.5rem 0;
  padding: 1rem;
  background: var(--pg0c-border);
  border-radius: 6px;
}

.pg0c-partners img {
  height: 32px;
  width: auto;
  filter: grayscale(60%);
  transition: all 0.3s ease;
}

.pg0c-partners img:hover {
  filter: grayscale(0%);
  transform: scale(1.1);
}

.pg0c-copyright {
  text-align: center;
  font-size: 1.1rem;
  color: var(--pg0c-secondary);
  padding-top: 1rem;
  border-top: 1px solid var(--pg0c-border);
}

/* Mobile Bottom Navigation */
#app0c1-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(180deg, #1a1f26 0%, var(--pg0c-dark-bg) 100%);
  border-top: 2px solid var(--pg0c-primary);
  display: flex;
  justify-content: space-around;
  align-items: flex-start;
  padding: 0.4rem 0 0.6rem 0;
  max-width: 430px;
  margin: 0 auto;
  height: 68px;
  z-index: 1000;
  gap: 0;
}

.pg0c-nav-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  cursor: pointer;
  color: var(--pg0c-light-text);
  text-decoration: none;
  background: none;
  border: none;
  padding: 0.6rem 0.4rem;
  border-radius: 4px;
  transition: all 0.3s ease;
  font-size: 1rem;
  min-height: 60px;
  min-width: 60px;
}

.pg0c-nav-btn:hover,
.pg0c-nav-btn.pg0c-active {
  color: var(--pg0c-primary);
  background: rgba(64, 224, 208, 0.1);
  transform: scale(1.05);
}

.pg0c-nav-icon {
  font-size: 2.2rem;
  line-height: 1;
}

.pg0c-nav-label {
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  line-height: 1.1;
  max-width: 100%;
}

/* Responsive Design */
@media (max-width: 768px) {
  main {
    padding-bottom: 80px;
  }

  #app0c1-bottom-nav {
    display: flex;
  }

  .pg0c-logo {
    gap: 0.6rem;
  }

  .pg0c-logo img {
    width: 28px;
    height: 28px;
  }

  .pg0c-game-container {
    grid-template-columns: repeat(4, 1fr);
    gap: 0.8rem;
  }

  .pg0c-section-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 769px) {
  #app0c1-bottom-nav {
    display: none !important;
  }

  main {
    padding-bottom: 0 !important;
  }

  .pg0c-mobile-menu {
    position: static;
    display: flex !important;
    flex-direction: row;
    background: none;
    border: none;
    padding: 0;
    gap: 0.5rem;
  }

  .pg0c-mobile-menu a {
    border: none;
    padding: 0.6rem 1rem;
    border-radius: 4px;
  }

  .pg0c-hamburger {
    display: none;
  }

  .pg0c-game-container {
    grid-template-columns: repeat(5, 1fr);
  }

  .pg0c-section-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Loading and Animation Helpers */
.pg0c-loading {
  opacity: 0.6;
  pointer-events: none;
}

@keyframes pg0c-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

.pg0c-pulse {
  animation: pg0c-pulse 1.5s ease-in-out infinite;
}

@keyframes pg0c-slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.pg0c-slide-up {
  animation: pg0c-slideUp 0.5s ease-out;
}

/* Utility Classes */
.pg0c-text-center {
  text-align: center;
}

.pg0c-mt-1 { margin-top: 1rem; }
.pg0c-mt-2 { margin-top: 2rem; }
.pg0c-mb-1 { margin-bottom: 1rem; }
.pg0c-mb-2 { margin-bottom: 2rem; }

.pg0c-text-primary {
  color: var(--pg0c-primary);
}

.pg0c-text-secondary {
  color: var(--pg0c-secondary);
}

.pg0c-bg-secondary {
  background-color: var(--pg0c-secondary);
}

.pg0c-grid {
  display: grid;
  gap: 1rem;
}

/* Icon Styles */
.pg0c-icon {
  display: inline-block;
  font-size: 1.5rem;
  vertical-align: middle;
  margin-right: 0.4rem;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}

.pg0c-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}
