/**
 * phlboss - Main Stylesheet
 * Version: 1.0
 * Mobile-first responsive design
 * Created for PHLBOSS Casino Platform
 */

/* CSS Variables */
:root {
  --w3632-primary: #20B2AA;
  --w3632-primary-dark: #188B84;
  --w3632-secondary: #000080;
  --w3632-secondary-dark: #000066;
  --w3632-accent: #80CBC4;
  --w3632-accent-light: #F0FDFF;
  --w3632-bg-dark: #2D2D2D;
  --w3632-bg-darker: #1A1A1A;
  --w3632-text-light: #F0FDFF;
  --w3632-text-muted: #B0B0B0;
  --w3632-shadow: rgba(0, 0, 0, 0.3);
  --w3632-shadow-light: rgba(0, 0, 0, 0.1);
  --w3632-border: rgba(32, 178, 170, 0.3);
  --w3632-gradient: linear-gradient(135deg, var(--w3632-primary) 0%, var(--w3632-secondary) 100%);
  --w3632-gradient-dark: linear-gradient(135deg, var(--w3632-primary-dark) 0%, var(--w3632-secondary-dark) 100%);
}

/* Reset and Base */
* {
  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, Oxygen, Ubuntu, Cantarell, sans-serif;
  font-size: 1.6rem;
  line-height: 1.5;
  color: var(--w3632-text-light);
  background-color: var(--w3632-bg-dark);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}

.w3632-loaded {
  overflow-x: hidden;
}

/* Container */
.w3632-container {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.w3632-wrapper {
  padding: 2rem 0;
}

/* Header */
.w3632-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: linear-gradient(180deg, var(--w3632-bg-darker) 0%, var(--w3632-bg-dark) 100%);
  backdrop-filter: blur(10px);
  z-index: 1000;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-bottom: 1px solid var(--w3632-border);
}

.w3632-header-hidden {
  transform: translateY(-100%);
}

.w3632-header-scrolled {
  box-shadow: 0 4px 20px var(--w3632-shadow);
}

.w3632-header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  min-height: 60px;
}

.w3632-logo {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  color: var(--w3632-text-light);
  font-weight: bold;
  font-size: 1.8rem;
}

.w3632-logo-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  object-fit: cover;
}

.w3632-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.w3632-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.5rem;
  font-size: 1.4rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  min-height: 44px;
  min-width: 44px;
  white-space: nowrap;
}

.w3632-btn-primary {
  background: var(--w3632-gradient);
  color: var(--w3632-text-light);
  box-shadow: 0 4px 15px var(--w3632-shadow);
}

.w3632-btn-primary:hover {
  background: var(--w3632-gradient-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--w3632-shadow);
}

.w3632-btn-secondary {
  background: transparent;
  color: var(--w3632-text-light);
  border: 2px solid var(--w3632-primary);
}

.w3632-btn-secondary:hover {
  background: var(--w3632-primary);
  transform: translateY(-2px);
}

.w3632-menu-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--w3632-text-light);
  font-size: 2.4rem;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.w3632-menu-toggle:hover {
  background: var(--w3632-primary);
}

/* Mobile Menu */
.w3632-mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(26, 26, 26, 0.95);
  backdrop-filter: blur(10px);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateX(100%);
  transition: all 0.3s ease;
}

.w3632-menu-open {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

.w3632-menu-close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  background: transparent;
  border: none;
  color: var(--w3632-text-light);
  font-size: 2.8rem;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.w3632-menu-close:hover {
  background: var(--w3632-primary);
  transform: rotate(90deg);
}

.w3632-menu-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  width: 100%;
  padding: 2rem;
}

.w3632-menu-link {
  display: block;
  color: var(--w3632-text-light);
  text-decoration: none;
  font-size: 1.8rem;
  font-weight: 500;
  padding: 1rem 2rem;
  border-radius: 12px;
  transition: all 0.3s ease;
  text-align: center;
  width: 100%;
  max-width: 300px;
}

.w3632-menu-link:hover {
  background: var(--w3632-primary);
  transform: translateX(10px);
}

/* Main Content */
main {
  margin-top: 80px;
  min-height: calc(100vh - 80px);
  padding-bottom: 80px;
}

.w3632-section {
  padding: 3rem 0;
}

.w3632-section-title {
  font-size: 2.4rem;
  font-weight: bold;
  color: var(--w3632-primary);
  margin-bottom: 2rem;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.w3632-subtitle {
  font-size: 1.8rem;
  color: var(--w3632-accent);
  margin-bottom: 1.5rem;
  text-align: center;
}

/* Carousel */
.w3632-carousel {
  position: relative;
  width: 100%;
  height: 200px;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 3rem;
  box-shadow: 0 8px 30px var(--w3632-shadow);
}

.w3632-carousel-container {
  position: relative;
  width: 100%;
  height: 100%;
}

.w3632-carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: all 0.6s ease;
}

.w3632-slide-active {
  opacity: 1;
  visibility: visible;
}

.w3632-carousel-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

.w3632-carousel-dots {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.8rem;
  z-index: 10;
}

.w3632-carousel-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(240, 253, 255, 0.5);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.w3632-dot-active {
  background: var(--w3632-primary);
  transform: scale(1.3);
}

/* Games Grid */
.w3632-games-section {
  margin-bottom: 3rem;
}

