/**
 * Jili Games Website CSS
 * Mobile-optimized online casino gaming website
 * Color Palette: #2E4057 | #FFDFBA | #87CEFA | #191970 | #FF91A4
 */

/* Reset & Base Styles */
:root {
  --pg11-primary: #191970;
  --pg11-secondary: #2E4057;
  --pg11-accent: #FF91A4;
  --pg11-light: #FFDFBA;
  --pg11-info: #87CEFA;
  --pg11-text-primary: #FFDFBA;
  --pg11-text-secondary: #87CEFA;
  --pg11-text-dark: #191970;
  --pg11-text-light: #FFFFFF;
  --pg11-bg-primary: #191970;
  --pg11-bg-secondary: #2E4057;
  --pg11-bg-accent: #FF91A4;
  --pg11-bg-light: #FFDFBA;
  --pg11-gradient: linear-gradient(135deg, #191970 0%, #2E4057 100%);
  font-size: 62.5%;
}

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Arial', sans-serif;
  background: var(--pg11-bg-primary);
  color: var(--pg11-text-primary);
  font-size: 1.6rem;
  line-height: 1.5;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--pg11-text-secondary);
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover, a:focus {
  color: var(--pg11-accent);
  text-decoration: none;
}

.pg11-container {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  margin-bottom: 1.5rem;
  color: var(--pg11-text-primary);
  line-height: 1.3;
}

h1 {
  font-size: 2.4rem;
  color: var(--pg11-text-primary);
}

h2 {
  font-size: 2rem;
  color: var(--pg11-info);
}

h3 {
  font-size: 1.8rem;
  color: var(--pg11-light);
}

p {
  margin-bottom: 1.5rem;
}

/* Layout */
.pg11-section {
  padding: 2.5rem 0;
  position: relative;
}

.pg11-wrapper {
  width: 100%;
  position: relative;
}

.pg11-flex {
  display: flex;
  flex-wrap: wrap;
}

.pg11-grid {
  display: grid;
  grid-gap: 1.5rem;
}

.pg11-grid-2 {
  grid-template-columns: 1fr;
}

.pg11-grid-3 {
  grid-template-columns: 1fr;
}

.pg11-grid-4 {
  grid-template-columns: repeat(2, 1fr);
}

.pg11-grid-5 {
  grid-template-columns: repeat(2, 1fr);
}

/* Header */
.pg11-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: var(--pg11-bg-secondary);
  padding: 1.2rem 0;
  box-shadow: 0 0.2rem 1rem rgba(0, 0, 0, 0.3);
}

.pg11-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.pg11-logo {
  display: flex;
  align-items: center;
}

.pg11-logo img {
  width: 32px;
  height: auto;
  margin-right: 1rem;
}

.pg11-logo-text {
  font-size: 1.8rem;
  font-weight: bold;
  color: var(--pg11-text-primary);
}

/* Navigation */
.pg11-nav {
  display: none;
}

.pg11-nav ul {
  display: flex;
  list-style: none;
}

.pg11-nav li {
  margin-left: 2rem;
}

.pg11-nav a {
  color: var(--pg11-text-primary);
  font-size: 1.4rem;
  font-weight: 600;
}

.pg11-menu-toggle {
  width: 3rem;
  height: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  padding: 0.6rem;
  background: transparent;
  border: none;
}

.pg11-menu-line {
  width: 100%;
  height: 0.2rem;
  background: var(--pg11-text-primary);
  transition: all 0.3s ease;
}

.pg11-menu-toggle[aria-expanded="true"] .pg11-menu-line:nth-child(1) {
  transform: translateY(0.8rem) rotate(45deg);
}

.pg11-menu-toggle[aria-expanded="true"] .pg11-menu-line:nth-child(2) {
  opacity: 0;
}

.pg11-menu-toggle[aria-expanded="true"] .pg11-menu-line:nth-child(3) {
  transform: translateY(-0.8rem) rotate(-45deg);
}

.pg11-mobile-menu {
  position: fixed;
  top: 6rem;
  left: 0;
  width: 100%;
  height: 0;
  background: var(--pg11-bg-secondary);
  overflow: hidden;
  transition: height 0.3s ease;
  z-index: 999;
}

