/**
 * TARA777 Website CSS Styles
 * Mobile-first gaming website with unique visual design
 * All classes use prefix "vc59-" to avoid conflicts
 */

/* CSS Variables for consistent theming */
:root {
  --vc59-primary: #00FF00;
  --vc59-secondary: #2C3E50;
  --vc59-accent: #2E8B57;
  --vc59-highlight: #228B22;
  --vc59-bg-dark: #1A1A1A;
  --vc59-bg-card: #2C2C2C;
  --vc59-text-light: #FFFFFF;
  --vc59-text-muted: #B0B0B0;
  --vc59-border: #444444;
  --vc59-success: #00FF00;
  --vc59-warning: #FFD700;
  --vc59-error: #FF4444;
  --vc59-shadow: rgba(0, 255, 0, 0.3);
  --vc59-gradient: linear-gradient(135deg, #00FF00 0%, #2E8B57 100%);
}

/* Base styles and reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 62.5%; /* 1rem = 10px */
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  font-size: 1.6rem;
  line-height: 1.5;
  color: var(--vc59-text-light);
  background-color: var(--vc59-bg-dark);
  overflow-x: hidden;
  max-width: 100%;
}

/* Main container */
.vc59-container {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.vc59-wrapper {
  min-height: 100vh;
  padding-bottom: 8rem; /* Space for bottom nav */
}

/* Header and Navigation */
.vc59-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--vc59-gradient);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--vc59-border);
  padding: 1rem 0;
}

.vc59-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
}

.vc59-logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 2rem;
  font-weight: bold;
  color: var(--vc59-text-light);
  text-decoration: none;
}

.vc59-logo img {
  width: 2.4rem;
  height: 2.4rem;
}

.vc59-nav-buttons {
  display: flex;
  gap: 1rem;
}

.vc59-btn {
  padding: 0.8rem 1.6rem;
  border: none;
  border-radius: 2.5rem;
  font-size: 1.4rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 4.4rem; /* Touch-friendly size */
  touch-action: manipulation;
}

.vc59-btn-primary {
  background: var(--vc59-secondary);
  color: var(--vc59-text-light);
  box-shadow: 0 2px 8px var(--vc59-shadow);
}

.vc59-btn-primary:hover {
  background: #34495E;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px var(--vc59-shadow);
}

.vc59-btn-secondary {
  background: transparent;
  color: var(--vc59-text-light);
  border: 2px solid var(--vc59-text-light);
}

.vc59-btn-secondary:hover {
  background: var(--vc59-text-light);
  color: var(--vc59-secondary);
}

.vc59-menu-toggle {
  background: none;
  border: none;
  color: var(--vc59-text-light);
  font-size: 2.4rem;
  cursor: pointer;
  padding: 0.5rem;
  display: none;
}

/* Mobile Menu */
.vc59-mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 300px;
  height: 100vh;
  background: var(--vc59-bg-card);
  z-index: 9999;
  transition: right 0.3s ease;
  overflow-y: auto;
  padding: 2rem;
}

.vc59-mobile-menu.active {
  right: 0;
}

.vc59-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.vc59-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

.vc59-menu-list {
  list-style: none;
  margin-top: 2rem;
}

.vc59-menu-item {
  margin-bottom: 1rem;
}

.vc59-menu-link {
  display: block;
  padding: 1rem;
  color: var(--vc59-text-light);
  text-decoration: none;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
}

.vc59-menu-link:hover {
  background: var(--vc59-primary);
  color: var(--vc59-bg-dark);
}

/* Carousel */
.vc59-carousel {
  position: relative;
  width: 100%;
  height: 20rem;
  overflow: hidden;
  border-radius: 1rem;
  margin: 1rem 0;
}

.vc59-carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease;
  cursor: pointer;
}

.vc59-carousel-slide.active {
  opacity: 1;
}

.vc59-carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vc59-carousel-indicators {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
}

.vc59-carousel-indicator {
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
}

.vc59-carousel-indicator.active {
  background: var(--vc59-primary);
  width: 2rem;
  border-radius: 1rem;
}

/* Game Grid */
.vc59-games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(8rem, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}

.vc59-game-card {
  background: var(--vc59-bg-card);
  border-radius: 1rem;
  padding: 1rem;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 1px solid transparent;
}

.vc59-game-card:hover {
  transform: translateY(-4px);
  border-color: var(--vc59-primary);
  box-shadow: 0 8px 24px var(--vc59-shadow);
}

.vc59-game-icon {
  width: 4rem;
  height: 4rem;
  margin: 0 auto 0.5rem;
  border-radius: 0.5rem;
  overflow: hidden;
}

.vc59-game-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vc59-game-name {
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--vc59-text-light);
  line-height: 1.3;
  margin: 0;
}

/* Content Sections */
.vc59-section {
  margin: 3rem 0;
  padding: 2rem 0;
}

.vc59-section-title {
  font-size: 2.4rem;
  font-weight: bold;
  color: var(--vc59-primary);
  margin-bottom: 1.5rem;
  text-align: center;
}

