/**
 * ph25 Core Stylesheet
 * Class prefix: wcca4-
 * Mobile-first responsive design
 */

/* CSS Variables */
:root {
  --wcca4-primary: #FF8000;
  --wcca4-secondary: #FF5722;
  --wcca4-bg-dark: #1A1A2E;
  --wcca4-bg-medium: #2D2D44;
  --wcca4-text-light: #AFEEEE;
  --wcca4-text-gray: #3C3C3C;
  --wcca4-white: #FFFFFF;
  --wcca4-black: #000000;
  --wcca4-success: #4CAF50;
  --wcca4-warning: #FFC107;
  --wcca4-error: #F44336;
  --wcca4-border: rgba(255, 128, 0, 0.3);
  --wcca4-shadow: rgba(0, 0, 0, 0.3);
  --wcca4-gradient: linear-gradient(135deg, #FF8000 0%, #FF5722 100%);
}

/* Reset & 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.4rem;
  line-height: 1.6;
  color: var(--wcca4-white);
  background-color: var(--wcca4-bg-dark);
  overflow-x: hidden;
  min-height: 100vh;
}

/* Container & Layout */
.wcca4-container {
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1rem;
  width: 100%;
}

.wcca4-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.wcca4-main {
  flex: 1;
  padding-bottom: 80px;
}

.wcca4-section {
  padding: 2rem 0;
  margin-bottom: 1rem;
}

.wcca4-grid {
  display: grid;
  gap: 1rem;
}

.wcca4-grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.wcca4-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.wcca4-grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

/* Header Styles */
.wcca4-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: linear-gradient(180deg, var(--wcca4-bg-dark) 0%, rgba(26, 26, 46, 0.95) 100%);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px var(--wcca4-shadow);
  border-bottom: 1px solid var(--wcca4-border);
}

.wcca4-header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 1rem;
  max-width: 430px;
  margin: 0 auto;
}

.wcca4-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--wcca4-white);
}

.wcca4-logo-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.wcca4-logo-text {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--wcca4-primary);
  text-shadow: 0 0 10px rgba(255, 128, 0, 0.5);
}

.wcca4-header-buttons {
  display: flex;
  gap: 0.8rem;
}

.wcca4-btn {
  padding: 0.6rem 1.2rem;
  border: none;
  border-radius: 8px;
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.wcca4-btn-primary {
  background: var(--wcca4-gradient);
  color: var(--wcca4-white);
  box-shadow: 0 4px 15px rgba(255, 128, 0, 0.4);
}

.wcca4-btn-primary:hover,
.wcca4-btn-primary:active {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 128, 0, 0.6);
}

.wcca4-btn-secondary {
  background: transparent;
  color: var(--wcca4-text-light);
  border: 2px solid var(--wcca4-primary);
}

.wcca4-btn-secondary:hover,
.wcca4-btn-secondary:active {
  background: rgba(255, 128, 0, 0.1);
  border-color: var(--wcca4-secondary);
}

.wcca4-menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  padding: 0.5rem;
  background: none;
  border: none;
}

.wcca4-menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--wcca4-primary);
  transition: all 0.3s ease;
  border-radius: 2px;
}

.wcca4-menu-toggle:hover span {
  background-color: var(--wcca4-secondary);
}

/* Mobile Menu */
.wcca4-mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(26, 26, 46, 0.98);
  z-index: 9999;
  padding: 6rem 1rem 2rem;
  overflow-y: auto;
}

.wcca4-menu-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: var(--wcca4-white);
  font-size: 2.4rem;
  cursor: pointer;
  padding: 0.5rem;
}

.wcca4-menu-nav {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.wcca4-menu-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--wcca4-border);
  border-radius: 12px;
  color: var(--wcca4-text-light);
  text-decoration: none;
  font-size: 1.5rem;
  transition: all 0.3s ease;
}

.wcca4-menu-link:hover {
  background: rgba(255, 128, 0, 0.15);
  border-color: var(--wcca4-primary);
  transform: translateX(5px);
}

.wcca4-menu-link i {
  font-size: 1.8rem;
  color: var(--wcca4-primary);
}

/* Bottom Navigation */
.wcca4-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: linear-gradient(180deg, var(--wcca4-bg-dark) 0%, rgba(26, 26, 46, 0.98) 100%);
  border-top: 2px solid var(--wcca4-primary);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 -2px 15px var(--wcca4-shadow);
}

.wcca4-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 60px;
  padding: 0.5rem;
  text-decoration: none;
  color: var(--wcca4-text-light);
  transition: all 0.3s ease;
  position: relative;
}

.wcca4-nav-item i {
  font-size: 24px;
  margin-bottom: 4px;
  transition: all 0.3s ease;
}

