/* WK777 App Layout Stylesheet */
/* CSS class prefix: v595- */
/* High-contrast black and yellow theme */

/* Root variables */
:root {
  --v595-black: #0C0C0C;
  --v595-yellow: #FFEF94;
  --v595-gray: #D3D3D3;
  --v595-yellow-bright: #FFD700;
  --v595-dark-gray: #1A1A1A;
  --v595-medium-gray: #333333;
  font-size: 62.5%;
}

/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  font-size: 1.6rem;
  line-height: 1.5;
  background-color: var(--v595-black);
  color: var(--v595-gray);
  overflow-x: hidden;
}

/* Container */
.v595-container {
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.v595-wrapper {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
}

/* Header */
.v595-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, var(--v595-black) 0%, var(--v595-dark-gray) 100%);
  border-bottom: 2px solid var(--v595-yellow);
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(255, 239, 148, 0.2);
}

.v595-header-content {
  max-width: 430px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 1.5rem;
  gap: 1rem;
}

.v595-logo-section {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1;
}

.v595-logo-img {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(255, 239, 148, 0.3);
}

.v595-logo-text {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--v595-yellow);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  white-space: nowrap;
}

.v595-header-actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.v595-btn {
  padding: 0.8rem 1.6rem;
  background: linear-gradient(135deg, var(--v595-yellow) 0%, var(--v595-yellow-bright) 100%);
  color: var(--v595-black);
  border: none;
  border-radius: 8px;
  font-size: 1.4rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  box-shadow: 0 4px 12px rgba(255, 239, 148, 0.4);
}

.v595-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(255, 239, 148, 0.6);
}

.v595-btn:active {
  transform: translateY(0);
}

.v595-btn-register {
  background: linear-gradient(135deg, var(--v595-yellow) 0%, var(--v595-yellow-bright) 100%);
}

.v595-btn-login {
  background: transparent;
  border: 2px solid var(--v595-yellow);
  color: var(--v595-yellow);
}

.v595-menu-toggle {
  background: transparent;
  border: none;
  color: var(--v595-yellow);
  font-size: 2.4rem;
  cursor: pointer;
  padding: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Mobile menu */
.v595-mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 85%;
  max-width: 320px;
  height: 100vh;
  background: linear-gradient(180deg, var(--v595-dark-gray) 0%, var(--v595-black) 100%);
  z-index: 9999;
  transition: right 0.3s ease;
  overflow-y: auto;
  border-left: 3px solid var(--v595-yellow);
}

.v595-menu-active {
  right: 0;
}

.v595-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem;
  border-bottom: 2px solid var(--v595-yellow);
}

.v595-menu-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--v595-yellow);
}

.v595-menu-close {
  background: transparent;
  border: none;
  color: var(--v595-yellow);
  font-size: 2.8rem;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}

.v595-menu-nav {
  padding: 2rem 0;
}

.v595-nav-link {
  display: block;
  padding: 1.5rem 2rem;
  color: var(--v595-gray);
  text-decoration: none;
  font-size: 1.6rem;
  font-weight: 600;
  transition: all 0.3s ease;
  border-left: 4px solid transparent;
}

.v595-nav-link:hover,
.v595-nav-active {
  background: rgba(255, 239, 148, 0.1);
  color: var(--v595-yellow);
  border-left-color: var(--v595-yellow);
}

.v595-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.8);
  z-index: 9998;
  display: none;
}

.v595-overlay-active {
  display: block;
}

/* Main content */
.v595-main {
  margin-top: 70px;
  padding-bottom: 80px;
  min-height: calc(100vh - 70px);
}

/* Carousel */
.v595-carousel-container {
  position: relative;
  width: 100%;
  max-width: 430px;
  margin: 0 auto 2rem;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(255, 239, 148, 0.2);
}

.v595-carousel-wrapper {
  position: relative;
  width: 100%;
  height: 240px;
}

.v595-carousel-slide {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease;
  cursor: pointer;
}

.v595-slide-active {
  opacity: 1;
}

.v595-carousel-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.v595-carousel-controls {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.8rem;
  z-index: 10;
}

.v595-carousel-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  border: 2px solid var(--v595-yellow);
  cursor: pointer;
  transition: all 0.3s ease;
}

.v595-dot-active {
  background: var(--v595-yellow);
  transform: scale(1.2);
}

/* Section */
.v595-section {
  padding: 3rem 1.5rem;
  margin-bottom: 2rem;
  background: var(--v595-dark-gray);
  border-radius: 12px;
  border: 1px solid var(--v595-medium-gray);
}

.v595-section-title {
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--v595-yellow);
  margin-bottom: 2rem;
  text-align: center;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.v595-section-subtitle {
  font-size: 2rem;
  font-weight: 600;
  color: var(--v595-yellow);
  margin: 2rem 0 1.5rem;
}

