/* PhjiliPlus Click Layout Styles */
/* Color Scheme: #FF6347 | #ADD8E6 | #00BFFF | #333333 */

:root {
  --w9b19-primary: #FF6347;
  --w9b19-secondary: #ADD8E6;
  --w9b19-accent: #00BFFF;
  --w9b19-dark: #333333;
  --w9b19-light: #ffffff;
  --w9b19-success: #28a745;
  --w9b19-warning: #ffc107;
  --w9b19-danger: #dc3545;
  --w9b19-info: #17a2b8;
  --w9b19-text: #333333;
  --w9b19-text-muted: #6c757d;
  --w9b19-border: #dee2e6;
  --w9b19-background: #f8f9fa;
  --w9b19-surface: #ffffff;
  --w9b19-shadow: 0 2px 4px rgba(0,0,0,0.1);
  --w9b19-shadow-lg: 0 8px 25px rgba(0,0,0,0.15);
  --w9b19-radius: 12px;
  --w9b19-radius-sm: 6px;
  --w9b19-radius-lg: 20px;
  --w9b19-transition: all 0.3s ease;
  --w9b19-font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --w9b19-vh: 1vh;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--w9b19-font-family);
  line-height: 1.6;
  color: var(--w9b19-text);
  background: var(--w9b19-background);
  font-size: 16px;
  overflow-x: hidden;
}

.w9b19-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  max-width: 430px;
  margin: 0 auto;
  background: var(--w9b19-surface);
  box-shadow: 0 0 20px rgba(0,0,0,0.1);
  position: relative;
}

.w9b19-container {
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  padding: 0 15px;
}

/* Header */
.w9b19-header {
  background: linear-gradient(135deg, var(--w9b19-primary), var(--w9b19-accent));
  color: var(--w9b19-light);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--w9b19-shadow-lg);
  transition: var(--w9b19-transition);
}

.w9b19-header-hidden {
  transform: translateY(-100%);
}

.w9b19-header-scrolled {
  background: rgba(255, 99, 71, 0.95);
  backdrop-filter: blur(10px);
}

.w9b19-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  min-height: 70px;
}

.w9b19-logo {
  display: flex;
  align-items: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--w9b19-light);
  text-decoration: none;
  gap: 0.5rem;
}

.w9b19-logo-img {
  width: 40px;
  height: 40px;
  border-radius: var(--w9b19-radius-sm);
}

.w9b19-nav-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.w9b19-menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.2);
  border: none;
  border-radius: var(--w9b19-radius-sm);
  color: var(--w9b19-light);
  cursor: pointer;
  transition: var(--w9b19-transition);
}

.w9b19-menu-toggle:hover,
.w9b19-menu-toggle.w9b19-active {
  background: rgba(255,255,255,0.3);
  transform: scale(1.05);
}

/* Mobile Menu */
.w9b19-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(5px);
  z-index: 1500;
  opacity: 0;
  visibility: hidden;
  transition: var(--w9b19-transition);
}

.w9b19-menu-overlay.w9b19-active {
  opacity: 1;
  visibility: visible;
}

.w9b19-menu-content {
  position: absolute;
  top: 0;
  right: 0;
  width: 280px;
  height: 100vh;
  background: var(--w9b19-surface);
  padding: 2rem;
  transform: translateX(100%);
  transition: var(--w9b19-transition);
  overflow-y: auto;
}

.w9b19-menu-overlay.w9b19-active .w9b19-menu-content {
  transform: translateX(0);
}

.w9b19-menu-list {
  list-style: none;
  margin-top: 4rem;
}

.w9b19-menu-item {
  margin-bottom: 0.5rem;
}

.w9b19-menu-link {
  display: flex;
  align-items: center;
  padding: 1rem;
  color: var(--w9b19-text);
  text-decoration: none;
  border-radius: var(--w9b19-radius);
  transition: var(--w9b19-transition);
  gap: 1rem;
}

.w9b19-menu-link:hover {
  background: var(--w9b19-background);
  color: var(--w9b19-primary);
}

.w9b19-menu-link i {
  width: 20px;
  color: var(--w9b19-primary);
}

/* Main Content */
.w9b19-main {
  flex: 1;
  padding: 2rem 0;
}

.w9b19-section {
  margin-bottom: 3rem;
}

.w9b19-section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--w9b19-dark);
  text-align: center;
  margin-bottom: 2rem;
  line-height: 1.2;
}

.w9b19-section-subtitle {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--w9b19-dark);
  margin-bottom: 1.5rem;
  text-align: center;
}

.w9b19-section-text {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--w9b19-text);
  margin-bottom: 1.5rem;
  text-align: justify;
}

