/* PhilSlots App - Core Stylesheet */
/* Mobile-first responsive design with custom CSS prefix: pga1- */

/* Root CSS Variables */
:root {
  --pga1-primary: #FFB3BA;
  --pga1-secondary: #CD853F;
  --pga1-accent: #B8860B;
  --pga1-highlight: #FA8072;
  --pga1-bg-dark: #0D1117;
  --pga1-bg-light: #1a1a1a;
  --pga1-text-primary: #FFB3BA;
  --pga1-text-secondary: #CD853F;
  --pga1-border: rgba(255, 179, 186, 0.2);
  --pga1-shadow: rgba(0, 0, 0, 0.4);
  --pga1-success: #4CAF50;
  --pga1-warning: #ff9800;
  --pga1-danger: #f44336;
  --pga1-font-size-base: 16px;
  --pga1-spacing-xs: 4px;
  --pga1-spacing-sm: 8px;
  --pga1-spacing-md: 16px;
  --pga1-spacing-lg: 24px;
  --pga1-spacing-xl: 32px;
  --pga1-transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Global Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

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;
  background-color: var(--pga1-bg-dark);
  color: var(--pga1-text-primary);
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  margin-bottom: var(--pga1-spacing-md);
  color: var(--pga1-primary);
}

h1 {
  font-size: 3rem;
  line-height: 1.2;
}

h2 {
  font-size: 2.4rem;
  line-height: 1.3;
}

h3 {
  font-size: 2rem;
  line-height: 1.3;
}

h4 {
  font-size: 1.8rem;
}

h5 {
  font-size: 1.6rem;
}

h6 {
  font-size: 1.4rem;
}

p {
  margin-bottom: var(--pga1-spacing-md);
  color: rgba(255, 179, 186, 0.9);
  line-height: 1.6;
}

a {
  color: var(--pga1-primary);
  text-decoration: none;
  cursor: pointer;
  transition: var(--pga1-transition);
}

a:hover {
  color: var(--pga1-highlight);
  text-decoration: underline;
}

/* Container & Layout */
.pga1-container {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 var(--pga1-spacing-md);
}

.pga1-wrapper {
  width: 100%;
  position: relative;
  z-index: 1;
}

.pga1-grid {
  display: grid;
  gap: var(--pga1-spacing-md);
  width: 100%;
}

.pga1-flex {
  display: flex;
  flex-direction: column;
}

.pga1-flex-row {
  display: flex;
  flex-direction: row;
}

/* Header Navigation */
.pga1-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: var(--pga1-bg-dark);
  border-bottom: 2px solid var(--pga1-primary);
  z-index: 1000;
  padding: var(--pga1-spacing-sm) var(--pga1-spacing-md);
  width: 100%;
  max-width: 100vw;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--pga1-spacing-md);
}

.pga1-header-logo {
  display: flex;
  align-items: center;
  gap: var(--pga1-spacing-sm);
  font-weight: 700;
  font-size: 1.8rem;
  color: var(--pga1-primary);
  text-decoration: none;
  flex-shrink: 0;
}

.pga1-header-logo img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.pga1-header-nav {
  display: none;
  flex-direction: row;
  gap: var(--pga1-spacing-md);
  align-items: center;
  flex: 1;
}

.pga1-menu-toggle {
  background: none;
  border: none;
  color: var(--pga1-primary);
  font-size: 2.4rem;
  cursor: pointer;
  padding: var(--pga1-spacing-xs);
  display: flex;
  align-items: center;
  z-index: 1001;
}

.pga1-menu-toggle:hover {
  color: var(--pga1-highlight);
}

/* Mobile Menu */
.pga1-mobile-menu {
  position: fixed;
  top: 60px;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--pga1-bg-light);
  z-index: 999;
  overflow-y: auto;
  max-height: calc(100vh - 60px);
  transform: translateY(-100%);
  opacity: 0;
  visibility: hidden;
  transition: var(--pga1-transition);
  border-top: 1px solid var(--pga1-border);
}

