/* WaPlus Link - Theme Stylesheet - All classes use v42f prefix */
:root {
  --v42f-bg-dark: #1E1E1E;
  --v42f-bg-darker: #0F0F0F;
  --v42f-bg-light: #EEEEEE;
  --v42f-text: #FFF8DC;
  --v42f-accent: #BAFFC9;
  --v42f-font-size-base: 62.5%;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: var(--v42f-font-size-base);
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--v42f-bg-dark);
  color: var(--v42f-text);
  line-height: 1.5rem;
  font-size: 1.6rem;
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
}

.v42f-container {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1rem;
}

.v42f-wrapper {
  width: 100%;
  overflow: hidden;
}

.v42f-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  max-width: 430px;
  margin: 0 auto;
  background: linear-gradient(135deg, var(--v42f-bg-dark), #2A2A2A);
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
  z-index: 1000;
  transition: transform 0.3s ease;
}

.v42f-header-hidden {
  transform: translateY(-100%);
}

.v42f-header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 1rem;
}

.v42f-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--v42f-text);
  font-weight: bold;
  font-size: 1.4rem;
}

.v42f-logo-icon {
  width: 28px;
  height: 28px;
  margin-right: 0.5rem;
  color: var(--v42f-accent);
}

.v42f-header-buttons {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.v42f-menu-toggle {
  background: none;
  border: none;
  color: var(--v42f-text);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
}

.v42f-btn {
  padding: 0.6rem 1.2rem;
  border: none;
  border-radius: 6px;
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.v42f-btn-register {
  background: var(--v42f-accent);
  color: var(--v42f-bg-dark);
}

.v42f-btn-register:hover {
  background: #A0FFB0;
  transform: scale(1.05);
}

.v42f-btn-login {
  background: transparent;
  color: var(--v42f-text);
  border: 2px solid var(--v42f-text);
}

.v42f-btn-login:hover {
  background: var(--v42f-text);
  color: var(--v42f-bg-dark);
}

.v42f-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.6);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 999;
}

.v42f-overlay-active {
  opacity: 1;
  visibility: visible;
}

.v42f-mobile-menu {
  position: fixed;
  top: 0;
  right: -280px;
  width: 280px;
  height: 100vh;
  background: var(--v42f-bg-darker);
  padding: 4rem 1.5rem 2rem;
  transition: right 0.3s ease;
  z-index: 9999;
  overflow-y: auto;
}

.v42f-menu-open {
  right: 0;
}

.v42f-mobile-link {
  display: flex;
  align-items: center;
  padding: 1rem;
  color: var(--v42f-text);
  text-decoration: none;
  border-bottom: 1px solid rgba(186,255,201,0.1);
  transition: all 0.2s ease;
}

.v42f-mobile-link:hover {
  background: #2A2A2A;
  padding-left: 1.5rem;
}

.v42f-mobile-link i {
  margin-right: 0.8rem;
  width: 20px;
  text-align: center;
}

.v42f-main {
  padding-top: 70px;
  padding-bottom: 80px;
  min-height: calc(100vh - 150px);
}

.v42f-card {
  background: #2A2A2A;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  border: 1px solid #3A3A3A;
}