/* Cards */
.w9b19-card {
  background: var(--w9b19-surface);
  border-radius: var(--w9b19-radius-lg);
  box-shadow: var(--w9b19-shadow);
  overflow: hidden;
  transition: var(--w9b19-transition);
  border: 1px solid var(--w9b19-border);
}

.w9b19-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--w9b19-shadow-lg);
}

.w9b19-card-body {
  padding: 2rem;
}

.w9b19-card-header {
  padding: 1.5rem 2rem;
  background: var(--w9b19-background);
  border-bottom: 1px solid var(--w9b19-border);
}

.w9b19-card-footer {
  padding: 1.5rem 2rem;
  background: var(--w9b19-background);
  border-top: 1px solid var(--w9b19-border);
}

/* Buttons */
.w9b19-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  border: none;
  border-radius: var(--w9b19-radius);
  cursor: pointer;
  transition: var(--w9b19-transition);
  gap: 0.5rem;
  min-height: 44px;
  background: var(--w9b19-primary);
  color: var(--w9b19-light);
}

.w9b19-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 99, 71, 0.3);
}

.w9b19-btn:active {
  transform: translateY(0);
}

.w9b19-btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  min-height: 36px;
}

.w9b19-btn-lg {
  padding: 1rem 2rem;
  font-size: 1.1rem;
  min-height: 52px;
}

.w9b19-btn-secondary {
  background: var(--w9b19-secondary);
  color: var(--w9b19-dark);
}

.w9b19-btn-secondary:hover {
  box-shadow: 0 4px 12px rgba(173, 216, 230, 0.3);
}

.w9b19-btn-accent {
  background: var(--w9b19-accent);
  color: var(--w9b19-light);
}

.w9b19-btn-accent:hover {
  box-shadow: 0 4px 12px rgba(0, 191, 255, 0.3);
}

.w9b19-btn-success {
  background: var(--w9b19-success);
  color: var(--w9b19-light);
}

.w9b19-btn-warning {
  background: var(--w9b19-warning);
  color: var(--w9b19-dark);
}

.w9b19-btn-danger {
  background: var(--w9b19-danger);
  color: var(--w9b19-light);
}

.w9b19-btn-outline {
  background: transparent;
  border: 2px solid var(--w9b19-primary);
  color: var(--w9b19-primary);
}

.w9b19-btn-outline:hover {
  background: var(--w9b19-primary);
  color: var(--w9b19-light);
}

/* Grid Layout */
.w9b19-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.w9b19-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.w9b19-grid-4 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

@media (max-width: 380px) {
  .w9b19-grid-3 {
    grid-template-columns: 1fr;
  }
  .w9b19-grid-4 {
    grid-template-columns: 1fr;
  }
}

/* Game Cards */
.w9b19-game-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.5rem;
  background: var(--w9b19-surface);
  border: 2px solid var(--w9b19-border);
  border-radius: var(--w9b19-radius-lg);
  text-decoration: none;
  color: var(--w9b19-text);
  transition: var(--w9b19-transition);
  min-height: 140px;
  justify-content: center;
}

.w9b19-game-card:hover {
  border-color: var(--w9b19-primary);
  transform: translateY(-3px);
  box-shadow: var(--w9b19-shadow-lg);
  color: var(--w9b19-text);
}

.w9b19-game-icon {
  width: 60px;
  height: 60px;
  border-radius: var(--w9b19-radius);
  margin-bottom: 1rem;
  object-fit: cover;
}

.w9b19-game-name {
  font-weight: 600;
  text-align: center;
  font-size: 0.95rem;
}

/* Hero Sections */
.w9b19-hero {
  background: linear-gradient(135deg, var(--w9b19-primary), var(--w9b19-accent));
  color: var(--w9b19-light);
  padding: 3rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.w9b19-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
  animation: w9b19Float 6s ease-in-out infinite;
}

.w9b19-hero-content {
  position: relative;
  z-index: 1;
}

.w9b19-hero-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.w9b19-hero-text {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

/* Animations */
@keyframes w9b19Float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(10deg); }
}

@keyframes w9b19Pulse {
  0%, 100% { transform: scale(1); opacity: 0.7; }
  50% { transform: scale(1.1); opacity: 1; }
}

.w9b19-animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.w9b19-animate-on-scroll.w9b19-animated {
  opacity: 1;
  transform: translateY(0);
}

/* Carousel */
.w9b19-carousel {
  position: relative;
  overflow: hidden;
  border-radius: var(--w9b19-radius-lg);
}

.w9b19-carousel-slide {
  display: none;
  width: 100%;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.w9b19-carousel-slide.w9b19-active {
  display: block;
  opacity: 1;
}

.w9b19-carousel-slide img {
  width: 100%;
  height: auto;
  display: block;
}

.w9b19-carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

.w9b19-carousel-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: none;
  background: var(--w9b19-border);
  cursor: pointer;
  transition: var(--w9b19-transition);
}

