/**
 * PHLOVE LOGIN - Core CSS Layout
 * All classes use w45e0- prefix to avoid naming conflicts
 * Mobile-first responsive design with casino theme
 */

/* CSS Variables */
:root {
  --w45e0-primary: #48D1CC;
  --w45e0-secondary: #C71585;
  --w45e0-accent: #DC143C;
  --w45e0-dark: #8B0000;
  --w45e0-darker: #2E4057;
  --w45e0-light: #FFFFFF;
  --w45e0-bg: #2E4057;
  --w45e0-text: #FFFFFF;
  --w45e0-text-secondary: #48D1CC;
  --w45e0-border: #C71585;
  --w45e0-shadow: rgba(139, 0, 0, 0.3);
  --w45e0-gradient: linear-gradient(135deg, #8B0000 0%, #DC143C 50%, #C71585 100%);
  --w45e0-radius: 8px;
  --w45e0-transition: all 0.3s ease;
  --w45e0-header-height: 60px;
  --w45e0-bottom-nav-height: 60px;
  --w45e0-max-width: 430px;
  --w45e0-font-size-base: 62.5%;
  --w45e0-line-height: 1.5rem;
}

/* Base Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: var(--w45e0-font-size-base);
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  background: var(--w45e0-bg);
  color: var(--w45e0-text);
  line-height: var(--w45e0-line-height);
  font-size: 1.4rem;
  overflow-x: hidden;
  min-height: 100vh;
  padding-top: var(--w45e0-header-height);
  padding-bottom: var(--w45e0-bottom-nav-height);
}

/* Container and Layout */
.w45e0-container {
  max-width: var(--w45e0-max-width);
  margin: 0 auto;
  padding: 0 1rem;
  width: 100%;
}

.w45e0-wrapper {
  min-height: calc(100vh - var(--w45e0-header-height) - var(--w45e0-bottom-nav-height));
  display: flex;
  flex-direction: column;
}

.w45e0-main {
  flex: 1;
  padding: 1rem 0;
}

.w45e0-grid {
  display: grid;
  gap: 1rem;
}

.w45e0-grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.w45e0-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.w45e0-grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.w45e0-grid-5 {
  grid-template-columns: repeat(5, 1fr);
}

.w45e0-grid-auto {
  grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
}

.w45e0-flex {
  display: flex;
  gap: 1rem;
}

.w45e0-flex-center {
  justify-content: center;
  align-items: center;
}

.w45e0-flex-between {
  justify-content: space-between;
  align-items: center;
}

.w45e0-flex-wrap {
  flex-wrap: wrap;
}

.w45e0-flex-column {
  flex-direction: column;
}

/* Header */
.w45e0-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--w45e0-header-height);
  background: var(--w45e0-gradient);
  backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 1px solid var(--w45e0-border);
  box-shadow: 0 2px 10px var(--w45e0-shadow);
}

.w45e0-header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
  padding: 0 1rem;
  max-width: var(--w45e0-max-width);
  margin: 0 auto;
}

.w45e0-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--w45e0-light);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.6rem;
}

.w45e0-logo-icon {
  width: 28px;
  height: 28px;
  border-radius: 4px;
}

.w45e0-header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.w45e0-menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  color: var(--w45e0-light);
  cursor: pointer;
  border-radius: var(--w45e0-radius);
  transition: var(--w45e0-transition);
}

.w45e0-menu-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
}

.w45e0-menu-toggle i {
  font-size: 2rem;
}

/* Mobile Menu */
.w45e0-mobile-menu {
  position: fixed;
  top: var(--w45e0-header-height);
  left: 0;
  right: 0;
  background: var(--w45e0-bg);
  border-bottom: 1px solid var(--w45e0-border);
  transform: translateY(-100%);
  transition: var(--w45e0-transition);
  z-index: 999;
  max-height: calc(100vh - var(--w45e0-header-height) - var(--w45e0-bottom-nav-height));
  overflow-y: auto;
}

.w45e0-mobile-menu.w45e0-menu-active {
  transform: translateY(0);
}

.w45e0-mobile-menu-content {
  padding: 1rem;
  max-width: var(--w45e0-max-width);
  margin: 0 auto;
}

.w45e0-nav-item {
  display: block;
  margin-bottom: 0.5rem;
}

