/**
 * PHKKK - Design CSS File
 * Version: 1.0.0
 * All classes use w1484 prefix for namespace isolation
 */

/* CSS Variables - Color Palette */
:root {
  --w1484-primary: #FF0000;
  --w1484-secondary: #B22222;
  --w1484-accent: #80CBC4;
  --w1484-light: #E0F2F1;
  --w1484-bg: #1A1A1A;
  --w1484-white: #F0F0F0;
  --w1484-text: #F0F0F0;
  --w1484-text-dark: #1A1A1A;
  --w1484-shadow: rgba(0, 0, 0, 0.3);
}

/* 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(--w1484-text);
  background-color: var(--w1484-bg);
  min-height: 100vh;
  overflow-x: hidden;
}

/* Container */
.w1484-container {
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1.6rem;
  position: relative;
}

/* Header Styles */
.w1484-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: var(--w1484-bg);
  box-shadow: 0 2px 10px var(--w1484-shadow);
  z-index: 1000;
  transition: all 0.3s ease;
}

.w1484-header-scrolled {
  background-color: rgba(26, 26, 26, 0.98);
  box-shadow: 0 4px 20px var(--w1484-shadow);
}

.w1484-header-inner {
  max-width: 430px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 1.6rem;
}

.w1484-logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  color: var(--w1484-white);
  font-weight: 700;
  font-size: 2rem;
}

.w1484-logo-icon {
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 0.8rem;
  object-fit: cover;
}

.w1484-header-buttons {
  display: flex;
  gap: 1rem;
}

.w1484-btn {
  padding: 0.8rem 1.6rem;
  border: none;
  border-radius: 0.8rem;
  font-size: 1.4rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

.w1484-btn-primary {
  background-color: var(--w1484-primary);
  color: var(--w1484-white);
}

.w1484-btn-primary:hover {
  background-color: var(--w1484-secondary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 0, 0, 0.4);
}

.w1484-btn-secondary {
  background-color: transparent;
  color: var(--w1484-white);
  border: 2px solid var(--w1484-accent);
}

.w1484-btn-secondary:hover {
  background-color: var(--w1484-accent);
  color: var(--w1484-text-dark);
}

.w1484-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--w1484-white);
  font-size: 2.8rem;
  cursor: pointer;
  padding: 0.5rem;
  line-height: 1;
}

/* Mobile Menu */
.w1484-mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 320px;
  height: 100vh;
  background-color: var(--w1484-bg);
  box-shadow: -4px 0 20px var(--w1484-shadow);
  z-index: 9999;
  transition: right 0.3s ease;
  overflow-y: auto;
  padding: 2rem;
}

.w1484-menu-open {
  right: 0;
}

.w1484-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.w1484-menu-open + .w1484-menu-overlay {
  opacity: 1;
  visibility: visible;
}

.w1484-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--w1484-light);
}

.w1484-menu-close {
  background: none;
  border: none;
  color: var(--w1484-white);
  font-size: 2.8rem;
  cursor: pointer;
  line-height: 1;
}

.w1484-menu-nav {
  list-style: none;
}

.w1484-menu-nav li {
  margin-bottom: 0.5rem;
}

.w1484-menu-nav a {
  display: block;
  padding: 1.2rem 1.6rem;
  color: var(--w1484-white);
  text-decoration: none;
  border-radius: 0.8rem;
  transition: all 0.3s ease;
  font-size: 1.6rem;
}

.w1484-menu-nav a:hover {
  background-color: var(--w1484-light);
  color: var(--w1484-text-dark);
}

/* Main Content */
main {
  padding-top: 8rem;
  padding-bottom: 8rem;
  min-height: 100vh;
}

/* Carousel */
.w1484-carousel {
  position: relative;
  width: 100%;
  height: 20rem;
  overflow: hidden;
  border-radius: 1.2rem;
  margin-bottom: 2rem;
}

.w1484-carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.w1484-carousel-slide.w1484-active {
  opacity: 1;
}

.w1484-carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Content Sections */
.w1484-section {
  margin-bottom: 3rem;
  padding: 2rem;
  background-color: rgba(240, 240, 240, 0.05);
  border-radius: 1.2rem;
}

.w1484-section-title {
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--w1484-accent);
  margin-bottom: 1.6rem;
  text-align: center;
}

.w1484-section-text {
  font-size: 1.6rem;
  line-height: 1.8;
  color: var(--w1484-white);
  margin-bottom: 1.2rem;
}

.w1484-section-text a {
  color: var(--w1484-primary);
  text-decoration: none;
  font-weight: 600;
}

.w1484-section-text a:hover {
  text-decoration: underline;
  color: var(--w1484-secondary);
}

/* Game Grid */
.w1484-game-section {
  margin-bottom: 3rem;
}

.w1484-game-category {
  font-size: 2rem;
  font-weight: 700;
  color: var(--w1484-accent);
  margin-bottom: 1.6rem;
  padding-left: 1rem;
  border-left: 4px solid var(--w1484-primary);
}

.w1484-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.w1484-game-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  transition: transform 0.3s ease;
  cursor: pointer;
}

.w1484-game-item:hover {
  transform: scale(1.05);
}

.w1484-game-icon {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 0.8rem;
  margin-bottom: 0.6rem;
  background-color: rgba(255, 255, 255, 0.1);
}

.w1484-game-name {
  font-size: 1.1rem;
  color: var(--w1484-white);
  text-align: center;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Feature Cards */
.w1484-card {
  background-color: rgba(240, 240, 240, 0.08);
  border-radius: 1.2rem;
  padding: 2rem;
  margin-bottom: 1.6rem;
  border: 1px solid rgba(128, 203, 196, 0.2);
}

.w1484-card-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--w1484-accent);
  margin-bottom: 1rem;
}

