/* ph365 bond - Stylesheet */
/* All classes use v476- prefix for namespace isolation */

/* CSS Variables */
:root {
  --v476-primary: #87CEFA;
  --v476-secondary: #00FF7F;
  --v476-accent: #20B2AA;
  --v476-dark: #2E4057;
  --v476-green: #32CD32;
  --v476-white: #FFFFFF;
  --v476-light-gray: #F5F5F5;
  --v476-dark-gray: #333333;
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 62.5%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  font-size: 1.4rem;
  line-height: 1.5;
  color: var(--v476-white);
  background-color: var(--v476-dark);
  max-width: 430px;
  margin: 0 auto;
  overflow-x: hidden;
}

/* Header Styles */
.v476-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, var(--v476-dark) 0%, #1a1a1a 100%);
  padding: 12px 16px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.v476-logo-container {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--v476-white);
}

.v476-logo-icon {
  width: 32px;
  height: 32px;
  border-radius: 6px;
}

.v476-logo-text {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--v476-primary);
  text-decoration: none;
}

.v476-header-buttons {
  display: flex;
  gap: 8px;
}

.v476-header-btn {
  padding: 8px 16px;
  font-size: 1.3rem;
  font-weight: 600;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.v476-btn-register {
  background: linear-gradient(135deg, var(--v476-green) 0%, var(--v476-secondary) 100%);
  color: var(--v476-dark);
}

.v476-btn-login {
  background: transparent;
  color: var(--v476-primary);
  border: 2px solid var(--v476-primary);
}

.v476-header-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(135, 206, 250, 0.4);
}

/* Mobile Menu Toggle */
.v476-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  padding: 8px;
}

.v476-menu-toggle span {
  width: 24px;
  height: 2px;
  background-color: var(--v476-primary);
  transition: all 0.3s ease;
}

/* Mobile Menu */
.v476-mobile-menu {
  position: fixed;
  top: 60px;
  left: 0;
  right: 0;
  background: var(--v476-dark);
  padding: 20px;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  z-index: 9999;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.v476-mobile-menu.v476-menu-open {
  transform: translateX(0);
}

.v476-menu-link {
  display: block;
  padding: 12px 16px;
  color: var(--v476-white);
  text-decoration: none;
  font-size: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.v476-menu-link:hover {
  background: rgba(135, 206, 250, 0.1);
  padding-left: 20px;
}

/* Main Content */
.v476-main {
  margin-top: 60px;
  padding: 20px 16px 80px 16px;
  min-height: calc(100vh - 60px);
}

/* Carousel */
.v476-carousel {
  position: relative;
  width: 100%;
  height: 180px;
  margin-bottom: 20px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.v476-carousel-slide {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.v476-carousel-slide.v476-active {
  opacity: 1;
}

.v476-carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.v476-carousel-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}

.v476-carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
}

.v476-carousel-dot.v476-active {
  background-color: var(--v476-primary);
  width: 24px;
  border-radius: 4px;
}

/* Section Styles */
.v476-section {
  margin-bottom: 30px;
}

.v476-section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--v476-primary);
  margin-bottom: 16px;
  text-align: center;
}

/* Game Grid */
.v476-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}

.v476-game-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.v476-game-item:hover {
  transform: scale(1.05);
}

.v476-game-icon {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
  background-color: var(--v476-light-gray);
}

.v476-game-name {
  font-size: 1rem;
  color: var(--v476-white);
  text-align: center;
  line-height: 1.2;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Card Styles */
.v476-card {
  background: linear-gradient(135deg, rgba(46, 64, 87, 0.8) 0%, rgba(30, 40, 55, 0.9) 100%);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.v476-card-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--v476-secondary);
  margin-bottom: 12px;
}

.v476-card-content {
  font-size: 1.4rem;
  line-height: 1.6;
  color: var(--v476-white);
}

/* Button Styles */
.v476-btn {
  display: inline-block;
  padding: 12px 24px;
  font-size: 1.4rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  border-radius: 25px;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}

.v476-btn-primary {
  background: linear-gradient(135deg, var(--v476-green) 0%, var(--v476-secondary) 100%);
  color: var(--v476-dark);
}

.v476-btn-secondary {
  background: linear-gradient(135deg, var(--v476-primary) 0%, var(--v476-accent) 100%);
  color: var(--v476-white);
}

.v476-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 255, 127, 0.4);
}

/* Footer Styles */
.v476-footer {
  background: linear-gradient(135deg, var(--v476-dark) 0%, #1a1a1a 100%);
  padding: 30px 16px 100px 16px;
  margin-top: 40px;
}

.v476-footer-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--v476-primary);
  margin-bottom: 16px;
  text-align: center;
}

.v476-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 24px;
}

.v476-footer-link {
  color: var(--v476-secondary);
  text-decoration: none;
  font-size: 1.3rem;
  transition: color 0.3s ease;
}

.v476-footer-link:hover {
  color: var(--v476-primary);
}

.v476-partners {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 24px;
}

.v476-partner-icon {
  width: 50px;
  height: 50px;
  object-fit: contain;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.v476-partner-icon:hover {
  opacity: 1;
}

.v476-copyright {
  text-align: center;
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.6);
}

/* Mobile Bottom Navigation */
.v476-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, var(--v476-dark) 0%, #1a1a1a 100%);
  height: 60px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
  z-index: 1000;
}

.v476-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: var(--v476-white);
  transition: all 0.3s ease;
  cursor: pointer;
}

.v476-nav-item:hover {
  transform: scale(1.1);
}

.v476-nav-item.v476-nav-active {
  color: var(--v476-primary);
}

.v476-nav-icon {
  font-size: 24px;
}

.v476-nav-text {
  font-size: 1rem;
  font-weight: 500;
}

/* Media Queries */
@media (min-width: 769px) {
  .v476-bottom-nav {
    display: none;
  }

  .v476-main {
    padding-bottom: 20px;
  }

  .v476-footer {
    padding-bottom: 30px;
  }
}

@media (max-width: 768px) {
  .v476-menu-toggle {
    display: flex;
  }
}

/* Utility Classes */
.v476-text-center {
  text-align: center;
}

.v476-mt-1 {
  margin-top: 10px;
}

.v476-mt-2 {
  margin-top: 20px;
}

.v476-mb-1 {
  margin-bottom: 10px;
}

.v476-mb-2 {
  margin-bottom: 20px;
}

.v476-promo-link {
  color: var(--v476-secondary);
  font-weight: 700;
  text-decoration: none;
  transition: color 0.3s ease;
}

.v476-promo-link:hover {
  color: var(--v476-primary);
  text-decoration: underline;
}
