/**
 * Casino Game - Main Stylesheet
 * All classes use prefix: pgb3-
 * Color palette: #3A3A3A | #1E90FF | #000080 | #FDF5E6 | #F5F5F5 | #0000FF
 */

/* Reset and 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: #FDF5E6;
  background-color: #3A3A3A;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Layout */
.pgb3-container {
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1rem;
}

.pgb3-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header */
.pgb3-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: linear-gradient(135deg, #000080 0%, #0000FF 100%);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}

.pgb3-header-hidden {
  transform: translateY(-100%);
}

.pgb3-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  padding: 0 1rem;
}

.pgb3-logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  color: #FDF5E6;
}

.pgb3-logo img {
  width: 32px;
  height: 32px;
  border-radius: 4px;
}

.pgb3-logo-text {
  font-size: 1.8rem;
  font-weight: 700;
  color: #FDF5E6;
}

.pgb3-header-actions {
  display: flex;
  gap: 0.8rem;
  align-items: center;
}

.pgb3-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.2rem;
  font-size: 1.4rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  min-height: 40px;
}

.pgb3-btn-primary {
  background: linear-gradient(135deg, #1E90FF 0%, #0000FF 100%);
  color: #FDF5E6;
  box-shadow: 0 2px 8px rgba(30, 144, 255, 0.3);
}

.pgb3-btn-primary:hover,
.pgb3-btn-primary:active {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(30, 144, 255, 0.5);
}

.pgb3-btn-secondary {
  background: transparent;
  color: #FDF5E6;
  border: 2px solid #FDF5E6;
}

.pgb3-btn-secondary:hover,
.pgb3-btn-secondary:active {
  background: #FDF5E6;
  color: #000080;
}

.pgb3-menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.pgb3-menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #FDF5E6;
  transition: all 0.3s ease;
}

.pgb3-menu-toggle:hover span {
  background: #1E90FF;
}

/* Mobile Menu */
.pgb3-mobile-menu {
  position: fixed;
  top: 56px;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(58, 58, 58, 0.98);
  z-index: 9999;
  padding: 2rem 1rem;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
}

.pgb3-menu-open {
  transform: translateX(0);
}

.pgb3-menu-list {
  list-style: none;
}

.pgb3-menu-item {
  margin-bottom: 1rem;
}

.pgb3-menu-link {
  display: block;
  padding: 1rem;
  font-size: 1.6rem;
  color: #FDF5E6;
  text-decoration: none;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.pgb3-menu-link:hover {
  background: #1E90FF;
  transform: translateX(5px);
}

/* Main Content */
.pgb3-main {
  flex: 1;
  padding-top: 56px;
  padding-bottom: 80px;
}

/* Carousel */
.pgb3-carousel {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  margin: 1rem 0;
}

.pgb3-carousel-track {
  display: flex;
  transition: transform 0.5s ease;
}

.pgb3-carousel-slide {
  min-width: 100%;
  position: relative;
}

.pgb3-carousel-slide img {
  width: 100%;
  height: auto;
  display: block;
}

.pgb3-carousel-prev,
.pgb3-carousel-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.6);
  color: #FDF5E6;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
}

.pgb3-carousel-prev {
  left: 10px;
}

.pgb3-carousel-next {
  right: 10px;
}

.pgb3-carousel-prev:hover,
.pgb3-carousel-next:hover {
  background: rgba(30, 144, 255, 0.8);
}

/* Section */
.pgb3-section {
  margin: 2rem 0;
  padding: 1.5rem;
  background: #F5F5F5;
  border-radius: 8px;
}

.pgb3-section-title {
  font-size: 2rem;
  font-weight: 700;
  color: #000080;
  margin-bottom: 1.5rem;
  text-align: center;
}

.pgb3-section-content {
  font-size: 1.6rem;
  line-height: 1.6;
  color: #3A3A3A;
}

/* Game Grid */
.pgb3-game-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
  margin: 1rem 0;
}

.pgb3-game-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem;
  background: #F5F5F5;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.pgb3-game-item:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(30, 144, 255, 0.3);
}

.pgb3-game-item.pgb3-touching {
  transform: scale(0.95);
}

.pgb3-game-icon {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 4px;
}

.pgb3-game-name {
  font-size: 1.2rem;
  color: #000080;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  width: 100%;
}

/* Card */
.pgb3-card {
  background: #F5F5F5;
  border-radius: 8px;
  padding: 1.5rem;
  margin: 1rem 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.pgb3-card-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: #000080;
  margin-bottom: 1rem;
}

.pgb3-card-content {
  font-size: 1.5rem;
  line-height: 1.6;
  color: #3A3A3A;
}

/* Promotional Link */
.pgb3-promo-link {
  color: #1E90FF;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.3s ease;
}

.pgb3-promo-link:hover {
  color: #0000FF;
  text-decoration: underline;
}

/* Footer */
.pgb3-footer {
  background: #000080;
  padding: 2rem 1rem;
  margin-top: 2rem;
}

.pgb3-footer-content {
  max-width: 430px;
  margin: 0 auto;
}

.pgb3-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.pgb3-footer-link {
  color: #FDF5E6;
  text-decoration: none;
  font-size: 1.4rem;
  transition: color 0.3s ease;
}

.pgb3-footer-link:hover {
  color: #1E90FF;
}

.pgb3-partners {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin: 2rem 0;
}

.pgb3-partner img {
  height: 30px;
  width: auto;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.pgb3-partner img:hover {
  opacity: 1;
}

.pgb3-copyright {
  text-align: center;
  font-size: 1.2rem;
  color: #FDF5E6;
  margin-top: 2rem;
}

/* Bottom Navigation */
.pgb3-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, #000080 0%, #0000FF 100%);
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-around;
  z-index: 1000;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
}

.pgb3-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 60px;
  min-height: 60px;
  text-decoration: none;
  color: #FDF5E6;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  background: none;
  padding: 0.5rem;
}

.pgb3-nav-item:hover,
.pgb3-nav-item:active {
  transform: scale(1.1);
}

.pgb3-nav-item.pgb3-active {
  color: #1E90FF;
}

.pgb3-nav-icon {
  font-size: 22px;
}

.pgb3-nav-text {
  font-size: 10px;
  font-weight: 500;
}

/* Responsive */
@media (min-width: 769px) {
  .pgb3-bottom-nav {
    display: none;
  }

  .pgb3-main {
    padding-bottom: 2rem;
  }

  .pgb3-menu-toggle {
    display: none;
  }

  .pgb3-desktop-nav {
    display: flex;
  }
}

@media (max-width: 768px) {
  .pgb3-desktop-nav {
    display: none;
  }
}

/* Utility */
.pgb3-text-center {
  text-align: center;
}

.pgb3-mt-1 {
  margin-top: 1rem;
}

.pgb3-mb-1 {
  margin-bottom: 1rem;
}

.pgb3-mt-2 {
  margin-top: 2rem;
}

.pgb3-mb-2 {
  margin-bottom: 2rem;
}

.pgb3-hidden {
  display: none;
}
