/**
 * jiliqq Website Theme Styles
 * All classes use pg19- prefix for namespace isolation
 * Mobile-first responsive design with max-width: 430px
 */

/* CSS Variables - Brand Colors */
:root {
  --pg19-primary: #80CBC4;
  --pg19-secondary: #E5E5E5;
  --pg19-dark: #1C2833;
  --pg19-accent1: #FF69B4;
  --pg19-accent2: #00CED1;
  --pg19-accent3: #0097A7;
  --pg19-text: #E5E5E5;
  --pg19-bg: #1C2833;
  --pg19-success: #4CAF50;
  --pg19-warning: #FF9800;
  --pg19-error: #F44336;
}

/* Reset and Base Styles */
* {
  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(--pg19-text);
  background-color: var(--pg19-bg);
  min-width: 320px;
  max-width: 430px;
  margin: 0 auto;
  overflow-x: hidden;
  padding-bottom: 80px;
}

/* Container */
.pg19-container {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header Styles */
.pg19-header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  background: linear-gradient(135deg, var(--pg19-dark) 0%, var(--pg19-accent3) 100%);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  padding: 0.8rem 1rem;
}

.pg19-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.pg19-logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  color: var(--pg19-text);
  font-size: 1.8rem;
  font-weight: 700;
}

.pg19-logo img {
  width: 32px;
  height: 32px;
  border-radius: 6px;
}

.pg19-menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--pg19-accent2);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.pg19-menu-toggle:hover {
  background: var(--pg19-primary);
  transform: scale(1.05);
}

.pg19-menu-toggle i {
  font-size: 24px;
  color: var(--pg19-dark);
}

.pg19-header-buttons {
  display: flex;
  gap: 0.8rem;
}

.pg19-btn {
  padding: 0.6rem 1.2rem;
  font-size: 1.4rem;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 80px;
  min-height: 44px;
}

.pg19-btn-register {
  background: var(--pg19-accent1);
  color: white;
}

.pg19-btn-register:hover {
  background: var(--pg19-accent2);
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(255, 105, 180, 0.4);
}

.pg19-btn-login {
  background: var(--pg19-primary);
  color: var(--pg19-dark);
}

.pg19-btn-login:hover {
  background: var(--pg19-accent2);
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 206, 209, 0.4);
}

/* Mobile Menu */
.pg19-mobile-menu {
  position: fixed;
  top: 0;
  left: -100%;
  width: 280px;
  height: 100vh;
  background: linear-gradient(180deg, var(--pg19-dark) 0%, var(--pg19-accent3) 100%);
  box-shadow: 2px 0 12px rgba(0, 0, 0, 0.5);
  transition: left 0.3s ease;
  z-index: 9999;
  overflow-y: auto;
  padding: 2rem 0;
}

.pg19-menu-open {
  left: 0 !important;
}

.pg19-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 9998;
}

.pg19-overlay-visible {
  opacity: 1 !important;
  visibility: visible !important;
}

.pg19-menu-header {
  padding: 1rem 1.5rem;
  border-bottom: 2px solid var(--pg19-accent2);
  margin-bottom: 1rem;
}

.pg19-menu-header h2 {
  font-size: 2rem;
  color: var(--pg19-primary);
}

.pg19-nav-list {
  list-style: none;
}

.pg19-nav-item {
  display: block;
  padding: 1.2rem 1.5rem;
  color: var(--pg19-text);
  text-decoration: none;
  font-size: 1.6rem;
  border-left: 4px solid transparent;
  transition: all 0.3s ease;
}

.pg19-nav-item:hover {
  background: rgba(128, 203, 196, 0.15);
  border-left-color: var(--pg19-primary);
  padding-left: 2rem;
}

.pg19-nav-item i {
  margin-right: 0.8rem;
  width: 24px;
  text-align: center;
}

/* Carousel */
.pg19-carousel {
  position: relative;
  width: 100%;
  height: 200px;
  margin-top: 70px;
  overflow: hidden;
  border-radius: 0 0 12px 12px;
}

.pg19-carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

.pg19-slide-active {
  opacity: 1;
  z-index: 1;
}

.pg19-carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Main Content */
.pg19-main {
  padding: 2rem 1rem;
  min-height: calc(100vh - 350px);
}

.pg19-section {
  margin-bottom: 3rem;
}

.pg19-section-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--pg19-primary);
  margin-bottom: 1.5rem;
  padding-bottom: 0.8rem;
  border-bottom: 3px solid var(--pg19-accent2);
}

