/**
 * PH8 Website Design Styles
 * All classes use v20f- prefix for namespace isolation
 * Color Palette: Lime Green, Gray, Sea Green, Dark Blue, Dark Orange
 */

/* CSS Variables */
:root {
  --v20f-primary: #32CD32;
  --v20f-primary-dark: #28a428;
  --v20f-secondary: #2E8B57;
  --v20f-accent: #FF8C00;
  --v20f-dark: #1C2833;
  --v20f-darker: #0f1820;
  --v20f-gray: #95A5A6;
  --v20f-gray-light: #bdc3c7;
  --v20f-white: #ffffff;
  --v20f-bg: #f5f7fa;
  --v20f-text: #2c3e50;
  --v20f-text-light: #7f8c8d;
  --v20f-border: #e0e6ed;
  --v20f-shadow: rgba(28, 40, 51, 0.1);
  --v20f-gradient: linear-gradient(135deg, #32CD32 0%, #2E8B57 100%);
  --v20f-header-height: 60px;
  --v20f-bottom-nav-height: 60px;
}

/* Reset and Base Styles */
*, *::before, *::after {
  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(--v20f-text);
  background-color: var(--v20f-bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Container */
.v20f-container {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1rem;
}

.v20f-wrapper {
  padding: 1rem 0;
}

/* Header Styles */
.v20f-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--v20f-header-height);
  background: linear-gradient(180deg, var(--v20f-dark) 0%, var(--v20f-darker) 100%);
  box-shadow: 0 2px 10px var(--v20f-shadow);
  z-index: 1000;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.v20f-header-hidden {
  transform: translateY(-100%);
}

.v20f-header-scrolled {
  box-shadow: 0 4px 20px var(--v20f-shadow);
}

.v20f-header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1rem;
}

.v20f-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--v20f-white);
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.v20f-logo img {
  width: 32px;
  height: 32px;
  border-radius: 6px;
}

.v20f-header-buttons {
  display: flex;
  gap: 0.5rem;
}

.v20f-header-btn {
  padding: 0.4rem 1rem;
  font-size: 1.2rem;
  font-weight: 600;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-block;
}

.v20f-btn-register {
  background: var(--v20f-primary);
  color: var(--v20f-white);
}

.v20f-btn-register:hover {
  background: var(--v20f-primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(50, 205, 50, 0.3);
}

.v20f-btn-login {
  background: transparent;
  color: var(--v20f-white);
  border: 2px solid var(--v20f-primary);
}

.v20f-btn-login:hover {
  background: var(--v20f-primary);
  transform: translateY(-1px);
}

/* Mobile Menu Button */
.v20f-menu-btn {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.v20f-menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--v20f-white);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.v20f-menu-btn:hover span:nth-child(1) {
  transform: translateY(2px);
}

.v20f-menu-btn:hover span:nth-child(3) {
  transform: translateY(-2px);
}

/* Mobile Menu Overlay */
.v20f-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.v20f-overlay-visible {
  opacity: 1;
  visibility: visible;
}

/* Mobile Menu */
.v20f-mobile-menu {
  position: fixed;
  top: 0;
  right: -280px;
  width: 280px;
  height: 100vh;
  background: linear-gradient(180deg, var(--v20f-dark) 0%, var(--v20f-darker) 100%);
  z-index: 9999;
  transition: right 0.3s ease;
  overflow-y: auto;
  padding: 2rem 0;
}

.v20f-menu-open {
  right: 0;
}

.v20f-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.v20f-menu-close {
  background: none;
  border: none;
  color: var(--v20f-white);
  font-size: 2rem;
  cursor: pointer;
  padding: 0.5rem;
  line-height: 1;
}

.v20f-menu-nav {
  padding: 1rem 0;
}

.v20f-menu-link {
  display: block;
  padding: 1rem 1.5rem;
  color: var(--v20f-white);
  text-decoration: none;
  font-size: 1.5rem;
  transition: all 0.2s ease;
  border-left: 3px solid transparent;
}

.v20f-menu-link:hover {
  background: rgba(255, 255, 255, 0.05);
  border-left-color: var(--v20f-primary);
  padding-left: 2rem;
}

/* Main Content */
main {
  margin-top: var(--v20f-header-height);
  min-height: calc(100vh - var(--v20f-header-height) - var(--v20f-bottom-nav-height));
}

@media (min-width: 769px) {
  main {
    margin-bottom: 0;
  }
}

@media (max-width: 768px) {
  main {
    padding-bottom: 80px;
  }
}

/* Carousel */
.v20f-carousel {
  position: relative;
  width: 100%;
  height: 180px;
  overflow: hidden;
  border-radius: 12px;
  margin-bottom: 1.5rem;
  background: var(--v20f-dark);
}

.v20f-carousel-slide {
  width: 100%;
  height: 100%;
  display: none;
}

.v20f-carousel-slide:first-child {
  display: block;
}

.v20f-carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.v20f-carousel-nav {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.v20f-carousel-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
}

.v20f-carousel-indicator.v20f-active,
.v20f-carousel-indicator:hover {
  background: var(--v20f-primary);
  transform: scale(1.2);
}

.v20f-carousel-prev,
.v20f-carousel-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: var(--v20f-white);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: all 0.3s ease;
  z-index: 10;
}