.pg11-mobile-menu.pg11-active {
  height: calc(100vh - 6rem);
  overflow-y: auto;
}

.pg11-mobile-menu ul {
  list-style: none;
  padding: 1.5rem;
}

.pg11-mobile-menu li {
  margin-bottom: 1.5rem;
}

.pg11-mobile-menu a {
  display: block;
  color: var(--pg11-text-primary);
  font-size: 1.6rem;
  padding: 1rem 1.5rem;
  border-radius: 0.4rem;
  transition: all 0.3s ease;
}

.pg11-mobile-menu a:hover, 
.pg11-mobile-menu a:focus {
  background: rgba(255, 255, 255, 0.1);
}

/* Buttons */
.pg11-btn {
  display: inline-block;
  padding: 1.2rem 2.4rem;
  background: var(--pg11-accent);
  color: var(--pg11-text-dark);
  border: none;
  border-radius: 0.4rem;
  font-size: 1.4rem;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  min-height: 4.4rem;
  min-width: 4.4rem;
  box-shadow: 0 0.4rem 0.8rem rgba(0, 0, 0, 0.2);
}

.pg11-btn:hover, 
.pg11-btn:focus {
  background: var(--pg11-info);
  color: var(--pg11-text-dark);
  transform: translateY(-0.2rem);
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.25);
}

.pg11-btn-primary {
  background: var(--pg11-accent);
  color: var(--pg11-text-dark);
}

.pg11-btn-secondary {
  background: var(--pg11-info);
  color: var(--pg11-text-dark);
}

.pg11-btn-outline {
  background: transparent;
  border: 0.2rem solid var(--pg11-accent);
  color: var(--pg11-accent);
}

.pg11-btn-sm {
  padding: 0.8rem 1.6rem;
  font-size: 1.2rem;
}

.pg11-btn-lg {
  padding: 1.6rem 3.2rem;
  font-size: 1.6rem;
}

/* Hero/Carousel */
.pg11-hero {
  padding-top: 8rem;
  position: relative;
  overflow: hidden;
  margin-bottom: 2rem;
}

.pg11-carousel {
  position: relative;
  width: 100%;
  height: 20rem;
  overflow: hidden;
  border-radius: 0.8rem;
  box-shadow: 0 0.4rem 0.8rem rgba(0, 0, 0, 0.3);
}

.pg11-slide {
  position: absolute;
  width: 100%;
  height: 100%;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  transition: opacity 0.5s ease-in-out;
}

/* Game Cards */
.pg11-category-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding: 0.5rem 1rem;
  background: var(--pg11-bg-secondary);
  border-radius: 0.4rem;
}

.pg11-category-title {
  font-size: 1.8rem;
  margin: 0;
}

.pg11-games-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
  margin-bottom: 2.5rem;
}

.pg11-game-card {
  position: relative;
  overflow: hidden;
  border-radius: 0.4rem;
  box-shadow: 0 0.2rem 0.4rem rgba(0, 0, 0, 0.2);
  background: var(--pg11-bg-secondary);
  transition: all 0.3s ease;
}

.pg11-game-card:hover {
  transform: translateY(-0.3rem);
  box-shadow: 0 0.3rem 0.6rem rgba(0, 0, 0, 0.3);
}

.pg11-game-thumb {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
}

.pg11-game-info {
  padding: 0.8rem;
  text-align: center;
}

.pg11-game-name {
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Content Modules */
.pg11-module {
  background: var(--pg11-bg-secondary);
  border-radius: 0.8rem;
  padding: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 0.2rem 0.4rem rgba(0, 0, 0, 0.2);
}

.pg11-module-title {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 0.1rem solid rgba(255, 255, 255, 0.1);
}

.pg11-list {
  list-style: none;
  margin-bottom: 1.5rem;
}

.pg11-list li {
  margin-bottom: 0.8rem;
  position: relative;
  padding-left: 2rem;
}

.pg11-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--pg11-accent);
}

.pg11-icon {
  margin-right: 0.8rem;
  color: var(--pg11-accent);
}

/* Footer */
.pg11-footer {
  background: var(--pg11-bg-secondary);
  padding: 3rem 0 9rem;
}