.pga1-mobile-menu.pga1-menu-open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.pga1-mobile-menu a {
  display: block;
  padding: var(--pga1-spacing-md);
  border-bottom: 1px solid var(--pga1-border);
  color: var(--pga1-primary);
  font-weight: 500;
  font-size: 1.6rem;
}

.pga1-mobile-menu a:hover {
  background-color: rgba(255, 179, 186, 0.1);
  color: var(--pga1-highlight);
}

/* Buttons */
.pga1-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--pga1-spacing-sm);
  padding: var(--pga1-spacing-sm) var(--pga1-spacing-md);
  background-color: var(--pga1-primary);
  color: var(--pga1-bg-dark);
  border: 2px solid var(--pga1-primary);
  border-radius: 6px;
  font-weight: 600;
  font-size: 1.4rem;
  cursor: pointer;
  transition: var(--pga1-transition);
  white-space: nowrap;
  min-height: 44px;
}

.pga1-btn:hover {
  background-color: var(--pga1-highlight);
  border-color: var(--pga1-highlight);
  transform: scale(1.05);
}

.pga1-btn-outline {
  background-color: transparent;
  color: var(--pga1-primary);
  border: 2px solid var(--pga1-primary);
}

.pga1-btn-outline:hover {
  background-color: var(--pga1-primary);
  color: var(--pga1-bg-dark);
}

.pga1-btn-secondary {
  background-color: var(--pga1-secondary);
  border-color: var(--pga1-secondary);
  color: var(--pga1-bg-dark);
}

.pga1-btn-secondary:hover {
  background-color: var(--pga1-accent);
  border-color: var(--pga1-accent);
}

/* Carousel */
.pga1-carousel {
  width: 100%;
  height: 200px;
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  margin: var(--pga1-spacing-lg) 0;
  box-shadow: 0 4px 12px var(--pga1-shadow);
}

.pga1-slide {
  position: absolute;
  width: 100%;
  height: 100%;
  display: none;
  cursor: pointer;
  transition: opacity 0.5s ease;
}

.pga1-slide.pga1-active {
  display: block;
}

.pga1-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Game Grid */
.pga1-game-section {
  margin-bottom: var(--pga1-spacing-xl);
}

.pga1-game-section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--pga1-primary);
  margin-bottom: var(--pga1-spacing-md);
  padding-bottom: var(--pga1-spacing-sm);
  border-bottom: 2px solid var(--pga1-secondary);
}

.pga1-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--pga1-spacing-sm);
  width: 100%;
}

.pga1-game-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--pga1-spacing-xs);
  cursor: pointer;
  transition: var(--pga1-transition);
  text-decoration: none;
  color: var(--pga1-text-primary);
}

.pga1-game-item:hover {
  transform: translateY(-8px);
  color: var(--pga1-highlight);
}

.pga1-game-image {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
  border: 2px solid var(--pga1-border);
  transition: var(--pga1-transition);
  background-color: var(--pga1-bg-light);
}

.pga1-game-item:hover .pga1-game-image {
  border-color: var(--pga1-highlight);
  box-shadow: 0 0 12px var(--pga1-highlight);
}

.pga1-game-name {
  font-size: 1.2rem;
  font-weight: 600;
  text-align: center;
  color: var(--pga1-text-primary);
  width: 100%;
  word-break: break-word;
}

/* Content Sections */
.pga1-section {
  background-color: var(--pga1-bg-light);
  border: 1px solid var(--pga1-border);
  border-radius: 12px;
  padding: var(--pga1-spacing-lg);
  margin-bottom: var(--pga1-spacing-xl);
}

.pga1-section-title {
  font-size: 2rem;
  color: var(--pga1-primary);
  margin-bottom: var(--pga1-spacing-md);
}

.pga1-section-content {
  color: rgba(255, 179, 186, 0.85);
  line-height: 1.6;
}

