/* phpearl.css - Main stylesheet for PhPearl website */
/* All classes use prefix: v0a2- */

/* CSS Variables - Color Palette */
:root {
  --v0a2-primary: #FFA726;
  --v0a2-secondary: #37474F;
  --v0a2-accent: #FFAA00;
  --v0a2-purple: #800080;
  --v0a2-gold: #FFD700;
  --v0a2-gray: #A9A9A9;
  --v0a2-dark: #2C3E50;
  --v0a2-light: #FFFFFF;
  --v0a2-bg: #1a1a1a;
  --v0a2-text: #e0e0e0;
  --v0a2-border: #333333;
  --v0a2-success: #4CAF50;
  --v0a2-warning: #FF9800;
  --v0a2-error: #F44336;
  --app-height: 100vh;
}

/* 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, 'Helvetica Neue', Arial, sans-serif;
  font-size: 1.6rem;
  line-height: 1.6;
  color: var(--v0a2-text);
  background-color: var(--v0a2-bg);
  min-height: 100vh;
  min-height: var(--app-height);
}

body.v0a2-loaded {
  opacity: 1;
}

/* Container and Layout */
.v0a2-container {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1rem;
}

.v0a2-wrapper {
  padding: 1rem 0;
}

/* Header Styles */
.v0a2-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, var(--v0a2-dark) 0%, var(--v0a2-secondary) 100%);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  padding: 0.8rem 0;
}

.v0a2-header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1rem;
}

.v0a2-logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  color: var(--v0a2-light);
}

.v0a2-logo-img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.v0a2-logo-text {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--v0a2-primary);
}

.v0a2-header-buttons {
  display: flex;
  gap: 0.8rem;
}

.v0a2-btn {
  padding: 0.6rem 1.2rem;
  font-size: 1.2rem;
  font-weight: 600;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

.v0a2-btn-primary {
  background: linear-gradient(135deg, var(--v0a2-primary) 0%, var(--v0a2-accent) 100%);
  color: var(--v0a2-light);
}

.v0a2-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 167, 38, 0.4);
}

.v0a2-btn-secondary {
  background: transparent;
  color: var(--v0a2-light);
  border: 2px solid var(--v0a2-primary);
}

.v0a2-btn-secondary:hover {
  background: var(--v0a2-primary);
  color: var(--v0a2-light);
}

/* Navigation Menu */
.v0a2-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--v0a2-light);
  font-size: 2.4rem;
  cursor: pointer;
  padding: 0.5rem;
}

.v0a2-menu-items {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  align-items: center;
}

.v0a2-nav-link {
  color: var(--v0a2-light);
  text-decoration: none;
  font-size: 1.3rem;
  font-weight: 500;
  transition: color 0.3s ease;
  white-space: nowrap;
}

.v0a2-nav-link:hover {
  color: var(--v0a2-primary);
}

.v0a2-current-page {
  color: var(--v0a2-primary) !important;
  font-weight: 700;
}

/* Mobile Menu */
.v0a2-mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 320px;
  height: 100vh;
  background: linear-gradient(180deg, var(--v0a2-dark) 0%, var(--v0a2-secondary) 100%);
  box-shadow: -2px 0 10px rgba(0, 0, 0, 0.3);
  z-index: 9999;
  transition: right 0.3s ease;
  padding: 6rem 2rem 2rem;
  overflow-y: auto;
}

.v0a2-mobile-menu-open {
  right: 0;
}

.v0a2-mobile-menu-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: var(--v0a2-light);
  font-size: 2.4rem;
  cursor: pointer;
}

.v0a2-mobile-menu-items {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.v0a2-mobile-menu-link {
  color: var(--v0a2-light);
  text-decoration: none;
  font-size: 1.6rem;
  font-weight: 500;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--v0a2-border);
  transition: color 0.3s ease;
}

.v0a2-mobile-menu-link:hover {
  color: var(--v0a2-primary);
}

/* Mobile Bottom Navigation */
.v0a2-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(90deg, var(--v0a2-dark) 0%, var(--v0a2-secondary) 50%, var(--v0a2-dark) 100%);
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  padding: 0.5rem 0;
  display: flex;
  justify-content: space-around;
  align-items: center;
}

@media (min-width: 769px) {
  .v0a2-bottom-nav {
    display: none;
  }
}

.v0a2-bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  text-decoration: none;
  color: var(--v0a2-light);
  min-width: 60px;
  min-height: 60px;
  padding: 0.5rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.v0a2-bottom-nav-item:hover {
  background: rgba(255, 167, 38, 0.1);
  transform: scale(1.05);
}

.v0a2-bottom-nav-icon {
  font-size: 24px;
  color: var(--v0a2-primary);
}

.v0a2-bottom-nav-text {
  font-size: 10px;
  font-weight: 500;
}