.v42f-card-title {
  color: var(--v42f-accent);
  font-size: 1.8rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.v42f-card-content {
  color: var(--v42f-text);
  line-height: 1.7;
}

.v42f-text-highlight {
  color: var(--v42f-accent);
}

.v42f-carousel {
  margin: 1.5rem 0;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
}

.v42f-carousel-track {
  display: flex;
  transition: transform 0.5s ease;
}

.v42f-carousel-slide {
  min-width: 100%;
}

.v42f-carousel img {
  width: 100%;
  height: auto;
  display: block;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.v42f-carousel img:hover {
  transform: scale(1.02);
}

.v42f-section-title {
  color: var(--v42f-accent);
  font-size: 1.6rem;
  margin: 2rem 0 1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.v42f-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.v42f-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
  margin-top: 1rem;
}

.v42f-game-item {
  background: var(--v42f-bg-dark);
  border-radius: 8px;
  padding: 0.5rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.v42f-game-item:hover {
  border-color: var(--v42f-accent);
  transform: scale(1.05);
}

.v42f-game-item img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 0.3rem;
}

.v42f-game-name {
  display: block;
  font-size: 0.9rem;
  color: var(--v42f-text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.v42f-promo-link {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  background: linear-gradient(135deg, var(--v42f-accent), #90EE90);
  color: var(--v42f-bg-dark);
  font-weight: bold;
  border-radius: 8px;
  text-decoration: none;
  margin: 0.5rem 0.5rem 0.5rem 0;
  transition: all 0.3s ease;
  cursor: pointer;
}

.v42f-promo-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(186,255,201,0.4);
}

.v42f-list {
  list-style: none;
  padding-left: 0;
}

.v42f-list-item {
  padding: 0.8rem 0;
  border-bottom: 1px solid rgba(255,248,220,0.1);
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
}

.v42f-list-item::before {
  content: "✓";
  color: var(--v42f-accent);
  font-weight: bold;
}

.v42f-footer {
  background: var(--v42f-bg-darker);
  padding: 2rem 1rem 1rem;
  text-align: center;
}

.v42f-footer-title {
  color: var(--v42f-accent);
  font-size: 1.6rem;
  margin-bottom: 1rem;
}

.v42f-footer-text {
  color: var(--v42f-text);
  font-size: 1.2rem;
  line-height: 1.6;
  margin-bottom: 0.5rem;
}

.v42f-footer-links {
  margin: 1rem 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem;
}

.v42f-footer-link {
  color: var(--v42f-accent);
  text-decoration: none;
  font-size: 1.1rem;
  padding: 0.3rem 0.8rem;
  border: 1px solid var(--v42f-accent);
  border-radius: 4px;
  transition: all 0.3s ease;
}

.v42f-footer-link:hover {
  background: var(--v42f-accent);
  color: var(--v42f-bg-dark);
}

.v42f-partners {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin: 1.5rem 0;
}

.v42f-partners img {
  width: 50px;
  height: 30px;
  object-fit: contain;
  opacity: 0.7;
  transition: opacity 0.3s;
}

.v42f-partners img:hover {
  opacity: 1;
}

.v42f-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  max-width: 430px;
  margin: 0 auto;
  background: linear-gradient(to top, var(--v42f-bg-darker), var(--v42f-bg-dark));
  border-top: 2px solid var(--v42f-accent);
  z-index: 1000;
}

.v42f-bottom-nav-content {
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 0.5rem 0;
  height: 60px;
}

.v42f-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--v42f-text);
  min-width: 60px;
  min-height: 60px;
  transition: all 0.2s ease;
  cursor: pointer;
}

.v42f-nav-item.v42f-nav-active {
  color: var(--v42f-accent);
}

.v42f-nav-item:active {
  transform: scale(0.95);
}

.v42f-nav-icon {
  font-size: 22px;
  margin-bottom: 0.2rem;
  color: var(--v42f-accent);
}

.v42f-nav-label {
  font-size: 0.9rem;
  color: var(--v42f-text);
}

.v42f-nav-item:hover .v42f-nav-label {
  color: var(--v42f-accent);
}

.v42f-touch-active {
  transform: scale(0.9);
}

h1, h2, h3 {
  color: var(--v42f-accent);
  margin: 1.5rem 0 1rem;
}

h1 {
  font-size: 2rem;
  line-height: 1.3;
}

h2 {
  font-size: 1.7rem;
}

h3 {
  font-size: 1.4rem;
}

p {
  margin-bottom: 1rem;
  color: var(--v42f-text);
}

a {
  color: var(--v42f-accent);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: #90EE90;
}

strong {
  color: var(--v42f-accent);
}

@media (min-width: 769px) {
  .v42f-bottom-nav {
    display: none;
  }
  .v42f-main {
    padding-bottom: 2rem;
  }
}

@media (max-width: 768px) {
  .v42f-main {
    padding-bottom: 80px;
  }
}