/* Game Grid */
.pg19-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
  margin-bottom: 2rem;
}

.pg19-game-item {
  display: block;
  text-decoration: none;
  color: var(--pg19-text);
  transition: transform 0.3s ease;
}

.pg19-game-item:hover {
  transform: scale(1.08);
}

.pg19-game-icon {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 0.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.pg19-game-name {
  font-size: 1.1rem;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--pg19-secondary);
}

/* Content Modules */
.pg19-card {
  background: rgba(28, 40, 51, 0.8);
  border: 2px solid var(--pg19-accent3);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.pg19-card h3 {
  font-size: 1.8rem;
  color: var(--pg19-primary);
  margin-bottom: 1rem;
}

.pg19-card p {
  font-size: 1.5rem;
  line-height: 1.6;
  margin-bottom: 1rem;
  color: var(--pg19-secondary);
}

.pg19-link {
  color: var(--pg19-accent2);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 2px solid var(--pg19-accent1);
  transition: all 0.3s ease;
}

.pg19-link:hover {
  color: var(--pg19-accent1);
  border-bottom-color: var(--pg19-accent2);
}

/* Partner Icons */
.pg19-partners {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  padding: 2rem 0;
}

.pg19-partner-icon {
  width: 60px;
  height: 40px;
  object-fit: contain;
  opacity: 0.8;
  transition: all 0.3s ease;
}

.pg19-partner-icon:hover {
  opacity: 1;
  transform: scale(1.1);
}

/* Footer */
.pg19-footer {
  background: linear-gradient(135deg, var(--pg19-dark) 0%, var(--pg19-accent3) 100%);
  padding: 2rem 1rem 5rem;
  margin-top: 3rem;
  border-top: 3px solid var(--pg19-primary);
}

.pg19-footer-content {
  margin-bottom: 2rem;
}

.pg19-footer h3 {
  font-size: 1.8rem;
  color: var(--pg19-primary);
  margin-bottom: 1rem;
}

.pg19-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.pg19-footer-link {
  color: var(--pg19-accent2);
  text-decoration: none;
  font-size: 1.4rem;
  padding: 0.4rem 0.8rem;
  border: 1px solid var(--pg19-accent3);
  border-radius: 6px;
  transition: all 0.3s ease;
}

.pg19-footer-link:hover {
  background: var(--pg19-accent2);
  color: var(--pg19-dark);
}

.pg19-copyright {
  text-align: center;
  font-size: 1.3rem;
  color: var(--pg19-secondary);
  padding-top: 1.5rem;
  border-top: 1px solid rgba(128, 203, 196, 0.3);
}

/* Bottom Navigation */
.pg19-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: 60px;
  background: linear-gradient(135deg, var(--pg19-dark) 0%, var(--pg19-accent3) 100%);
  display: flex;
  justify-content: space-around;
  align-items: center;
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.4);
  z-index: 1000;
  border-top: 2px solid var(--pg19-primary);
}

.pg19-nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 60px;
  text-decoration: none;
  color: var(--pg19-text);
  transition: all 0.3s ease;
  position: relative;
}

.pg19-nav-btn:hover {
  transform: scale(1.1);
  color: var(--pg19-primary);
}

.pg19-nav-btn.active {
  color: var(--pg19-accent2);
}

.pg19-nav-btn i {
  font-size: 22px;
  margin-bottom: 4px;
}

.pg19-nav-btn span {
  font-size: 10px;
  font-weight: 500;
}

/* Touch feedback */
.pg19-touch-active {
  transform: scale(0.95) !important;
}

/* Hide bottom nav on desktop */
@media (min-width: 769px) {
  .pg19-bottom-nav {
    display: none;
  }

  body {
    padding-bottom: 0;
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .pg19-main {
    padding-bottom: 80px;
  }
}

/* H1 and H2 styles */
h1 {
  font-size: 2.4rem;
  color: var(--pg19-primary);
  margin-bottom: 1.5rem;
  line-height: 1.3;
}

h2 {
  font-size: 2rem;
  color: var(--pg19-accent2);
  margin-bottom: 1.2rem;
  line-height: 1.3;
}

/* List styles */
.pg19-list {
  list-style: none;
  padding-left: 0;
}

.pg19-list li {
  padding: 0.8rem 0;
  padding-left: 2rem;
  position: relative;
  font-size: 1.5rem;
  line-height: 1.6;
  color: var(--pg19-secondary);
}

.pg19-list li:before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--pg19-accent1);
  font-weight: 700;
}