.wcca4-nav-item span {
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.wcca4-nav-item:hover,
.wcca4-nav-item:active {
  color: var(--wcca4-primary);
  transform: scale(1.1);
}

.wcca4-nav-item:hover i,
.wcca4-nav-item:active i {
  color: var(--wcca4-secondary);
  transform: scale(1.15);
}

.wcca4-nav-item.active {
  color: var(--wcca4-primary);
}

.wcca4-nav-item.active i {
  color: var(--wcca4-secondary);
  text-shadow: 0 0 10px rgba(255, 128, 0, 0.8);
}

.wcca4-nav-badge {
  position: absolute;
  top: 4px;
  right: 8px;
  background: var(--wcca4-secondary);
  color: var(--wcca4-white);
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 10px;
  font-weight: 700;
}

/* Hero Section */
.wcca4-hero {
  position: relative;
  margin-top: 60px;
  margin-bottom: 2rem;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 8px 25px var(--wcca4-shadow);
}

.wcca4-carousel {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.wcca4-carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.wcca4-carousel-slide.active {
  opacity: 1;
}

.wcca4-carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wcca4-carousel-dots {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 10;
}

.wcca4-carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
}

.wcca4-carousel-dot.active {
  background: var(--wcca4-primary);
  transform: scale(1.3);
}

/* Game Grid */
.wcca4-game-section {
  margin-bottom: 2rem;
}

.wcca4-section-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--wcca4-primary);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.wcca4-section-title i {
  font-size: 2rem;
  color: var(--wcca4-secondary);
}

.wcca4-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
}

.wcca4-game-item {
  position: relative;
  background: var(--wcca4-bg-medium);
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid transparent;
  text-decoration: none;
  display: block;
}

.wcca4-game-item:hover {
  transform: translateY(-5px);
  border-color: var(--wcca4-primary);
  box-shadow: 0 8px 20px rgba(255, 128, 0, 0.4);
}

.wcca4-game-icon {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
}

.wcca4-game-name {
  padding: 0.5rem 0.3rem;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  color: var(--wcca4-text-light);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}

/* Card Styles */
.wcca4-card {
  background: var(--wcca4-bg-medium);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border: 1px solid var(--wcca4-border);
  box-shadow: 0 4px 15px var(--wcca4-shadow);
}

.wcca4-card-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--wcca4-primary);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.wcca4-card-content {
  color: var(--wcca4-text-light);
  line-height: 1.8;
}

.wcca4-card-content p {
  margin-bottom: 1rem;
}

/* Text Styles */
.wcca4-heading {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--wcca4-primary);
  margin-bottom: 1.5rem;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-shadow: 0 0 20px rgba(255, 128, 0, 0.5);
}

.wcca4-subheading {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--wcca4-text-light);
  margin: 1.5rem 0 1rem;
}

.wcca4-text {
  color: var(--wcca4-text-light);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.wcca4-text-highlight {
  color: var(--wcca4-primary);
  font-weight: 600;
}

.wcca4-link {
  color: var(--wcca4-primary);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 2px solid transparent;
  transition: all 0.3s ease;
}

.wcca4-link:hover {
  color: var(--wcca4-secondary);
  border-bottom-color: var(--wcca4-secondary);
}

/* Footer */
.wcca4-footer {
  background: var(--wcca4-bg-medium);
  padding: 2rem 0 8rem;
  margin-top: 3rem;
  border-top: 3px solid var(--wcca4-primary);
}

.wcca4-footer-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.wcca4-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.wcca4-footer-link {
  color: var(--wcca4-text-light);
  text-decoration: none;
  font-size: 1.2rem;
  padding: 0.5rem 1rem;
  border: 1px solid var(--wcca4-border);
  border-radius: 8px;
  transition: all 0.3s ease;
}

.wcca4-footer-link:hover {
  background: rgba(255, 128, 0, 0.2);
  border-color: var(--wcca4-primary);
  color: var(--wcca4-primary);
}

.wcca4-partners {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  align-items: center;
  padding: 1rem 0;
}

.wcca4-partner-logo {
  height: 30px;
  width: auto;
  opacity: 0.7;
  transition: all 0.3s ease;
}

.wcca4-partner-logo:hover {
  opacity: 1;
  transform: scale(1.1);
}

.wcca4-copyright {
  text-align: center;
  color: var(--wcca4-text-gray);
  font-size: 1.1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--wcca4-border);
}

/* Utility Classes */
.wcca4-mt-1 { margin-top: 1rem; }
.wcca4-mt-2 { margin-top: 2rem; }
.wcca4-mt-3 { margin-top: 3rem; }
.wcca4-mb-1 { margin-bottom: 1rem; }
.wcca4-mb-2 { margin-bottom: 2rem; }
.wca4-mb-3 { margin-bottom: 3rem; }
.wcca4-text-center { text-align: center; }
.wcca4-hidden { display: none; }

/* Loading State */
.wcca4-loading {
  opacity: 0.6;
  pointer-events: none;
}

.wcca4-loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid var(--wcca4-primary);
  border-top-color: transparent;
  border-radius: 50%;
  animation: wcca4-spin 0.8s linear infinite;
}

@keyframes wcca4-spin {
  to { transform: rotate(360deg); }
}

/* Responsive */
@media (min-width: 769px) {
  .wcca4-bottom-nav {
    display: none;
  }

  .wcca4-main {
    padding-bottom: 2rem;
  }
}

@media (max-width: 768px) {
  .wcca4-main {
    padding-bottom: 80px;
  }
}

/* Touch Feedback */
@media (hover: none) {
  .wcca4-btn:active,
  .wcca4-nav-item:active,
  .wcca4-game-item:active {
    transform: scale(0.95);
  }
}