.w1484-card-content {
  font-size: 1.5rem;
  line-height: 1.7;
  color: var(--w1484-white);
}

.w1484-card-content a {
  color: var(--w1484-primary);
  text-decoration: none;
  font-weight: 600;
}

.w1484-card-content a:hover {
  text-decoration: underline;
}

/* Button Styles */
.w1484-link-btn {
  display: inline-block;
  padding: 1rem 2rem;
  background-color: var(--w1484-primary);
  color: var(--w1484-white);
  text-decoration: none;
  border-radius: 0.8rem;
  font-weight: 600;
  font-size: 1.5rem;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  text-align: center;
}

.w1484-link-btn:hover {
  background-color: var(--w1484-secondary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 0, 0, 0.4);
}

.w1484-link-block {
  display: block;
  width: 100%;
  margin: 1rem 0;
}

/* Mobile Bottom Navigation */
.w1484-mobile-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, #1A1A1A 0%, #2d2d2d 100%);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.4);
  z-index: 1000;
  padding: 0.6rem 0;
  display: flex;
  justify-content: space-around;
  align-items: center;
  border-top: 2px solid var(--w1484-primary);
}

.w1484-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--w1484-white);
  min-width: 6rem;
  min-height: 6rem;
  padding: 0.4rem;
  border-radius: 0.8rem;
  transition: all 0.3s ease;
  position: relative;
}

.w1484-nav-item:hover {
  background-color: rgba(255, 0, 0, 0.15);
  transform: scale(1.05);
}

.w1484-nav-item.w1484-nav-active {
  background-color: rgba(255, 0, 0, 0.2);
  color: var(--w1484-accent);
}

.w1484-nav-item.w1484-nav-active::after {
  content: '';
  position: absolute;
  top: 0.4rem;
  left: 50%;
  transform: translateX(-50%);
  width: 0.4rem;
  height: 0.4rem;
  background-color: var(--w1484-primary);
  border-radius: 50%;
}

.w1484-nav-icon {
  font-size: 2.4rem;
  margin-bottom: 0.3rem;
  line-height: 1;
}

.w1484-nav-text {
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  line-height: 1.2;
}

/* Footer */
.w1484-footer {
  background-color: rgba(0, 0, 0, 0.4);
  padding: 3rem 1.6rem 10rem 1.6rem;
  margin-top: 4rem;
}

.w1484-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.w1484-footer-link {
  color: var(--w1484-accent);
  text-decoration: none;
  font-size: 1.4rem;
  padding: 0.5rem 1rem;
  border-radius: 0.4rem;
  transition: all 0.3s ease;
}

.w1484-footer-link:hover {
  background-color: var(--w1484-light);
  color: var(--w1484-text-dark);
}

.w1484-partners {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.w1484-partner-logo {
  width: 4rem;
  height: 4rem;
  object-fit: contain;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.w1484-partner-logo:hover {
  opacity: 1;
}

.w1484-copyright {
  text-align: center;
  color: rgba(240, 240, 240, 0.6);
  font-size: 1.3rem;
  margin-top: 2rem;
}

.w1484-footer-text {
  color: var(--w1484-white);
  font-size: 1.5rem;
  line-height: 1.8;
  margin-bottom: 1rem;
}

.w1484-footer-text a {
  color: var(--w1484-primary);
  text-decoration: none;
  font-weight: 600;
}

.w1484-footer-text a:hover {
  text-decoration: underline;
  color: var(--w1484-secondary);
}

/* Responsive Utilities */
@media (max-width: 768px) {
  main {
    padding-bottom: 8rem;
  }

  .w1484-menu-toggle {
    display: block;
  }

  .w1484-header-buttons {
    display: none;
  }
}

@media (min-width: 769px) {
  .w1484-mobile-nav {
    display: none;
  }

  main {
    padding-bottom: 2rem;
  }
}

/* Touch feedback */
.w1484-touch-active {
  transform: scale(0.95);
  opacity: 0.8;
}

/* Animations */
@keyframes w1484pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

.w1484-pulse {
  animation: w1484pulse 2s ease-in-out infinite;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  color: var(--w1484-white);
  margin-bottom: 1rem;
  line-height: 1.3;
}

h1 {
  font-size: 2.8rem;
  font-weight: 800;
  text-align: center;
  color: var(--w1484-accent);
}

h2 {
  font-size: 2.2rem;
  font-weight: 700;
}

h3 {
  font-size: 1.8rem;
  font-weight: 600;
}

p {
  margin-bottom: 1.2rem;
}

/* Lists */
.w1484-list {
  list-style: none;
  padding-left: 0;
}

.w1484-list li {
  padding: 1rem 0;
  border-bottom: 1px solid rgba(240, 240, 240, 0.1);
  color: var(--w1484-white);
  font-size: 1.5rem;
  line-height: 1.6;
}

.w1484-list li:last-child {
  border-bottom: none;
}

.w1484-list a {
  color: var(--w1484-primary);
  text-decoration: none;
  font-weight: 600;
}

.w1484-list a:hover {
  text-decoration: underline;
}

/* Utility Classes */
.w1484-text-center {
  text-align: center;
}

.w1484-mt-1 {
  margin-top: 1rem;
}

.w1484-mt-2 {
  margin-top: 2rem;
}

.w1484-mb-1 {
  margin-bottom: 1rem;
}

.w1484-mb-2 {
  margin-bottom: 2rem;
}

.w1484-hidden {
  display: none;
}