.v20f-carousel-prev {
  left: 10px;
}

.v20f-carousel-next {
  right: 10px;
}

.v20f-carousel-prev:hover,
.v20f-carousel-next:hover {
  background: var(--v20f-primary);
  transform: translateY(-50%) scale(1.1);
}

/* Section Styles */
.v20f-section {
  margin-bottom: 2rem;
  background: var(--v20f-white);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px var(--v20f-shadow);
}

.v20f-section-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--v20f-dark);
  margin-bottom: 1.2rem;
  padding-bottom: 0.8rem;
  border-bottom: 3px solid var(--v20f-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.v20f-section-title i {
  color: var(--v20f-primary);
}

/* Game Grid */
.v20f-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
}

.v20f-game-item {
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.v20f-game-item:hover {
  transform: scale(1.05);
}

.v20f-game-icon {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 0.4rem;
  box-shadow: 0 2px 6px var(--v20f-shadow);
  transition: box-shadow 0.3s ease;
}

.v20f-game-icon:hover {
  box-shadow: 0 4px 12px rgba(50, 205, 50, 0.3);
}

.v20f-game-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.v20f-game-name {
  font-size: 1rem;
  font-weight: 500;
  color: var(--v20f-text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.3;
  height: 2.6rem;
}

/* Game Filter Buttons */
.v20f-game-filters {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  -webkit-overflow-scrolling: touch;
}

.v20f-game-filters::-webkit-scrollbar {
  height: 4px;
}

.v20f-game-filters::-webkit-scrollbar-track {
  background: var(--v20f-bg);
  border-radius: 2px;
}

.v20f-game-filters::-webkit-scrollbar-thumb {
  background: var(--v20f-gray);
  border-radius: 2px;
}

.v20f-game-filter-btn {
  padding: 0.5rem 1rem;
  font-size: 1.2rem;
  font-weight: 600;
  border: 2px solid var(--v20f-primary);
  border-radius: 20px;
  background: var(--v20f-white);
  color: var(--v20f-text);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.3s ease;
}

.v20f-game-filter-btn:hover,
.v20f-game-filter-btn.v20f-active {
  background: var(--v20f-primary);
  color: var(--v20f-white);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(50, 205, 50, 0.3);
}

/* Cards */
.v20f-card {
  background: var(--v20f-white);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px var(--v20f-shadow);
  margin-bottom: 1rem;
  transition: all 0.3s ease;
}

.v20f-card:hover {
  box-shadow: 0 4px 16px var(--v20f-shadow);
  transform: translateY(-2px);
}

.v20f-card-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--v20f-dark);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.v20f-card-content {
  font-size: 1.4rem;
  line-height: 1.6;
  color: var(--v20f-text);
}

/* Buttons */
.v20f-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.5rem;
  font-size: 1.4rem;
  font-weight: 600;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  box-shadow: 0 2px 8px var(--v20f-shadow);
}

.v20f-btn-primary {
  background: var(--v20f-gradient);
  color: var(--v20f-white);
}

.v20f-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(50, 205, 50, 0.4);
}

.v20f-btn-secondary {
  background: var(--v20f-accent);
  color: var(--v20f-white);
}

.v20f-btn-secondary:hover {
  background: #e67e00;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 140, 0, 0.4);
}

.v20f-btn-outline {
  background: transparent;
  color: var(--v20f-primary);
  border: 2px solid var(--v20f-primary);
  box-shadow: none;
}

.v20f-btn-outline:hover {
  background: var(--v20f-primary);
  color: var(--v20f-white);
}

/* Accordion */
.v20f-accordion-item {
  background: var(--v20f-white);
  border-radius: 8px;
  margin-bottom: 0.8rem;
  box-shadow: 0 2px 6px var(--v20f-shadow);
  overflow: hidden;
}

.v20f-accordion-header {
  padding: 1rem 1.2rem;
  background: var(--v20f-white);
  border: none;
  border-left: 4px solid var(--v20f-primary);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--v20f-dark);
  transition: all 0.3s ease;
}

.v20f-accordion-header:hover {
  background: var(--v20f-bg);
}

.v20f-accordion-icon {
  transition: transform 0.3s ease;
  font-size: 1.2rem;
  color: var(--v20f-primary);
}

