/* Primo Gaming CSS Styles */
/* All classes use prefix "v232-" for namespace isolation */

/* CSS Variables and Root Styles */
:root {
  --v232-primary: #BF360C;
  --v232-secondary: #1E1E1E;
  --v232-accent: #FFCC02;
  --v232-success: #32CD32;
  --v232-warning: #FFA500;
  --v232-text: #333333;
  --v232-text-light: #666666;
  --v232-bg: #FFFFFF;
  --v232-bg-alt: #F5F5F5;
  --v232-border: #E0E0E0;
  --v232-shadow: rgba(0, 0, 0, 0.1);
  --v232-shadow-hover: rgba(0, 0, 0, 0.15);

  /* Typography */
  --v232-font-size-xs: 1rem;
  --v232-font-size-sm: 1.2rem;
  --v232-font-size-base: 1.4rem;
  --v232-font-size-lg: 1.6rem;
  --v232-font-size-xl: 1.8rem;
  --v232-font-size-2xl: 2rem;
  --v232-font-size-3xl: 2.4rem;

  /* Spacing */
  --v232-spacing-xs: 0.5rem;
  --v232-spacing-sm: 1rem;
  --v232-spacing-base: 1.5rem;
  --v232-spacing-lg: 2rem;
  --v232-spacing-xl: 3rem;

  /* Border radius */
  --v232-radius-sm: 4px;
  --v232-radius-base: 8px;
  --v232-radius-lg: 12px;

  /* Z-index */
  --v232-z-header: 1000;
  --v232-z-bottom-nav: 1000;
  --v232-z-mobile-menu: 9999;
  --v232-z-overlay: 9998;
}

/* 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, Oxygen, Ubuntu, Cantarell, sans-serif;
  font-size: var(--v232-font-size-base);
  line-height: 1.5;
  color: var(--v232-text);
  background-color: var(--v232-bg);
  max-width: 430px;
  margin: 0 auto;
  overflow-x: hidden;
}

/* Typography */
.v232-h1 {
  font-size: var(--v232-font-size-3xl);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--v232-spacing-base);
  color: var(--v232-primary);
}

.v232-h2 {
  font-size: var(--v232-font-size-2xl);
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: var(--v232-spacing-sm);
  color: var(--v232-secondary);
}

.v232-h3 {
  font-size: var(--v232-font-size-xl);
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: var(--v232-spacing-sm);
  color: var(--v232-secondary);
}

.v232-text {
  font-size: var(--v232-font-size-base);
  line-height: 1.5;
  margin-bottom: var(--v232-spacing-sm);
  color: var(--v232-text);
}

.v232-text-sm {
  font-size: var(--v232-font-size-sm);
  line-height: 1.4;
  color: var(--v232-text-light);
}

/* Layout Components */
.v232-container {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 var(--v232-spacing-sm);
}

.v232-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.v232-main {
  flex: 1;
  padding-bottom: 8rem; /* Space for bottom nav */
}

.v232-grid {
  display: grid;
  gap: var(--v232-spacing-sm);
}

.v232-grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.v232-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.v232-grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

/* Header Navigation */
.v232-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--v232-z-header);
  background: linear-gradient(135deg, var(--v232-primary), var(--v232-secondary));
  box-shadow: 0 2px 10px var(--v232-shadow);
  height: 6rem;
}

.v232-header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 0 var(--v232-spacing-sm);
}

.v232-logo {
  display: flex;
  align-items: center;
  gap: var(--v232-spacing-xs);
  text-decoration: none;
  color: white;
}

.v232-logo-icon {
  width: 2.8rem;
  height: 2.8rem;
  background: var(--v232-accent);
  border-radius: var(--v232-radius-base);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: var(--v232-secondary);
}

.v232-logo-text {
  font-size: var(--v232-font-size-lg);
  font-weight: 700;
  color: white;
}

.v232-header-actions {
  display: flex;
  align-items: center;
  gap: var(--v232-spacing-xs);
}

.v232-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--v232-spacing-xs) var(--v232-spacing-sm);
  border: none;
  border-radius: var(--v232-radius-sm);
  font-size: var(--v232-font-size-sm);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  min-height: 4.4rem;
  min-width: 6rem;
}

.v232-btn-primary {
  background: var(--v232-accent);
  color: var(--v232-secondary);
}