.v0a2-bottom-nav-item.v0a2-current-page .v0a2-bottom-nav-icon {
  color: var(--v0a2-gold);
}

.v0a2-bottom-nav-item.v0a2-current-page .v0a2-bottom-nav-text {
  color: var(--v0a2-gold);
  font-weight: 700;
}

/* Main Content Area */
main {
  margin-top: 80px;
  padding-bottom: 80px;
}

@media (min-width: 769px) {
  main {
    padding-bottom: 2rem;
  }
}

/* Carousel */
.v0a2-carousel {
  position: relative;
  width: 100%;
  height: 200px;
  margin-bottom: 2rem;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.v0a2-carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease;
  cursor: pointer;
}

.v0a2-carousel-slide.v0a2-active {
  opacity: 1;
}

.v0a2-carousel-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.v0a2-carousel-indicators {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
}

.v0a2-carousel-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
}

.v0a2-carousel-indicator.v0a2-active {
  background: var(--v0a2-primary);
  transform: scale(1.2);
}

/* Section Styles */
.v0a2-section {
  margin-bottom: 2.5rem;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  border: 1px solid var(--v0a2-border);
}

.v0a2-section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--v0a2-primary);
  margin-bottom: 1.5rem;
  text-align: center;
}

.v0a2-section-title h1 {
  font-size: 2rem;
  color: var(--v0a2-primary);
}

.v0a2-section-title h2 {
  font-size: 1.8rem;
  color: var(--v0a2-light);
}

/* Game Grid */
.v0a2-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.v0a2-game-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--v0a2-light);
  transition: transform 0.3s ease;
  cursor: pointer;
}

.v0a2-game-item:hover {
  transform: translateY(-4px);
}

.v0a2-game-icon {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
  border: 2px solid var(--v0a2-border);
  transition: border-color 0.3s ease;
}

.v0a2-game-item:hover .v0a2-game-icon {
  border-color: var(--v0a2-primary);
}

.v0a2-game-name {
  font-size: 1rem;
  font-weight: 500;
  text-align: center;
  line-height: 1.2;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Card Component */
.v0a2-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--v0a2-border);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
}

.v0a2-card:hover {
  border-color: var(--v0a2-primary);
  box-shadow: 0 4px 15px rgba(255, 167, 38, 0.2);
}

.v0a2-card-title {
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--v0a2-primary);
  margin-bottom: 1rem;
}

.v0a2-card-content {
  font-size: 1.4rem;
  line-height: 1.6;
  color: var(--v0a2-text);
}

/* Text Link */
.v0a2-link {
  color: var(--v0a2-primary);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.v0a2-link:hover {
  color: var(--v0a2-gold);
  text-decoration: underline;
}

/* Footer */
.v0a2-footer {
  background: linear-gradient(180deg, var(--v0a2-dark) 0%, var(--v0a2-secondary) 100%);
  padding: 2rem 0 1rem;
  margin-top: 3rem;
}

.v0a2-footer-content {
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1rem;
}

.v0a2-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
  justify-content: center;
}

.v0a2-footer-link {
  color: var(--v0a2-light);
  text-decoration: none;
  font-size: 1.2rem;
  transition: color 0.3s ease;
}

.v0a2-footer-link:hover {
  color: var(--v0a2-primary);
}

.v0a2-partners {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.v0a2-partner-img {
  width: 50px;
  height: 30px;
  object-fit: contain;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.v0a2-partner-img:hover {
  opacity: 1;
}

.v0a2-copyright {
  text-align: center;
  color: var(--v0a2-gray);
  font-size: 1.2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--v0a2-border);
}

/* Utility Classes */
.v0a2-text-center {
  text-align: center;
}

.v0a2-mt-1 {
  margin-top: 1rem;
}

.v0a2-mt-2 {
  margin-top: 2rem;
}

.v0a2-mb-1 {
  margin-bottom: 1rem;
}

.v0a2-mb-2 {
  margin-bottom: 2rem;
}

.v0a2-py-2 {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .v0a2-menu-toggle {
    display: block;
  }

  .v0a2-menu-items {
    display: none;
  }

  .v0a2-game-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 0.8rem;
  }

  .v0a2-carousel {
    height: 180px;
  }
}

@media (max-width: 380px) {
  .v0a2-game-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Loading State */
.v0a2-loading {
  opacity: 0.6;
  pointer-events: none;
}

/* Touch Feedback */
.v0a2-touch-active {
  transform: scale(0.95);
}

/* Animations */
@keyframes v0a2-fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.v0a2-animate-fadeIn {
  animation: v0a2-fadeIn 0.6s ease;
}

/* Accessibility */
.v0a2-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Print Styles */
@media print {
  .v0a2-header,
  .v0a2-bottom-nav,
  .v0a2-footer {
    display: none;
  }

  main {
    margin-top: 0;
    padding-bottom: 0;
  }
}