.pg11-footer-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.pg11-footer-heading {
  font-size: 1.6rem;
  margin-bottom: 1rem;
}

.pg11-footer-list {
  list-style: none;
}

.pg11-footer-list li {
  margin-bottom: 0.8rem;
}

.pg11-footer-list a {
  font-size: 1.4rem;
}

.pg11-partners {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin: 2rem 0;
}

.pg11-partner-img {
  width: 6rem;
  height: auto;
  filter: grayscale(100%);
  opacity: 0.7;
  transition: all 0.3s ease;
}

.pg11-partner-img:hover {
  filter: grayscale(0);
  opacity: 1;
}

.pg11-copyright {
  text-align: center;
  font-size: 1.2rem;
  padding-top: 2rem;
  border-top: 0.1rem solid rgba(255, 255, 255, 0.1);
}

/* Mobile Bottom Navigation */
.pg11-mobile-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 6rem;
  background: var(--pg11-bg-secondary);
  z-index: 1000;
  display: flex;
  justify-content: space-around;
  align-items: center;
  box-shadow: 0 -0.2rem 1rem rgba(0, 0, 0, 0.2);
}

.pg11-mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 6rem;
  min-height: 5.6rem;
  padding: 0.8rem 0;
  color: var(--pg11-text-primary);
  transition: all 0.3s ease;
}

.pg11-mobile-nav-item:hover,
.pg11-mobile-nav-item:focus,
.pg11-mobile-nav-item.active {
  color: var(--pg11-accent);
}

.pg11-mobile-nav-icon {
  font-size: 2.4rem;
  margin-bottom: 0.4rem;
}

.pg11-mobile-nav-text {
  font-size: 1.2rem;
  text-align: center;
}

/* Utilities */
.pg11-text-center {
  text-align: center;
}

.pg11-mt-1 {
  margin-top: 1rem;
}

.pg11-mt-2 {
  margin-top: 2rem;
}

.pg11-mb-1 {
  margin-bottom: 1rem;
}

.pg11-mb-2 {
  margin-bottom: 2rem;
}

.pg11-p-1 {
  padding: 1rem;
}

.pg11-p-2 {
  padding: 2rem;
}

.pg11-bg-gradient {
  background: var(--pg11-gradient);
}

.pg11-text-accent {
  color: var(--pg11-accent);
}

.pg11-text-info {
  color: var(--pg11-info);
}

.pg11-text-light {
  color: var(--pg11-light);
}

.pg11-bold {
  font-weight: 700;
}

.pg11-rounded {
  border-radius: 0.4rem;
}

.pg11-shadow {
  box-shadow: 0 0.2rem 0.4rem rgba(0, 0, 0, 0.2);
}

/* Responsive Breakpoints */
@media (min-width: 576px) {
  .pg11-container {
    max-width: 540px;
  }
  
  .pg11-carousel {
    height: 25rem;
  }
  
  .pg11-grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  .pg11-container {
    max-width: 720px;
  }
  
  h1 {
    font-size: 3rem;
  }
  
  h2 {
    font-size: 2.4rem;
  }
  
  h3 {
    font-size: 2rem;
  }
  
  .pg11-carousel {
    height: 30rem;
  }
  
  .pg11-grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .pg11-grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .pg11-grid-5 {
    grid-template-columns: repeat(5, 1fr);
  }
  
  .pg11-nav {
    display: block;
  }
  
  .pg11-menu-toggle {
    display: none;
  }
  
  .pg11-games-grid {
    grid-template-columns: repeat(5, 1fr);
  }
  
  .pg11-footer-links {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* For mobile-first max-width screens */
@media (max-width: 430px) {
  .pg11-container {
    padding: 0 1rem;
  }
  
  .pg11-games-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
  }
  
  .pg11-game-info {
    padding: 0.5rem;
  }
  
  .pg11-game-name {
    font-size: 1.1rem;
  }
}

/* Animation Utilities */
.pg11-fade-in {
  animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.pg11-bounce {
  animation: bounce 1s infinite;
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-0.5rem);
  }
}

.pg11-pulse {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
} 