/* Game grid */
.v595-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
  margin-top: 1.5rem;
}

.v595-game-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  padding: 1rem;
  background: var(--v595-medium-gray);
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  cursor: pointer;
}

.v595-game-card:hover {
  transform: translateY(-4px);
  border-color: var(--v595-yellow);
  box-shadow: 0 8px 20px rgba(255, 239, 148, 0.3);
}

.v595-game-icon {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.v595-game-name {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--v595-gray);
  text-align: center;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* Content modules */
.v595-content-block {
  margin-bottom: 3rem;
  padding: 2.5rem 2rem;
  background: linear-gradient(135deg, var(--v595-dark-gray) 0%, var(--v595-medium-gray) 100%);
  border-radius: 12px;
  border-left: 4px solid var(--v595-yellow);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.v595-content-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--v595-yellow);
  margin-bottom: 1.5rem;
}

.v595-content-text {
  font-size: 1.5rem;
  line-height: 1.6;
  color: var(--v595-gray);
  margin-bottom: 1.5rem;
}

.v595-content-list {
  list-style: none;
  padding-left: 0;
  margin: 1.5rem 0;
}

.v595-content-list li {
  position: relative;
  padding-left: 2.5rem;
  margin-bottom: 1rem;
  font-size: 1.5rem;
  line-height: 1.6;
  color: var(--v595-gray);
}

.v595-content-list li:before {
  content: '★';
  position: absolute;
  left: 0;
  color: var(--v595-yellow);
  font-size: 1.8rem;
}

/* Links */
.v595-link {
  color: var(--v595-yellow);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  border-bottom: 2px solid transparent;
}

.v595-link:hover {
  border-bottom-color: var(--v595-yellow);
}

.v595-promo-link {
  display: inline-block;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, var(--v595-yellow) 0%, var(--v595-yellow-bright) 100%);
  color: var(--v595-black);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.6rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(255, 239, 148, 0.4);
  margin: 1rem 0;
}

.v595-promo-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(255, 239, 148, 0.6);
}

/* Footer */
.v595-footer {
  background: linear-gradient(135deg, var(--v595-black) 0%, var(--v595-dark-gray) 100%);
  padding: 3rem 1.5rem 10rem;
  border-top: 3px solid var(--v595-yellow);
  margin-top: 4rem;
}

.v595-footer-content {
  max-width: 430px;
  margin: 0 auto;
}

.v595-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  margin-bottom: 2.5rem;
}

.v595-footer-link {
  color: var(--v595-gray);
  text-decoration: none;
  font-size: 1.4rem;
  transition: color 0.3s ease;
}

.v595-footer-link:hover {
  color: var(--v595-yellow);
}

.v595-partners {
  margin: 3rem 0;
}

.v595-partners-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--v595-yellow);
  text-align: center;
  margin-bottom: 2rem;
}

.v595-partners-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.2rem;
  align-items: center;
}

.v595-partner-logo {
  width: 100%;
  height: auto;
  opacity: 0.7;
  filter: grayscale(100%);
  transition: all 0.3s ease;
}

.v595-partner-logo:hover {
  opacity: 1;
  filter: grayscale(0%);
}

.v595-copyright {
  text-align: center;
  color: var(--v595-gray);
  font-size: 1.3rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--v595-medium-gray);
}

/* Bottom navigation */
.v595-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, var(--v595-black) 0%, var(--v595-dark-gray) 100%);
  border-top: 3px solid var(--v595-yellow);
  z-index: 1000;
  box-shadow: 0 -4px 12px rgba(255, 239, 148, 0.2);
}

.v595-bottom-nav-content {
  max-width: 430px;
  margin: 0 auto;
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 0.8rem 0;
  height: 64px;
}

.v595-bottom-nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-width: 64px;
  min-height: 56px;
  padding: 0.6rem;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  color: var(--v595-gray);
}

.v595-bottom-nav-btn:hover,
.v595-bottom-nav-active {
  color: var(--v595-yellow);
  transform: translateY(-2px);
}

.v595-bottom-nav-icon {
  font-size: 2.4rem;
}

.v595-bottom-nav-label {
  font-size: 1.1rem;
  font-weight: 600;
}

/* Responsive */
@media (min-width: 769px) {
  .v595-bottom-nav {
    display: none;
  }

  .v595-main {
    padding-bottom: 2rem;
  }
}

@media (max-width: 768px) {
  .v595-main {
    padding-bottom: 80px;
  }

  .v595-btn {
    padding: 0.7rem 1.2rem;
    font-size: 1.3rem;
  }

  .v595-logo-text {
    font-size: 1.6rem;
  }

  .v595-game-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
  }
}

@media (max-width: 375px) {
  .v595-game-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .v595-btn {
    padding: 0.6rem 1rem;
    font-size: 1.2rem;
  }
}