/* Footer */
.pga1-footer {
  background-color: var(--pga1-bg-light);
  border-top: 2px solid var(--pga1-primary);
  padding: var(--pga1-spacing-xl) var(--pga1-spacing-md);
  margin-top: var(--pga1-spacing-xl);
  text-align: center;
  color: rgba(255, 179, 186, 0.7);
}

.pga1-footer-links {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: var(--pga1-spacing-md);
  justify-content: center;
  margin-bottom: var(--pga1-spacing-lg);
}

.pga1-footer-links a {
  font-size: 1.4rem;
  color: var(--pga1-primary);
}

.pga1-partners {
  display: flex;
  flex-wrap: wrap;
  gap: var(--pga1-spacing-md);
  justify-content: center;
  align-items: center;
  margin-bottom: var(--pga1-spacing-lg);
  padding-top: var(--pga1-spacing-lg);
  border-top: 1px solid var(--pga1-border);
}

.pga1-partner-icon {
  width: 40px;
  height: 40px;
  object-fit: contain;
  opacity: 0.8;
  transition: var(--pga1-transition);
}

.pga1-partner-icon:hover {
  opacity: 1;
  transform: scale(1.1);
}

.pga1-copyright {
  font-size: 1.2rem;
  color: rgba(255, 179, 186, 0.6);
  margin-top: var(--pga1-spacing-lg);
}

/* Bottom Navigation */
.pga1-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--pga1-bg-dark);
  border-top: 2px solid var(--pga1-primary);
  display: flex;
  justify-content: space-around;
  align-items: stretch;
  z-index: 1000;
  height: 64px;
  max-width: 100vw;
}

.pga1-bottom-nav a {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 64px;
  color: var(--pga1-primary);
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 600;
  transition: var(--pga1-transition);
  border-radius: 0;
}

.pga1-bottom-nav a:hover {
  background-color: rgba(255, 179, 186, 0.1);
  color: var(--pga1-highlight);
  transform: scale(1.05);
}

.pga1-bottom-nav a.pga1-active {
  background-color: rgba(255, 179, 186, 0.15);
  color: var(--pga1-highlight);
  border-top: 3px solid var(--pga1-highlight);
}

.pga1-nav-icon {
  font-size: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pga1-nav-label {
  font-size: 1rem;
  text-align: center;
  word-break: break-word;
  max-width: 60px;
}

/* Main Content */
main {
  width: 100%;
  padding-top: 80px;
  padding-bottom: 80px;
}

/* Responsive Design */
@media (max-width: 430px) {
  :root {
    --pga1-font-size-base: 14px;
  }

  h1 {
    font-size: 2.2rem;
  }

  h2 {
    font-size: 1.8rem;
  }

  .pga1-container {
    padding: 0 var(--pga1-spacing-sm);
  }

  .pga1-game-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--pga1-spacing-xs);
  }

  .pga1-carousel {
    height: 150px;
    margin: var(--pga1-spacing-md) 0;
  }

  main {
    padding-top: 70px;
    padding-bottom: 80px;
  }
}

@media (max-width: 360px) {
  .pga1-game-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pga1-carousel {
    height: 120px;
  }

  h1 {
    font-size: 1.8rem;
  }
}

@media (min-width: 769px) {
  .pga1-header {
    padding: var(--pga1-spacing-md) var(--pga1-spacing-lg);
  }

  .pga1-menu-toggle {
    display: none;
  }

  .pga1-mobile-menu {
    display: none;
  }

  .pga1-header-nav {
    display: flex;
  }

  .pga1-bottom-nav {
    display: none;
  }

  main {
    padding-top: 80px;
    padding-bottom: var(--pga1-spacing-xl);
  }

  .pga1-container {
    max-width: 900px;
    padding: 0 var(--pga1-spacing-lg);
  }

  .pga1-game-grid {
    grid-template-columns: repeat(6, 1fr);
    gap: var(--pga1-spacing-md);
  }

  .pga1-carousel {
    height: 300px;
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Print Styles */
@media print {
  .pga1-header,
  .pga1-bottom-nav,
  .pga1-btn {
    display: none !important;
  }

  main {
    padding: 0;
  }
}
