/* 888PHL Main Stylesheet - Mobile-First Casino Gaming Website */
/* Color Palette: #34495E | #FF8C00 | #FFEBCD | #808080 | #FF4500 | #FFF176 */

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 62.5%; /* 1rem = 10px for easier calculations */
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 1.4rem;
  line-height: 1.5;
  color: #FFEBCD;
  background: linear-gradient(135deg, #34495E 0%, #2C3E50 100%);
  min-height: 100vh;
  overflow-x: hidden;
}

/* Layout Containers */
.container {
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1rem;
}

.section {
  padding: 2rem 0;
  margin-bottom: 1rem;
}

/* Typography */
h1 {
  font-size: 2.4rem;
  font-weight: 700;
  color: #FFF176;
  margin-bottom: 1.5rem;
  text-align: center;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

h2 {
  font-size: 2rem;
  font-weight: 600;
  color: #FF8C00;
  margin-bottom: 1.2rem;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

h3 {
  font-size: 1.6rem;
  font-weight: 500;
  color: #FFF176;
  margin-bottom: 1rem;
}

p {
  margin-bottom: 1rem;
  line-height: 1.6;
}

/* Header Navigation */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(52, 73, 94, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 2px solid #FF8C00;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  max-width: 430px;
  margin: 0 auto;
}

.logo-container {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #FFF176;
}

.logo-img {
  width: 32px;
  height: 32px;
  margin-right: 0.8rem;
  border-radius: 4px;
}

.logo-text {
  font-size: 2rem;
  font-weight: 700;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.nav-buttons {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.nav-btn {
  background: linear-gradient(135deg, #FF8C00, #FF4500);
  color: white;
  border: none;
  padding: 0.8rem 1.2rem;
  border-radius: 6px;
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  min-height: 44px; /* Touch-friendly */
}

.nav-btn:hover {
  background: linear-gradient(135deg, #FF4500, #FF8C00);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.mobile-menu-toggle {
  background: none;
  border: none;
  color: #FFF176;
  font-size: 2.4rem;
  cursor: pointer;
  padding: 0.5rem;
  min-height: 44px;
  min-width: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 70px;
  left: 0;
  right: 0;
  background: rgba(52, 73, 94, 0.98);
  backdrop-filter: blur(15px);
  border-bottom: 2px solid #FF8C00;
  padding: 1rem;
  z-index: 999;
}

.mobile-menu.hidden {
  display: none;
}

.mobile-menu a {
  display: block;
  color: #FFEBCD;
  text-decoration: none;
  padding: 1.2rem 1rem;
  border-bottom: 1px solid #808080;
  font-size: 1.4rem;
  transition: all 0.3s ease;
}

.mobile-menu a:hover {
  background: rgba(255, 140, 0, 0.1);
  color: #FF8C00;
  padding-left: 1.5rem;
}

.mobile-menu a:last-child {
  border-bottom: none;
}

/* Main Content */
.main-content {
  margin-top: 70px; /* Account for fixed header */
  padding-bottom: 80px; /* Account for bottom navigation */
}

/* Hero Carousel */
.hero-carousel {
  position: relative;
  height: 200px;
  margin-bottom: 2rem;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease;
  cursor: pointer;
}

.carousel-slide.active {
  opacity: 1;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-indicators {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
}

.carousel-indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
}

.carousel-indicator.active {
  background: #FF8C00;
  transform: scale(1.2);
}

/* Game Sections */
.games-section {
  margin-bottom: 3rem;
}

.games-section h2 {
  text-align: center;
  margin-bottom: 1.5rem;
  position: relative;
}

.games-section h2::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #FF8C00, #FF4500);
  border-radius: 2px;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

@media (min-width: 375px) {
  .games-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 0.8rem;
  }
}

.game-item {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 0.8rem;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 2px solid transparent;
}

.game-item:hover {
  background: rgba(255, 140, 0, 0.2);
  border-color: #FF8C00;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.game-img {
  width: 100%;
  height: 60px;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 0.5rem;
  transition: all 0.3s ease;
}

.game-img.loaded {
  opacity: 1;
}

.game-name {
  font-size: 1rem;
  color: #FFEBCD;
  font-weight: 500;
  line-height: 1.2;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}

/* Content Modules */
.content-module {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 2rem 1.5rem;
  margin-bottom: 2rem;
  border: 1px solid rgba(255, 140, 0, 0.2);
}

.content-module h3 {
  color: #FF8C00;
  margin-bottom: 1.2rem;
  text-align: center;
}

/* Promotional Links and Buttons */
.promo-link, .promo-btn {
  color: #FF8C00;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-block;
}

.promo-link:hover {
  color: #FF4500;
  text-shadow: 1px 1px 2px rgba(255, 140, 0, 0.3);
}

.promo-btn {
  background: linear-gradient(135deg, #FF8C00, #FF4500);
  color: white;
  padding: 1rem 2rem;
  border-radius: 8px;
  border: none;
  font-size: 1.4rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 3px 6px rgba(0,0,0,0.2);
  margin: 0.5rem;
  min-height: 44px;
}

.promo-btn:hover {
  background: linear-gradient(135deg, #FF4500, #FF8C00);
  transform: translateY(-2px);
  box-shadow: 0 5px 10px rgba(0,0,0,0.3);
}

/* Lists and Content */
.feature-list {
  list-style: none;
  padding: 0;
}

.feature-list li {
  position: relative;
  padding: 0.8rem 0 0.8rem 2rem;
  margin-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.feature-list li::before {
  content: '★';
  position: absolute;
  left: 0;
  top: 0.8rem;
  color: #FFF176;
  font-size: 1.4rem;
}

.feature-list li:last-child {
  border-bottom: none;
}

/* FAQ Styles */
.faq-item {
  margin-bottom: 1.5rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  padding: 1rem;
}

.faq-question {
  font-weight: 600;
  color: #FFF176;
  margin-bottom: 0.5rem;
}

.faq-answer {
  color: #FFEBCD;
  line-height: 1.5;
}

/* Footer */
.footer {
  background: rgba(44, 62, 80, 0.9);
  padding: 2rem 0;
  margin-top: 3rem;
  border-top: 2px solid #FF8C00;
}

.footer-content {
  text-align: center;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.footer-links a {
  color: #FF8C00;
  text-decoration: none;
  font-size: 1.2rem;
  padding: 0.5rem;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: #FFF176;
}

.partners-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin: 2rem 0;
}

.partner-logo {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.partner-logo:hover {
  opacity: 1;
}

.copyright {
  color: #808080;
  font-size: 1.2rem;
  margin-top: 2rem;
}

/* Bottom Navigation */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(52, 73, 94, 0.95);
  backdrop-filter: blur(10px);
  display: flex;
  justify-content: center;
  padding: 0.8rem 0;
  border-top: 2px solid #FF8C00;
  z-index: 1000;
}

.bottom-nav-container {
  display: flex;
  justify-content: space-around;
  align-items: center;
  width: 100%;
  max-width: 430px;
}

.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: #FFEBCD;
  font-size: 1rem;
  transition: all 0.3s ease;
  padding: 0.5rem;
  min-width: 44px;
  min-height: 44px;
  justify-content: center;
}

.bottom-nav-item:hover {
  color: #FF8C00;
  transform: translateY(-2px);
}

.bottom-nav-item i {
  font-size: 2rem;
  margin-bottom: 0.2rem;
}

.bottom-nav-item.active {
  color: #FF8C00;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
  from { transform: translateX(-100%); }
  to { transform: translateX(0); }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.animate-in {
  opacity: 1;
  transform: translateY(0);
}

.fade-in {
  animation: fadeIn 0.6s ease forwards;
}

.slide-in {
  animation: slideIn 0.5s ease forwards;
}

/* Loading States */
.loading {
  position: relative;
  overflow: hidden;
}

.loading::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% { left: -100%; }
  100% { left: 100%; }
}

/* Responsive Adjustments */
@media (min-width: 375px) {
  .container {
    padding: 0 1.5rem;
  }
  
  .nav-container {
    padding: 1rem 1.5rem;
  }
}

@media (min-width: 414px) {
  .games-grid {
    grid-template-columns: repeat(5, 1fr);
  }
  
  .game-img {
    height: 70px;
  }
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }

.hidden { display: none; }
.visible { display: block; }

.flex { display: flex; }
.flex-center { display: flex; justify-content: center; align-items: center; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }

/* Accessibility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Focus States */
button:focus,
a:focus,
input:focus {
  outline: 2px solid #FF8C00;
  outline-offset: 2px;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
  body {
    background: #000;
    color: #fff;
  }
  
  .promo-btn {
    border: 2px solid #FF8C00;
  }
} 