.w9b19-carousel-dot.w9b19-active,
.w9b19-carousel-dot:hover {
  background: var(--w9b19-primary);
}

/* Touch Feedback */
.w9b19-touch-device .w9b19-btn,
.w9b19-touch-device .w9b19-game-card,
.w9b19-touch-device .w9b19-nav-link {
  -webkit-tap-highlight-color: transparent;
}

.w9b19-touching {
  opacity: 0.8;
  transform: scale(0.98);
}

/* Footer */
.w9b19-footer {
  background: var(--w9b19-dark);
  color: var(--w9b19-light);
  padding: 2rem 0;
  margin-top: auto;
}

.w9b19-footer-content {
  text-align: center;
}

.w9b19-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 2rem;
  margin-bottom: 1.5rem;
}

.w9b19-footer-link {
  color: var(--w9b19-light);
  text-decoration: none;
  font-size: 0.9rem;
  transition: var(--w9b19-transition);
}

.w9b19-footer-link:hover {
  color: var(--w9b19-primary);
}

/* Bottom Navigation */
.w9b19-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  background: var(--w9b19-surface);
  border-top: 1px solid var(--w9b19-border);
  z-index: 1000;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
}

.w9b19-bottom-nav-list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.w9b19-bottom-nav-item {
  flex: 1;
}

.w9b19-bottom-nav-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.75rem 0.5rem;
  text-decoration: none;
  color: var(--w9b19-text-muted);
  transition: var(--w9b19-transition);
  min-height: 60px;
  justify-content: center;
}

.w9b19-bottom-nav-item.w9b19-active .w9b19-bottom-nav-link,
.w9b19-bottom-nav-link:hover {
  color: var(--w9b19-primary);
}

.w9b19-bottom-nav-icon {
  font-size: 1.2rem;
  margin-bottom: 0.25rem;
}

.w9b19-bottom-nav-text {
  font-size: 0.7rem;
  font-weight: 500;
}

/* Utility Classes */
.w9b19-text-center { text-align: center; }
.w9b19-text-left { text-align: left; }
.w9b19-text-right { text-align: right; }
.w9b19-text-justify { text-align: justify; }

.w9b19-mt-1 { margin-top: 0.5rem; }
.w9b19-mt-2 { margin-top: 1rem; }
.w9b19-mt-3 { margin-top: 1.5rem; }
.w9b19-mb-1 { margin-bottom: 0.5rem; }
.w9b19-mb-2 { margin-bottom: 1rem; }
.w9b19-mb-3 { margin-bottom: 1.5rem; }

.w9b19-p-1 { padding: 0.5rem; }
.w9b19-p-2 { padding: 1rem; }
.w9b19-p-3 { padding: 1.5rem; }

.w9b19-d-none { display: none; }
.w9b19-d-block { display: block; }
.w9b19-d-flex { display: flex; }
.w9b19-d-grid { display: grid; }

.w9b19-flex-column { flex-direction: column; }
.w9b19-flex-row { flex-direction: row; }
.w9b19-align-center { align-items: center; }
.w9b19-justify-center { justify-content: center; }
.w9b19-justify-between { justify-content: space-between; }

.w9b19-w-100 { width: 100%; }
.w9b19-h-100 { height: 100%; }

.w9b19-overflow-hidden { overflow: hidden; }
.w9b19-position-relative { position: relative; }
.w9b19-position-absolute { position: absolute; }

/* iOS Specific */
.w9b19-ios-device {
  padding-bottom: env(safe-area-inset-bottom);
}

.w9b19-ios-device .w9b19-bottom-nav {
  padding-bottom: env(safe-area-inset-bottom);
}

/* Lazy Loading */
.w9b19-lazy {
  opacity: 0;
  transition: opacity 0.3s;
}

.w9b19-lazy:not(.w9b19-lazy) {
  opacity: 1;
}

/* Responsive Design */
@media (max-width: 380px) {
  .w9b19-container {
    padding: 0 10px;
  }

  .w9b19-card-body {
    padding: 1.5rem;
  }

  .w9b19-section-title {
    font-size: 1.8rem;
  }

  .w9b19-hero-title {
    font-size: 2rem;
  }

  .w9b19-btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.95rem;
  }
}

@media (max-width: 320px) {
  .w9b19-grid-2 {
    grid-template-columns: 1fr;
  }

  .w9b19-nav-actions .w9b19-btn {
    padding: 0.5rem 0.8rem;
    font-size: 0.9rem;
  }
}

/* Print Styles */
@media print {
  .w9b19-header,
  .w9b19-bottom-nav,
  .w9b19-menu-overlay {
    display: none;
  }

  .w9b19-main {
    padding: 0;
  }

  .w9b19-card {
    box-shadow: none;
    border: 1px solid #ddd;
  }
}