.v232-btn-primary:hover {
  background: #FFD700;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 204, 2, 0.3);
}

.v232-btn-outline {
  background: transparent;
  color: white;
  border: 2px solid white;
}

.v232-btn-outline:hover {
  background: white;
  color: var(--v232-primary);
}

.v232-menu-toggle {
  background: none;
  border: none;
  color: white;
  font-size: 2.4rem;
  cursor: pointer;
  padding: var(--v232-spacing-xs);
  border-radius: var(--v232-radius-sm);
  transition: background 0.3s ease;
}

.v232-menu-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Mobile Menu */
.v232-mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 320px;
  height: 100vh;
  background: var(--v232-secondary);
  z-index: var(--v232-z-mobile-menu);
  transition: right 0.3s ease;
  overflow-y: auto;
}

.v232-mobile-menu.active {
  right: 0;
}

.v232-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  z-index: var(--v232-z-overlay);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.v232-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

.v232-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--v232-spacing-base);
  background: var(--v232-primary);
  color: white;
}

.v232-menu-close {
  background: none;
  border: none;
  color: white;
  font-size: 2.4rem;
  cursor: pointer;
  padding: var(--v232-spacing-xs);
}

.v232-menu-nav {
  padding: var(--v232-spacing-sm) 0;
}

.v232-menu-item {
  display: block;
  padding: var(--v232-spacing-sm) var(--v232-spacing-base);
  color: white;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: background 0.3s ease;
}

.v232-menu-item:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Carousel */
.v232-carousel {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  border-radius: var(--v232-radius-lg);
  margin: var(--v232-spacing-base) 0;
}

.v232-carousel-container {
  position: relative;
  width: 100%;
  height: 100%;
}

.v232-carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.v232-carousel-slide.active {
  opacity: 1;
}

.v232-carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.v232-carousel-controls {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 var(--v232-spacing-sm);
}

.v232-carousel-btn {
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.3s ease;
}

.v232-carousel-btn:hover {
  background: rgba(0, 0, 0, 0.7);
}

.v232-carousel-indicators {
  position: absolute;
  bottom: var(--v232-spacing-sm);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: var(--v232-spacing-xs);
}

.v232-carousel-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: background 0.3s ease;
}

.v232-carousel-indicator.active {
  background: var(--v232-accent);
}

/* Game Cards */
.v232-game-card {
  background: var(--v232-bg);
  border-radius: var(--v232-radius-base);
  overflow: hidden;
  box-shadow: 0 2px 8px var(--v232-shadow);
  transition: all 0.3s ease;
  cursor: pointer;
}

.v232-game-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--v232-shadow-hover);
}

.v232-game-image {
  width: 100%;
  height: 120px;
  object-fit: cover;
}

.v232-game-title {
  padding: var(--v232-spacing-xs);
  font-size: var(--v232-font-size-xs);
  font-weight: 600;
  text-align: center;
  color: var(--v232-text);
  background: var(--v232-bg-alt);
}

/* Content Sections */
.v232-section {
  margin: var(--v232-spacing-xl) 0;
}

.v232-section-title {
  font-size: var(--v232-font-size-2xl);
  font-weight: 700;
  color: var(--v232-primary);
  margin-bottom: var(--v232-spacing-base);
  text-align: center;
}

.v232-card {
  background: var(--v232-bg);
  border-radius: var(--v232-radius-lg);
  padding: var(--v232-spacing-base);
  box-shadow: 0 4px 16px var(--v232-shadow);
  margin-bottom: var(--v232-spacing-base);
}

.v232-card-title {
  font-size: var(--v232-font-size-xl);
  font-weight: 600;
  color: var(--v232-secondary);
  margin-bottom: var(--v232-spacing-sm);
}

/* Bottom Navigation */
.v232-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 6rem;
  background: linear-gradient(135deg, var(--v232-primary), var(--v232-secondary));
  z-index: var(--v232-z-bottom-nav);
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: var(--v232-spacing-xs) 0;
  box-shadow: 0 -2px 10px var(--v232-shadow);
}

.v232-bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 6rem;
  min-height: 5rem;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.7);
  transition: all 0.3s ease;
  border-radius: var(--v232-radius-sm);
  padding: var(--v232-spacing-xs);
}