.w45e0-nav-item a {
  display: block;
  padding: 1rem;
  color: var(--w45e0-text);
  text-decoration: none;
  border-radius: var(--w45e0-radius);
  transition: var(--w45e0-transition);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.w45e0-nav-item a:hover {
  background: rgba(72, 209, 204, 0.1);
  color: var(--w45e0-primary);
}

.w45e0-nav-item.w45e0-active a {
  background: var(--w45e0-primary);
  color: var(--w45e0-bg);
}

/* Buttons */
.w45e0-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.5rem;
  border: none;
  border-radius: var(--w45e0-radius);
  font-size: 1.3rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: var(--w45e0-transition);
  min-height: 44px;
  min-width: 44px;
  text-align: center;
}

.w45e0-btn-primary {
  background: var(--w45e0-primary);
  color: var(--w45e0-bg);
}

.w45e0-btn-primary:hover {
  background: #3AC0BB;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(72, 209, 204, 0.3);
}

.w45e0-btn-secondary {
  background: var(--w45e0-secondary);
  color: var(--w45e0-light);
}

.w45e0-btn-secondary:hover {
  background: #B8136B;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(199, 21, 133, 0.3);
}

.w45e0-btn-accent {
  background: var(--w45e0-accent);
  color: var(--w45e0-light);
}

.w45e0-btn-accent:hover {
  background: #C41E3A;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(220, 20, 60, 0.3);
}

.w45e0-btn-outline {
  background: transparent;
  color: var(--w45e0-primary);
  border: 1px solid var(--w45e0-primary);
}

.w45e0-btn-outline:hover {
  background: var(--w45e0-primary);
  color: var(--w45e0-bg);
}

.w45e0-btn-small {
  padding: 0.5rem 1rem;
  font-size: 1.2rem;
}

.w45e0-btn-large {
  padding: 1.2rem 2rem;
  font-size: 1.6rem;
}

.w45e0-promo-btn {
  background: var(--w45e0-gradient);
  color: var(--w45e0-light);
  font-weight: 700;
  animation: w45e0-pulse 2s infinite;
}

.w45e0-promo-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(139, 0, 0, 0.4);
}

/* Cards */
.w45e0-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--w45e0-radius);
  padding: 1.5rem;
  transition: var(--w45e0-transition);
  backdrop-filter: blur(10px);
}

.w45e0-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--w45e0-primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(72, 209, 204, 0.2);
}

.w45e0-card-header {
  margin-bottom: 1rem;
}

.w45e0-card-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--w45e0-primary);
  margin-bottom: 0.5rem;
}

.w45e0-card-content {
  color: var(--w45e0-text);
  line-height: 1.6;
}

/* Game Items */
.w45e0-game-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem;
  border-radius: var(--w45e0-radius);
  transition: var(--w45e0-transition);
  cursor: pointer;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.w45e0-game-item:hover {
  background: rgba(72, 209, 204, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(72, 209, 204, 0.2);
}

.w45e0-game-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--w45e0-radius);
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.w45e0-game-name {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--w45e0-text);
  text-align: center;
  line-height: 1.3;
}

/* Carousel */
.w45e0-carousel {
  position: relative;
  border-radius: var(--w45e0-radius);
  overflow: hidden;
  margin-bottom: 2rem;
}

.w45e0-carousel-slide {
  display: none;
  width: 100%;
  height: 200px;
  background: var(--w45e0-gradient);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.w45e0-carousel-slide.w45e0-active {
  display: block;
}

.w45e0-carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.w45e0-carousel-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
}

.w45e0-carousel-indicators {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
}

.w45e0-carousel-indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: var(--w45e0-transition);
}

.w45e0-carousel-indicator.w45e0-active {
  background: var(--w45e0-primary);
}

/* Section Titles */
.w45e0-section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--w45e0-primary);
  margin-bottom: 1.5rem;
  text-align: center;
}

.w45e0-section-subtitle {
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--w45e0-text);
  margin-bottom: 1rem;
}

/* Text Styles */
.w45e0-text-primary {
  color: var(--w45e0-primary);
}

.w45e0-text-secondary {
  color: var(--w45e0-secondary);
}

.w45e0-text-accent {
  color: var(--w45e0-accent);
}

.w45e0-text-muted {
  color: rgba(255, 255, 255, 0.7);
}

.w45e0-text-center {
  text-align: center;
}

.w45e0-text-bold {
  font-weight: 700;
}

