/**
 * Pinoy Time Gcash - Main Stylesheet
 * Mobile-first gaming platform design
 */

/* CSS Variables */
:root {
  --pg60-primary: #006400;
  --pg60-secondary: #0E1621;
  --pg60-accent: #E5E5E5;
  --pg60-bg: #0E1621;
  --pg60-surface: #1a2436;
  --pg60-text: #E5E5E5;
  --pg60-text-secondary: #a0a0a0;
  --pg60-border: #2a3446;
  --pg60-success: #00c851;
  --pg60-warning: #ffbb33;
  --pg60-error: #ff4444;
  --pg60-gradient: linear-gradient(135deg, #006400 0%, #0E1621 100%);
  --pg60-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  --pg60-radius: 8px;
  --pg60-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 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, 'Helvetica Neue', Arial, sans-serif;
  font-size: 1.6rem;
  line-height: 1.5;
  color: var(--pg60-text);
  background-color: var(--pg60-bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Mobile-first responsive design */
@media (max-width: 430px) {
  body {
    font-size: 1.4rem;
  }
}

/* Utility Classes */
.pg60-container {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.pg60-wrapper {
  min-height: 100vh;
  padding-bottom: 8rem;
}

.pg60-grid {
  display: grid;
  gap: 1.5rem;
}

.pg60-flex {
  display: flex;
}

.pg60-flex-col {
  flex-direction: column;
}

.pg60-items-center {
  align-items: center;
}

.pg60-justify-center {
  justify-content: center;
}

.pg60-justify-between {
  justify-content: space-between;
}

.pg60-text-center {
  text-align: center;
}

/* Typography */
.pg60-h1 {
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  color: var(--pg60-text);
}

.pg60-h2 {
  font-size: 2rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 1.2rem;
  color: var(--pg60-text);
}

.pg60-h3 {
  font-size: 1.8rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 1rem;
  color: var(--pg60-text);
}

.pg60-p {
  font-size: 1.6rem;
  line-height: 1.5;
  margin-bottom: 1.5rem;
  color: var(--pg60-text-secondary);
}

@media (max-width: 430px) {
  .pg60-h1 {
    font-size: 2rem;
  }
  .pg60-h2 {
    font-size: 1.8rem;
  }
  .pg60-h3 {
    font-size: 1.6rem;
  }
  .pg60-p {
    font-size: 1.4rem;
  }
}

/* Header */
.pg60-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--pg60-gradient);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--pg60-border);
  z-index: 1000;
  padding: 1rem 0;
}

.pg60-header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
}

.pg60-logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  color: var(--pg60-text);
}

.pg60-logo img {
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 50%;
}

.pg60-logo-text {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--pg60-text);
}

@media (max-width: 430px) {
  .pg60-logo-text {
    font-size: 1.6rem;
  }
}

/* Navigation */
.pg60-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.pg60-nav-btn {
  padding: 0.8rem 1.6rem;
  font-size: 1.4rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--pg60-radius);
  transition: var(--pg60-transition);
  cursor: pointer;
  border: none;
  outline: none;
  min-height: 4.4rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.pg60-nav-btn--primary {
  background: var(--pg60-success);
  color: white;
}

.pg60-nav-btn--primary:hover {
  background: #00d95a;
  transform: translateY(-2px);
  box-shadow: var(--pg60-shadow);
}

.pg60-nav-btn--secondary {
  background: transparent;
  color: var(--pg60-text);
  border: 2px solid var(--pg60-text);
}

.pg60-nav-btn--secondary:hover {
  background: var(--pg60-text);
  color: var(--pg60-bg);
}

/* Mobile Menu Toggle */
.pg60-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 0.4rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.8rem;
  z-index: 1001;
}

.pg60-menu-toggle span {
  width: 2.4rem;
  height: 0.3rem;
  background: var(--pg60-text);
  border-radius: 0.2rem;
  transition: var(--pg60-transition);
}

@media (max-width: 768px) {
  .pg60-menu-toggle {
    display: flex;
  }

  .pg60-nav {
    display: none;
  }
}

/* Mobile Menu */
.pg60-mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 300px;
  height: 100vh;
  background: var(--pg60-surface);
  backdrop-filter: blur(10px);
  z-index: 9999;
  transition: var(--pg60-transition);
  padding: 8rem 2rem 2rem;
  overflow-y: auto;
}

.pg60-mobile-menu.active {
  right: 0;
}

.pg60-mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9998;
  display: none;
}

.pg60-mobile-menu.active + .pg60-mobile-menu-overlay {
  display: block;
}

.pg60-mobile-nav {
  list-style: none;
}

.pg60-mobile-nav-item {
  margin-bottom: 1.5rem;
}

.pg60-mobile-nav-link {
  display: block;
  padding: 1rem;
  color: var(--pg60-text);
  text-decoration: none;
  font-size: 1.6rem;
  border-radius: var(--pg60-radius);
  transition: var(--pg60-transition);
}

.pg60-mobile-nav-link:hover {
  background: var(--pg60-primary);
  color: white;
  transform: translateX(5px);
}

/* Main Content */
.pg60-main {
  padding-top: 7rem;
  padding-bottom: 8rem;
}

@media (max-width: 768px) {
  .pg60-main {
    padding-bottom: 8rem;
  }
}

/* Carousel */
.pg60-carousel {
  position: relative;
  overflow: hidden;
  border-radius: var(--pg60-radius);
  margin-bottom: 3rem;
  box-shadow: var(--pg60-shadow);
}

.pg60-carousel-inner {
  display: flex;
  transition: transform 0.5s ease;
}

.pg60-slide {
  flex: 0 0 100%;
  position: relative;
  cursor: pointer;
  transition: opacity 0.5s ease;
}