.w3632-games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.w3632-game-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: var(--w3632-text-light);
  transition: all 0.3s ease;
  border-radius: 8px;
  padding: 0.8rem 0.4rem;
  background: rgba(32, 178, 170, 0.1);
}

.w3632-game-item:hover {
  transform: translateY(-5px);
  background: var(--w3632-primary);
  box-shadow: 0 6px 20px var(--w3632-shadow);
}

.w3632-game-icon {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  object-fit: cover;
  margin-bottom: 0.8rem;
  box-shadow: 0 4px 10px var(--w3632-shadow-light);
}

.w3632-game-name {
  font-size: 1.1rem;
  font-weight: 500;
  text-align: center;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* Cards */
.w3632-card {
  background: linear-gradient(135deg, rgba(32, 178, 170, 0.1) 0%, rgba(0, 0, 128, 0.1) 100%);
  border: 1px solid var(--w3632-border);
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 4px 20px var(--w3632-shadow-light);
  transition: all 0.3s ease;
}

.w3632-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px var(--w3632-shadow);
  border-color: var(--w3632-primary);
}

.w3632-card-title {
  font-size: 1.8rem;
  font-weight: bold;
  color: var(--w3632-primary);
  margin-bottom: 1rem;
}

.w3632-card-content {
  color: var(--w3632-text-light);
  line-height: 1.6;
}

.w3632-card-content p {
  margin-bottom: 1rem;
}

/* Links */
.w3632-link {
  color: var(--w3632-primary);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.w3632-link:hover {
  color: var(--w3632-accent);
  text-decoration: underline;
}

/* Footer */
.w3632-footer {
  background: linear-gradient(180deg, var(--w3632-bg-dark) 0%, var(--w3632-bg-darker) 100%);
  border-top: 1px solid var(--w3632-border);
  padding: 3rem 0 2rem;
  margin-top: 4rem;
}

.w3632-footer-content {
  text-align: center;
}

.w3632-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.w3632-footer-link {
  color: var(--w3632-text-light);
  text-decoration: none;
  font-size: 1.4rem;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.w3632-footer-link:hover {
  background: var(--w3632-primary);
  transform: translateY(-2px);
}

.w3632-partners {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  margin: 2rem 0;
}

.w3632-partner-logo {
  width: 60px;
  height: 30px;
  object-fit: contain;
  filter: grayscale(50%);
  transition: all 0.3s ease;
}

.w3632-partner-logo:hover {
  filter: grayscale(0%);
  transform: scale(1.1);
}

.w3632-copyright {
  color: var(--w3632-text-muted);
  font-size: 1.2rem;
  margin-top: 2rem;
}

/* Mobile Bottom Navigation */
.w3632-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(180deg, var(--w3632-bg-darker) 0%, var(--w3632-bg-dark) 100%);
  border-top: 1px solid var(--w3632-border);
  z-index: 1000;
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 64px;
  box-shadow: 0 -4px 20px var(--w3632-shadow);
}

.w3632-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 60px;
  text-decoration: none;
  color: var(--w3632-text-muted);
  transition: all 0.3s ease;
  cursor: pointer;
  border-radius: 8px;
  padding: 0.5rem;
}

.w3632-nav-item:hover {
  color: var(--w3632-primary);
  background: rgba(32, 178, 170, 0.1);
  transform: translateY(-2px);
}

.w3632-nav-item.active {
  color: var(--w3632-primary);
  background: rgba(32, 178, 170, 0.2);
}

.w3632-nav-icon {
  font-size: 24px;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.w3632-nav-text {
  font-size: 10px;
  font-weight: 500;
  text-align: center;
}

/* Responsive Design */
@media (min-width: 769px) {
  .w3632-bottom-nav {
    display: none;
  }

  main {
    padding-bottom: 0;
  }

  .w3632-menu-toggle {
    display: block;
  }

  .w3632-nav .w3632-btn {
    display: none;
  }
}

@media (max-width: 768px) {
  .w3632-menu-toggle {
    display: block;
  }

  .w3632-nav .w3632-btn {
    display: none;
  }
}

@media (max-width: 480px) {
  .w3632-container {
    padding: 0 1rem;
  }

  .w3632-games-grid {
    grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
    gap: 0.8rem;
  }

  .w3632-game-icon {
    width: 50px;
    height: 50px;
  }

  .w3632-game-name {
    font-size: 1rem;
  }

  .w3632-carousel {
    height: 160px;
  }
}

/* Utility Classes */
.w3632-text-center {
  text-align: center;
}

.w3632-mt-1 { margin-top: 1rem; }
.w3632-mt-2 { margin-top: 2rem; }
.w3632-mt-3 { margin-top: 3rem; }

.w3632-mb-1 { margin-bottom: 1rem; }
.w3632-mb-2 { margin-bottom: 2rem; }
.w3632-mb-3 { margin-bottom: 3rem; }

.w3632-p-1 { padding: 1rem; }
.w3632-p-2 { padding: 2rem; }
.w3632-p-3 { padding: 3rem; }

/* Animations */
@keyframes w3632-fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.w3632-fadeIn {
  animation: w3632-fadeIn 0.6s ease-out;
}

@keyframes w3632-pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

.w3632-pulse {
  animation: w3632-pulse 2s infinite ease-in-out;
}

/* Loading States */
.w3632-loading {
  position: relative;
  overflow: hidden;
}

.w3632-loading::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  animation: w3632-loading 1.5s infinite;
}

@keyframes w3632-loading {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}