.vc59-content-card {
  background: var(--vc59-bg-card);
  border-radius: 1rem;
  padding: 2rem;
  margin: 1.5rem 0;
  border: 1px solid var(--vc59-border);
}

.vc59-text-content {
  color: var(--vc59-text-muted);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.vc59-text-content p {
  margin-bottom: 1rem;
}

.vc59-text-content a {
  color: var(--vc59-primary);
  text-decoration: none;
  font-weight: 600;
}

.vc59-text-content a:hover {
  text-decoration: underline;
}

/* Promotional Links */
.vc59-promo-link {
  color: var(--vc59-primary);
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
}

.vc59-promo-link:hover {
  text-decoration: underline;
  color: var(--vc59-highlight);
}

.vc59-promo-btn {
  background: var(--vc59-gradient);
  color: var(--vc59-text-light);
  border: none;
  padding: 1.2rem 2.4rem;
  border-radius: 2.5rem;
  font-size: 1.6rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-block;
  text-align: center;
  text-decoration: none;
  margin: 1rem 0;
}

.vc59-promo-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--vc59-shadow);
}

/* Bottom Navigation */
.vc59-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--vc59-bg-card);
  border-top: 1px solid var(--vc59-border);
  z-index: 1000;
  padding: 0.5rem 0;
  display: none;
}

.vc59-bottom-nav-items {
  display: flex;
  justify-content: space-around;
  align-items: center;
  max-width: 430px;
  margin: 0 auto;
}

.vc59-bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 6rem;
  min-height: 5.6rem;
  padding: 0.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  background: none;
  color: var(--vc59-text-muted);
  text-decoration: none;
}

.vc59-bottom-nav-item:hover {
  color: var(--vc59-primary);
  transform: scale(1.1);
}

.vc59-bottom-nav-item.active {
  color: var(--vc59-primary);
}

.vc59-bottom-nav-icon {
  font-size: 2.4rem;
  margin-bottom: 0.2rem;
}

.vc59-bottom-nav-text {
  font-size: 1rem;
  font-weight: 500;
  text-align: center;
}

/* Footer */
.vc59-footer {
  background: var(--vc59-bg-card);
  border-top: 1px solid var(--vc59-border);
  padding: 3rem 0 2rem;
  margin-top: 3rem;
}

.vc59-partners {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.vc59-partner-icon {
  width: 4rem;
  height: 4rem;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.vc59-partner-icon:hover {
  opacity: 1;
}

.vc59-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.vc59-footer-link {
  color: var(--vc59-text-muted);
  text-decoration: none;
  font-size: 1.4rem;
  transition: color 0.3s ease;
}

.vc59-footer-link:hover {
  color: var(--vc59-primary);
}

.vc59-copyright {
  text-align: center;
  color: var(--vc59-text-muted);
  font-size: 1.2rem;
  margin-top: 2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .vc59-menu-toggle {
    display: block;
  }

  .vc59-nav-buttons {
    display: none;
  }

  .vc59-bottom-nav {
    display: block;
  }

  .vc59-wrapper {
    padding-bottom: 8rem;
  }

  .vc59-games-grid {
    grid-template-columns: repeat(auto-fill, minmax(7rem, 1fr));
    gap: 0.8rem;
  }

  .vc59-section-title {
    font-size: 2rem;
  }

  .vc59-content-card {
    padding: 1.5rem;
  }
}

@media (max-width: 480px) {
  .vc59-container {
    padding: 0 1rem;
  }

  .vc59-games-grid {
    grid-template-columns: repeat(auto-fill, minmax(6rem, 1fr));
  }

  .vc59-game-icon {
    width: 3.5rem;
    height: 3.5rem;
  }

  .vc59-game-name {
    font-size: 1.1rem;
  }
}

/* Utility Classes */
.vc59-text-center {
  text-align: center;
}

.vc59-text-primary {
  color: var(--vc59-primary);
}

.vc59-text-secondary {
  color: var(--vc59-secondary);
}

.vc59-mb-1 {
  margin-bottom: 1rem;
}

.vc59-mb-2 {
  margin-bottom: 2rem;
}

.vc59-mt-1 {
  margin-top: 1rem;
}

.vc59-mt-2 {
  margin-top: 2rem;
}

/* Scroll to top button */
.vc59-scroll-top {
  position: fixed;
  bottom: 10rem;
  right: 2rem;
  background: var(--vc59-primary);
  color: var(--vc59-bg-dark);
  border: none;
  border-radius: 50%;
  width: 4rem;
  height: 4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 999;
}

.vc59-scroll-top.visible {
  opacity: 1;
  visibility: visible;
}

.vc59-scroll-top:hover {
  background: var(--vc59-highlight);
  transform: translateY(-2px);
}

/* Loading animation */
@keyframes vc59-fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.vc59-fade-in {
  animation: vc59-fadeIn 0.6s ease-out;
}