.pg60-slide img {
  width: 100%;
  height: auto;
  display: block;
}

.pg60-carousel-controls {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.8rem;
}

.pg60-dot {
  width: 1.2rem;
  height: 1.2rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: var(--pg60-transition);
}

.pg60-dot.active {
  background: var(--pg60-text);
  transform: scale(1.2);
}

/* Buttons */
.pg60-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1.2rem 2.4rem;
  font-size: 1.6rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  border-radius: var(--pg60-radius);
  cursor: pointer;
  transition: var(--pg60-transition);
  min-height: 4.4rem;
  outline: none;
}

.pg60-btn--primary {
  background: var(--pg60-primary);
  color: white;
}

.pg60-btn--primary:hover {
  background: #008000;
  transform: translateY(-2px);
  box-shadow: var(--pg60-shadow);
}

.pg60-btn--secondary {
  background: var(--pg60-surface);
  color: var(--pg60-text);
  border: 2px solid var(--pg60-border);
}

.pg60-btn--secondary:hover {
  background: var(--pg60-border);
  transform: translateY(-2px);
}

.pg60-btn--success {
  background: var(--pg60-success);
  color: white;
}

.pg60-btn--success:hover {
  background: #00e55a;
  transform: translateY(-2px);
  box-shadow: var(--pg60-shadow);
}

/* Game Cards */
.pg60-game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 1rem;
  margin-bottom: 3rem;
}

@media (max-width: 430px) {
  .pg60-game-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.8rem;
  }
}

.pg60-game-card {
  background: var(--pg60-surface);
  border-radius: var(--pg60-radius);
  overflow: hidden;
  transition: var(--pg60-transition);
  cursor: pointer;
  border: 1px solid var(--pg60-border);
}

.pg60-game-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--pg60-shadow);
  border-color: var(--pg60-primary);
}

.pg60-game-image {
  width: 100%;
  height: 80px;
  object-fit: cover;
  background: var(--pg60-gradient);
}

.pg60-game-name {
  padding: 0.8rem;
  font-size: 1.2rem;
  font-weight: 500;
  text-align: center;
  color: var(--pg60-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Sections */
.pg60-section {
  margin-bottom: 4rem;
}

.pg60-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.pg60-section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--pg60-text);
  position: relative;
}

.pg60-section-title::after {
  content: '';
  position: absolute;
  bottom: -0.5rem;
  left: 0;
  width: 4rem;
  height: 0.3rem;
  background: var(--pg60-primary);
  border-radius: 0.2rem;
}

/* Cards */
.pg60-card {
  background: var(--pg60-surface);
  border-radius: var(--pg60-radius);
  padding: 2rem;
  margin-bottom: 2rem;
  border: 1px solid var(--pg60-border);
  transition: var(--pg60-transition);
}

.pg60-card:hover {
  box-shadow: var(--pg60-shadow);
  transform: translateY(-2px);
}

/* Footer */
.pg60-footer {
  background: var(--pg60-secondary);
  padding: 3rem 0 2rem;
  margin-top: 4rem;
  border-top: 1px solid var(--pg60-border);
}

.pg60-footer-content {
  margin-bottom: 2rem;
}

.pg60-footer-title {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: var(--pg60-text);
}

.pg60-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.pg60-footer-link {
  color: var(--pg60-text-secondary);
  text-decoration: none;
  font-size: 1.4rem;
  transition: var(--pg60-transition);
}

.pg60-footer-link:hover {
  color: var(--pg60-primary);
}

/* Partners */
.pg60-partners {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  align-items: center;
  margin-bottom: 2rem;
}

.pg60-partner {
  width: 60px;
  height: 30px;
  object-fit: contain;
  filter: grayscale(100%) brightness(150%);
  opacity: 0.6;
  transition: var(--pg60-transition);
}

.pg60-partner:hover {
  filter: grayscale(0%) brightness(100%);
  opacity: 1;
}

/* Copyright */
.pg60-copyright {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--pg60-border);
  color: var(--pg60-text-secondary);
  font-size: 1.2rem;
}

/* Bottom Navigation */
.pg60-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--pg60-surface);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--pg60-border);
  z-index: 1000;
  padding: 0.8rem 0;
  display: none;
}

@media (max-width: 768px) {
  .pg60-bottom-nav {
    display: block;
  }

  .pg60-main {
    padding-bottom: 8rem;
  }
}

.pg60-bottom-nav-list {
  display: flex;
  justify-content: space-around;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.pg60-bottom-nav-item {
  flex: 1;
  text-align: center;
}

.pg60-bottom-nav-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  text-decoration: none;
  color: var(--pg60-text-secondary);
  transition: var(--pg60-transition);
  min-height: 5.6rem;
  position: relative;
}

.pg60-bottom-nav-link:hover,
.pg60-bottom-nav-item.active .pg60-bottom-nav-link {
  color: var(--pg60-primary);
  transform: scale(1.05);
}

.pg60-bottom-nav-icon {
  font-size: 2.4rem;
  margin-bottom: 0.4rem;
  transition: var(--pg60-transition);
}

.pg60-bottom-nav-text {
  font-size: 1rem;
  font-weight: 500;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(2rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.pg60-fade-in {
  animation: fadeIn 0.6s ease-out;
}

/* Responsive Design */
@media (min-width: 769px) {
  .pg60-bottom-nav {
    display: none !important;
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Focus styles */
.pg60-btn:focus,
.pg60-nav-btn:focus,
.pg60-game-card:focus {
  outline: 2px solid var(--pg60-primary);
  outline-offset: 2px;
}

/* High contrast mode */
@media (prefers-contrast: high) {
  :root {
    --pg60-bg: #000;
    --pg60-text: #fff;
    --pg60-border: #fff;
  }
}