/* ph vipslot - CSS Stylesheet */
/* All classes use g284- prefix for namespace isolation */
/* Mobile-first responsive design */

/* CSS Variables */
:root {
  --g284-primary: #FF6347;
  --g284-primary-dark: #CD5C5C;
  --g284-bg-dark: #1E1E1E;
  --g284-bg-secondary: #2C3E50;
  --g284-text-light: #D3D3D3;
  --g284-text-white: #FFFFFF;
  --g284-border: #3a3a3a;
  --g284-success: #28a745;
  --g284-warning: #ffc107;
  --g284-shadow: rgba(0, 0, 0, 0.3);
  --g284-transition: all 0.3s ease;
}

/* 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: var(--g284-text-light);
  background-color: var(--g284-bg-dark);
  min-width: 320px;
  max-width: 430px;
  margin: 0 auto;
  overflow-x: hidden;
}

/* Header Styles */
.g284-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: var(--g284-bg-secondary);
  box-shadow: 0 2px 10px var(--g284-shadow);
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 430px;
  margin: 0 auto;
}

.g284-logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  color: var(--g284-text-white);
  font-size: 1.4rem;
  font-weight: bold;
}

.g284-logo-icon {
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 8px;
}

.g284-header-buttons {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.g284-btn {
  padding: 0.6rem 1.5rem;
  border-radius: 6px;
  font-size: 1.3rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: var(--g284-transition);
  border: none;
  display: inline-block;
  text-align: center;
}

.g284-btn-primary {
  background-color: var(--g284-primary);
  color: var(--g284-text-white);
}

.g284-btn-primary:hover {
  background-color: var(--g284-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px var(--g284-shadow);
}

.g284-btn-secondary {
  background-color: transparent;
  color: var(--g284-text-white);
  border: 2px solid var(--g284-primary);
}

.g284-btn-secondary:hover {
  background-color: var(--g284-primary);
  transform: translateY(-2px);
}

.g284-menu-toggle {
  display: block;
  background: none;
  border: none;
  color: var(--g284-text-white);
  font-size: 2.4rem;
  cursor: pointer;
  padding: 0.5rem;
}

/* Mobile Menu Overlay */
.g284-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: var(--g284-transition);
  max-width: 430px;
  margin: 0 auto;
}

.g284-overlay-active {
  opacity: 1;
  visibility: visible;
}

/* Mobile Menu */
.g284-mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 75%;
  max-width: 320px;
  height: 100vh;
  background-color: var(--g284-bg-secondary);
  z-index: 9999;
  transition: right 0.3s ease;
  overflow-y: auto;
  padding: 6rem 2rem 2rem;
  box-shadow: -2px 0 10px var(--g284-shadow);
}

.g284-menu-open {
  right: 0;
}

.g284-menu-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: var(--g284-text-white);
  font-size: 2.8rem;
  cursor: pointer;
  padding: 0.5rem;
}

.g284-menu-link {
  display: block;
  padding: 1.2rem 0;
  color: var(--g284-text-light);
  text-decoration: none;
  font-size: 1.5rem;
  border-bottom: 1px solid var(--g284-border);
  transition: var(--g284-transition);
}

.g284-menu-link:hover {
  color: var(--g284-primary);
  padding-left: 1rem;
}

/* Main Content */
.g284-main {
  margin-top: 7rem;
  padding: 2rem 1.5rem;
  min-height: 100vh;
}

@media (max-width: 768px) {
  .g284-main {
    padding-bottom: 8rem;
  }
}

/* Carousel */
.g284-carousel {
  position: relative;
  width: 100%;
  height: 18rem;
  overflow: hidden;
  border-radius: 12px;
  margin-bottom: 2.5rem;
  box-shadow: 0 4px 15px var(--g284-shadow);
}

.g284-carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
  cursor: pointer;
}

.g284-carousel-slide.g284-active {
  opacity: 1;
}

.g284-carousel-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Sections */
.g284-section {
  margin-bottom: 3rem;
  padding: 2rem;
  background-color: var(--g284-bg-secondary);
  border-radius: 12px;
  box-shadow: 0 4px 12px var(--g284-shadow);
}