.v232-bottom-nav-item:hover,
.v232-bottom-nav-item.active {
  color: var(--v232-accent);
  transform: scale(1.05);
}

.v232-bottom-nav-icon {
  font-size: 2.4rem;
  margin-bottom: 0.2rem;
}

.v232-bottom-nav-text {
  font-size: var(--v232-font-size-xs);
  font-weight: 500;
}

/* Footer */
.v232-footer {
  background: var(--v232-secondary);
  color: white;
  padding: var(--v232-spacing-xl) 0 var(--v232-spacing-base);
  margin-top: var(--v232-spacing-xl);
}

.v232-footer-content {
  margin-bottom: var(--v232-spacing-base);
}

.v232-footer-title {
  font-size: var(--v232-font-size-lg);
  font-weight: 600;
  margin-bottom: var(--v232-spacing-sm);
  color: var(--v232-accent);
}

.v232-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--v232-spacing-sm);
  margin-bottom: var(--v232-spacing-base);
}

.v232-footer-link {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: var(--v232-font-size-sm);
  transition: color 0.3s ease;
}

.v232-footer-link:hover {
  color: var(--v232-accent);
}

.v232-partners {
  display: flex;
  flex-wrap: wrap;
  gap: var(--v232-spacing-sm);
  justify-content: center;
  margin: var(--v232-spacing-base) 0;
}

.v232-partner-icon {
  width: 3.2rem;
  height: 3.2rem;
  object-fit: contain;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.v232-partner-icon:hover {
  opacity: 1;
}

.v232-copyright {
  text-align: center;
  font-size: var(--v232-font-size-xs);
  color: rgba(255, 255, 255, 0.6);
  margin-top: var(--v232-spacing-base);
  padding-top: var(--v232-spacing-base);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Affiliate Links */
.v232-affiliate-link {
  color: var(--v232-primary);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s ease;
}

.v232-affiliate-link:hover {
  color: var(--v232-warning);
}

.v232-affiliate-btn {
  background: linear-gradient(135deg, var(--v232-primary), var(--v232-warning));
  color: white;
  border: none;
  padding: var(--v232-spacing-sm) var(--v232-spacing-base);
  border-radius: var(--v232-radius-base);
  font-size: var(--v232-font-size-base);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: var(--v232-spacing-xs);
}

.v232-affiliate-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(191, 54, 12, 0.3);
}

/* Scroll to Top */
.v232-scroll-top {
  position: fixed;
  bottom: 8rem;
  right: var(--v232-spacing-sm);
  background: var(--v232-primary);
  color: white;
  border: none;
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: var(--v232-z-bottom-nav);
}

.v232-scroll-top.visible {
  opacity: 1;
  visibility: visible;
}

.v232-scroll-top:hover {
  background: var(--v232-warning);
  transform: scale(1.1);
}

/* Responsive Design */
@media (max-width: 768px) {
  .v232-main {
    padding-bottom: 8rem;
  }

  .v232-bottom-nav {
    display: flex;
  }
}

@media (min-width: 769px) {
  .v232-bottom-nav {
    display: none;
  }

  .v232-main {
    padding-bottom: 0;
  }
}

/* Utility Classes */
.v232-text-center {
  text-align: center;
}

.v232-text-primary {
  color: var(--v232-primary);
}

.v232-text-accent {
  color: var(--v232-accent);
}

.v232-bg-primary {
  background-color: var(--v232-primary);
}

.v232-bg-secondary {
  background-color: var(--v232-secondary);
}

.v232-mb-sm {
  margin-bottom: var(--v232-spacing-sm);
}

.v232-mb-base {
  margin-bottom: var(--v232-spacing-base);
}

.v232-mb-lg {
  margin-bottom: var(--v232-spacing-lg);
}

.v232-mt-sm {
  margin-top: var(--v232-spacing-sm);
}

.v232-mt-base {
  margin-top: var(--v232-spacing-base);
}

.v232-mt-lg {
  margin-top: var(--v232-spacing-lg);
}

/* Loading Animation */
.v232-loading {
  display: inline-block;
  width: 2rem;
  height: 2rem;
  border: 2px solid var(--v232-border);
  border-top: 2px solid var(--v232-primary);
  border-radius: 50%;
  animation: v232-spin 1s linear infinite;
}

@keyframes v232-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}