/**
 * Phlwim Gaming Platform - Core CSS Styles
 * Version: 1.0.0
 * Mobile-first casino gaming website
 */

/* CSS Reset and Base Styles */
:root {
  font-size: 62.5%; /* 10px as base for easy rem calculations */
  --w8d54-primary: #00E5FF;
  --w8d54-secondary: #D4AF37;
  --w8d54-bg: #273746;
  --w8d54-light-bg: #F0FDFF;
  --w8d54-text: #FFF8DC;
  --w8d54-dark-text: #273746;
  --w8d54-accent: #D4AF37;
  --w8d54-success: #00C853;
  --w8d54-warning: #FFD600;
  --w8d54-error: #FF3D00;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Arial', sans-serif;
  font-size: 1.6rem;
  line-height: 1.5;
  background-color: var(--w8d54-bg);
  color: var(--w8d54-text);
  max-width: 430px;
  margin: 0 auto;
  overflow-x: hidden;
  padding-bottom: 7rem; /* Space for mobile navigation */
}

a {
  text-decoration: none;
  color: var(--w8d54-primary);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Utility Classes */
.w8d54-hidden {
  display: none !important;
}

.w8d54-flex {
  display: flex !important;
}

.w8d54-flex-col {
  display: flex;
  flex-direction: column;
}

.w8d54-items-center {
  align-items: center;
}

.w8d54-justify-between {
  justify-content: space-between;
}

.w8d54-justify-center {
  justify-content: center;
}

.w8d54-text-center {
  text-align: center;
}

.w8d54-w-full {
  width: 100%;
}

.w8d54-my-2 {
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.w8d54-mb-4 {
  margin-bottom: 4rem;
}

.w8d54-py-2 {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.w8d54-px-2 {
  padding-left: 2rem;
  padding-right: 2rem;
}

.w8d54-p-2 {
  padding: 2rem;
}

/* Container and Layout */
.w8d54-container {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.w8d54-section {
  margin-bottom: 2.4rem;
}

.w8d54-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

/* Header and Navigation */
.w8d54-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--w8d54-bg);
  border-bottom: 1px solid var(--w8d54-primary);
  padding: 1rem 1.5rem;
}

.w8d54-header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.w8d54-logo {
  display: flex;
  align-items: center;
}

.w8d54-logo-img {
  height: 3.2rem;
  width: auto;
  margin-right: 1rem;
}

.w8d54-logo-text {
  font-size: 2rem;
  font-weight: bold;
  color: var(--w8d54-primary);
}

.w8d54-nav-toggle {
  background: transparent;
  border: none;
  color: var(--w8d54-primary);
  font-size: 2.4rem;
  cursor: pointer;
  padding: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.w8d54-nav-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: var(--w8d54-bg);
  border-bottom: 2px solid var(--w8d54-primary);
  flex-direction: column;
  padding: 1rem;
  z-index: 90;
}

.w8d54-nav-link {
  color: var(--w8d54-text);
  padding: 1rem;
  font-size: 1.6rem;
  display: block;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.w8d54-nav-link:last-child {
  border-bottom: none;
}

.w8d54-nav-link:hover, .w8d54-nav-link.w8d54-active {
  color: var(--w8d54-primary);
  background-color: rgba(0, 229, 255, 0.1);
}

.w8d54-auth-buttons {
  display: flex;
  gap: 1rem;
}

/* Buttons */
.w8d54-btn {
  display: inline-block;
  padding: 1rem 2rem;
  border-radius: 0.5rem;
  font-weight: bold;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  min-height: 4.4rem;
  border: none;
  font-size: 1.6rem;
}

.w8d54-btn-primary {
  background-color: var(--w8d54-primary);
  color: var(--w8d54-bg);
}

.w8d54-btn-secondary {
  background-color: var(--w8d54-secondary);
  color: var(--w8d54-bg);
}

.w8d54-btn-outline {
  background-color: transparent;
  border: 2px solid var(--w8d54-primary);
  color: var(--w8d54-primary);
}

.w8d54-touch-active {
  transform: scale(0.95);
  opacity: 0.9;
}

/* Promotional Elements */
.w8d54-promo-link {
  color: var(--w8d54-secondary);
  font-weight: bold;
  text-decoration: underline;
}

.w8d54-promo-btn {
  background: linear-gradient(135deg, var(--w8d54-primary), var(--w8d54-secondary));
  color: var(--w8d54-dark-text);
  padding: 1.2rem 2.4rem;
  border-radius: 0.8rem;
  font-weight: bold;
  text-align: center;
  display: inline-block;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  margin: 1rem 0;
}

.w8d54-promo-btn:active {
  transform: translateY(2px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Carousel */
.w8d54-carousel {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 200px;
  border-radius: 1rem;
  margin-bottom: 2rem;
}

.w8d54-carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

.w8d54-slide-active {
  opacity: 1;
  z-index: 1;
}

.w8d54-carousel-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Game Grid */
.w8d54-games-container {
  margin-top: 2rem;
  margin-bottom: 3rem;
}

.w8d54-game-category {
  margin-bottom: 2.5rem;
}

.w8d54-category-title {
  font-size: 2rem;
  margin-bottom: 1.2rem;
  color: var(--w8d54-primary);
  padding-bottom: 0.8rem;
  border-bottom: 2px solid var(--w8d54-secondary);
}

.w8d54-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.w8d54-game-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.w8d54-game-icon {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 0.8rem;
  overflow: hidden;
  margin-bottom: 0.5rem;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.w8d54-game-name {
  font-size: 1.2rem;
  color: var(--w8d54-text);
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Content Modules */
.w8d54-module {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 0.8rem;
  padding: 1.5rem;
  margin-bottom: 2rem;
  border-left: 3px solid var(--w8d54-primary);
}

.w8d54-module-title {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: var(--w8d54-primary);
}

.w8d54-module-content {
  font-size: 1.5rem;
  line-height: 1.6;
}

/* Footer */
.w8d54-footer {
  padding: 2rem 1.5rem;
  background-color: rgba(0, 0, 0, 0.3);
  margin-top: 3rem;
}

.w8d54-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}

.w8d54-footer-link {
  font-size: 1.4rem;
  color: var(--w8d54-text);
  padding: 0.5rem 0;
}

.w8d54-partners {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.w8d54-partner-img {
  height: 3rem;
  width: auto;
  filter: grayscale(0.6);
  opacity: 0.8;
  transition: all 0.2s ease;
}

.w8d54-partner-img:hover {
  filter: grayscale(0);
  opacity: 1;
}

.w8d54-copyright {
  text-align: center;
  font-size: 1.2rem;
  color: rgba(255, 248, 220, 0.6);
}

/* Mobile Bottom Navigation */
.w8d54-mobile-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 6.4rem;
  background-color: var(--w8d54-bg);
  display: flex;
  justify-content: space-around;
  align-items: center;
  border-top: 1px solid var(--w8d54-primary);
  z-index: 100;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
  max-width: 430px;
  margin: 0 auto;
}

.w8d54-mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  width: 20%;
}

.w8d54-mobile-nav-icon {
  font-size: 2.4rem;
  margin-bottom: 0.4rem;
  color: var(--w8d54-text);
}

.w8d54-mobile-nav-text {
  font-size: 1.2rem;
  color: var(--w8d54-text);
}

.w8d54-mobile-nav-item.w8d54-active .w8d54-mobile-nav-icon,
.w8d54-mobile-nav-item.w8d54-active .w8d54-mobile-nav-text {
  color: var(--w8d54-primary);
}

/* Typography and Content */
h1, .w8d54-h1 {
  font-size: 2.4rem;
  margin-bottom: 1.5rem;
  color: var(--w8d54-primary);
}

h2, .w8d54-h2 {
  font-size: 2.2rem;
  margin-bottom: 1.2rem;
  color: var(--w8d54-secondary);
}

h3, .w8d54-h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: var(--w8d54-primary);
}

p, .w8d54-text {
  margin-bottom: 1.6rem;
  line-height: 1.5;
}

.w8d54-text-primary {
  color: var(--w8d54-primary);
}

.w8d54-text-secondary {
  color: var(--w8d54-secondary);
}

.w8d54-bold {
  font-weight: bold;
}

/* Tables */
.w8d54-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}

.w8d54-table th, 
.w8d54-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.w8d54-table th {
  background-color: rgba(0, 229, 255, 0.1);
  color: var(--w8d54-primary);
}

/* Lists */
.w8d54-list {
  list-style-position: inside;
  margin-bottom: 1.5rem;
}

.w8d54-list li {
  margin-bottom: 0.8rem;
}

/* Media Queries */
@media (min-width: 431px) {
  body {
    max-width: 100%;
    padding-left: calc((100% - 430px) / 2);
    padding-right: calc((100% - 430px) / 2);
  }
  
  .w8d54-mobile-nav {
    max-width: 430px;
    left: 50%;
    transform: translateX(-50%);
  }
} 