.g284-section-title {
  color: var(--g284-primary);
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 1.5rem;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.g284-section-content {
  color: var(--g284-text-light);
  font-size: 1.5rem;
  line-height: 1.8;
}

.g284-section-content p {
  margin-bottom: 1rem;
}

/* Game Grid */
.g284-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.g284-game-item {
  text-decoration: none;
  color: var(--g284-text-light);
  transition: var(--g284-transition);
}

.g284-game-item:hover {
  transform: translateY(-4px);
}

.g284-game-icon {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 0.5rem;
  box-shadow: 0 2px 8px var(--g284-shadow);
}

.g284-game-name {
  font-size: 1.1rem;
  text-align: center;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.3;
}

/* Category Title */
.g284-category-title {
  color: var(--g284-primary);
  font-size: 1.8rem;
  font-weight: bold;
  margin: 2.5rem 0 1.5rem;
  padding-bottom: 0.8rem;
  border-bottom: 2px solid var(--g284-primary);
}

/* Internal Links */
.g284-internal-link {
  color: var(--g284-primary);
  text-decoration: none;
  font-weight: 600;
  transition: var(--g284-transition);
}

.g284-internal-link:hover {
  color: var(--g284-primary-dark);
  text-decoration: underline;
}

/* Footer */
.g284-footer {
  background-color: var(--g284-bg-secondary);
  padding: 3rem 1.5rem 2rem;
  margin-top: 3rem;
  box-shadow: 0 -2px 10px var(--g284-shadow);
}

.g284-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
  justify-content: center;
}

.g284-footer-link {
  color: var(--g284-text-light);
  text-decoration: none;
  font-size: 1.3rem;
  padding: 0.5rem 1rem;
  border: 1px solid var(--g284-border);
  border-radius: 6px;
  transition: var(--g284-transition);
}

.g284-footer-link:hover {
  background-color: var(--g284-primary);
  color: var(--g284-text-white);
  border-color: var(--g284-primary);
}

.g284-partners {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.g284-partner-logo {
  width: 100%;
  height: auto;
  opacity: 0.7;
  transition: var(--g284-transition);
}

.g284-partner-logo:hover {
  opacity: 1;
  transform: scale(1.05);
}

.g284-copyright {
  text-align: center;
  color: var(--g284-text-light);
  font-size: 1.2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--g284-border);
}

/* Mobile Bottom Navigation */
.g284-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, var(--g284-bg-secondary) 0%, var(--g284-bg-dark) 100%);
  box-shadow: 0 -2px 10px var(--g284-shadow);
  z-index: 1000;
  height: 6rem;
  display: flex;
  justify-content: space-around;
  align-items: center;
  max-width: 430px;
  margin: 0 auto;
}

.g284-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--g284-text-light);
  min-width: 6rem;
  min-height: 6rem;
  transition: var(--g284-transition);
  position: relative;
}

.g284-nav-item:hover {
  color: var(--g284-primary);
  transform: scale(1.05);
}

.g284-nav-item.g284-active {
  color: var(--g284-primary);
}

.g284-nav-icon {
  font-size: 2.4rem;
  margin-bottom: 0.3rem;
}

.g284-nav-text {
  font-size: 1rem;
  font-weight: 500;
}

.g284-nav-badge {
  position: absolute;
  top: 0.5rem;
  right: 0.8rem;
  background-color: var(--g284-primary);
  color: var(--g284-text-white);
  font-size: 0.8rem;
  padding: 0.2rem 0.5rem;
  border-radius: 10px;
  font-weight: bold;
}

/* Hide bottom nav on desktop */
@media (min-width: 769px) {
  .g284-bottom-nav {
    display: none;
  }

  .g284-main {
    padding-bottom: 2rem;
  }
}

/* Responsive Adjustments */
@media (max-width: 380px) {
  .g284-game-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .g284-partners {
    grid-template-columns: repeat(4, 1fr);
  }
}