/* Spacing */
.w45e0-mb-1 { margin-bottom: 1rem; }
.w45e0-mb-2 { margin-bottom: 2rem; }
.w45e0-mb-3 { margin-bottom: 3rem; }
.w45e0-mt-1 { margin-top: 1rem; }
.w45e0-mt-2 { margin-top: 2rem; }
.w45e0-mt-3 { margin-top: 3rem; }
.w45e0-p-1 { padding: 1rem; }
.w45e0-p-2 { padding: 2rem; }
.w45e0-px-1 { padding-left: 1rem; padding-right: 1rem; }
.w45e0-py-1 { padding-top: 1rem; padding-bottom: 1rem; }

/* Footer */
.w45e0-footer {
  background: var(--w45e0-darker);
  padding: 2rem 0;
  border-top: 1px solid var(--w45e0-border);
}

.w45e0-footer-content {
  max-width: var(--w45e0-max-width);
  margin: 0 auto;
  padding: 0 1rem;
}

.w45e0-footer-section {
  margin-bottom: 2rem;
}

.w45e0-footer-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--w45e0-primary);
  margin-bottom: 1rem;
}

.w45e0-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
}

.w45e0-footer-link {
  color: var(--w45e0-text);
  text-decoration: none;
  transition: var(--w45e0-transition);
  font-size: 1.2rem;
}

.w45e0-footer-link:hover {
  color: var(--w45e0-primary);
}

.w45e0-partners {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.w45e0-partner-logo {
  width: 40px;
  height: 40px;
  border-radius: 4px;
  opacity: 0.7;
  transition: var(--w45e0-transition);
}

.w45e0-partner-logo:hover {
  opacity: 1;
}

.w45e0-copyright {
  text-align: center;
  color: var(--w45e0-text-muted);
  font-size: 1.1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1rem;
}

/* Bottom Navigation */
.w45e0-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--w45e0-bottom-nav-height);
  background: var(--w45e0-gradient);
  border-top: 1px solid var(--w45e0-border);
  z-index: 1000;
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 0 1rem;
  box-shadow: 0 -2px 10px var(--w45e0-shadow);
}

.w45e0-bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  padding: 0.5rem;
  min-width: 44px;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.7);
  transition: var(--w45e0-transition);
}

.w45e0-bottom-nav-item:hover,
.w45e0-bottom-nav-item.w45e0-active {
  color: var(--w45e0-primary);
  transform: translateY(-2px);
}

.w45e0-bottom-nav-icon {
  font-size: 2rem;
}

.w45e0-bottom-nav-text {
  font-size: 1rem;
  font-weight: 500;
}

/* Animations */
@keyframes w45e0-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

@keyframes w45e0-fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes w45e0-slideIn {
  from { transform: translateX(-100%); }
  to { transform: translateX(0); }
}

.w45e0-animate-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: var(--w45e0-transition);
}

.w45e0-animate-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Utility Classes */
.w45e0-hidden {
  display: none !important;
}

.w45e0-visible {
  display: block !important;
}

.w45e0-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;
}

/* Touch Device Styles */
.w45e0-touch-device .w45e0-btn:hover {
  transform: none;
}

.w45e0-touch-device .w45e0-game-item:hover {
  transform: none;
}

/* Menu Scroll Lock */
.w45e0-menu-scroll-lock {
  overflow: hidden;
}

/* Loading States */
.w45e0-loading {
  position: relative;
  overflow: hidden;
}

.w45e0-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: w45e0-loading 1.5s infinite;
}

@keyframes w45e0-loading {
  0% { left: -100%; }
  100% { left: 100%; }
}

/* Error States */
.w45e0-error {
  border-color: var(--w45e0-accent) !important;
  box-shadow: 0 0 0 2px rgba(220, 20, 60, 0.2);
}

/* Media Queries */
@media (max-width: 320px) {
  .w45e0-container {
    padding: 0 0.5rem;
  }
  
  .w45e0-grid-5 {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .w45e0-game-icon {
    width: 40px;
    height: 40px;
  }
  
  .w45e0-game-name {
    font-size: 1rem;
  }
}

@media (min-width: 431px) {
  .w45e0-container {
    max-width: 430px;
  }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .w45e0-game-icon {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
  :root {
    --w45e0-bg: #1a1a1a;
    --w45e0-darker: #0f0f0f;
  }
} 