.v20f-accordion-item.v20f-open .v20f-accordion-icon {
  transform: rotate(180deg);
}

.v20f-accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.v20f-accordion-body {
  padding: 1.2rem;
  font-size: 1.4rem;
  line-height: 1.6;
  color: var(--v20f-text);
  border-top: 1px solid var(--v20f-border);
}

/* List Styles */
.v20f-list {
  list-style: none;
}

.v20f-list-item {
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--v20f-border);
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
}

.v20f-list-item:last-child {
  border-bottom: none;
}

.v20f-list-icon {
  color: var(--v20f-primary);
  font-size: 1.6rem;
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.v20f-list-content {
  flex: 1;
}

.v20f-list-title {
  font-weight: 600;
  color: var(--v20f-dark);
  margin-bottom: 0.3rem;
}

.v20f-list-desc {
  font-size: 1.3rem;
  color: var(--v20f-text-light);
  line-height: 1.5;
}

/* Highlight Text */
.v20f-highlight {
  color: var(--v20f-primary);
  font-weight: 600;
}

.v20f-highlight-accent {
  color: var(--v20f-accent);
  font-weight: 600;
}

/* Link Styles */
.v20f-link {
  color: var(--v20f-primary);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s ease;
  border-bottom: 1px solid transparent;
}

.v20f-link:hover {
  color: var(--v20f-primary-dark);
  border-bottom-color: var(--v20f-primary);
}

/* Footer */
.v20f-footer {
  background: linear-gradient(180deg, var(--v20f-dark) 0%, var(--v20f-darker) 100%);
  color: var(--v20f-white);
  padding: 2rem 0 1rem;
  margin-top: 2rem;
}

.v20f-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
  justify-content: center;
}

.v20f-footer-link {
  color: var(--v20f-gray-light);
  text-decoration: none;
  font-size: 1.3rem;
  transition: all 0.3s ease;
  padding: 0.3rem 0.8rem;
  border-radius: 4px;
}

.v20f-footer-link:hover {
  color: var(--v20f-primary);
  background: rgba(255, 255, 255, 0.05);
}

.v20f-partners {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.v20f-partner-logo {
  width: 50px;
  height: 50px;
  object-fit: contain;
  opacity: 0.8;
  transition: all 0.3s ease;
  border-radius: 6px;
}

.v20f-partner-logo:hover {
  opacity: 1;
  transform: scale(1.1);
}

.v20f-footer-bottom {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.v20f-copyright {
  font-size: 1.2rem;
  color: var(--v20f-gray);
  margin-bottom: 0.5rem;
}

/* Bottom Navigation (Mobile) */
.v20f-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--v20f-bottom-nav-height);
  background: linear-gradient(180deg, var(--v20f-dark) 0%, var(--v20f-darker) 100%);
  border-top: 2px solid var(--v20f-primary);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 -2px 10px var(--v20f-shadow);
}

@media (min-width: 769px) {
  .v20f-bottom-nav {
    display: none;
  }
}

.v20f-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  text-decoration: none;
  color: var(--v20f-gray-light);
  min-width: 60px;
  min-height: 60px;
  transition: all 0.3s ease;
  cursor: pointer;
  padding: 0.5rem 0;
}

.v20f-nav-item:hover,
.v20f-nav-item.v20f-active {
  color: var(--v20f-primary);
  transform: scale(1.1);
}

.v20f-nav-icon {
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.v20f-nav-text {
  font-size: 10px;
  font-weight: 500;
  text-align: center;
  line-height: 1.2;
}

/* Badge */
.v20f-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--v20f-accent);
  color: var(--v20f-white);
  font-size: 0.9rem;
  font-weight: 700;
  padding: 0.1rem 0.4rem;
  border-radius: 10px;
  min-width: 18px;
  text-align: center;
}

/* Responsive Utilities */
@media (max-width: 768px) {
  .v20f-hide-mobile {
    display: none !important;
  }
}

@media (min-width: 769px) {
  .v20f-hide-desktop {
    display: none !important;
  }
}

/* Text Utilities */
.v20f-text-center {
  text-align: center;
}

.v20f-text-bold {
  font-weight: 700;
}

.v20f-text-primary {
  color: var(--v20f-primary);
}

.v20f-text-accent {
  color: var(--v20f-accent);
}

/* Spacing Utilities */
.v20f-mt-1 { margin-top: 1rem; }
.v20f-mt-2 { margin-top: 2rem; }
.v20f-mb-1 { margin-bottom: 1rem; }
.v20f-mb-2 { margin-bottom: 2rem; }
.v20f-p-1 { padding: 1rem; }
.v20f-p-2 { padding: 2rem; }
