/* OG777 Stylesheet - Dark Crimson Theme */
/* All classes use pg86- prefix for namespace isolation */

:root {
  --pg86-primary-dark: #0F0F23;
  --pg86-primary-red: #8B0000;
  --pg86-secondary-dark: #2C3E50;
  --pg86-accent-cyan: #008B8B;
  --pg86-light-gray: #BDC3C7;
  --pg86-text-primary: #E8E8E8;
  --pg86-text-secondary: #B0B0B0;
  --pg86-border: #404060;
  --pg86-hover: #A00000;
  --pg86-success: #27AE60;
  --pg86-warning: #E67E22;
  --pg86-danger: #E74C3C;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background-color: var(--pg86-primary-dark);
  color: var(--pg86-text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ===== HEADER STYLES ===== */

.pg86-header {
  background: linear-gradient(135deg, var(--pg86-primary-dark) 0%, var(--pg86-secondary-dark) 100%);
  border-bottom: 2px solid var(--pg86-primary-red);
  padding: 12px 16px;
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.pg86-header-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 20px;
  color: var(--pg86-primary-red);
  text-decoration: none;
  transition: transform 0.2s ease;
}

.pg86-header-logo:hover {
  transform: scale(1.05);
}

.pg86-logo-icon {
  width: 28px;
  height: 28px;
  background: var(--pg86-primary-red);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 16px;
}

.pg86-header-controls {
  display: flex;
  gap: 12px;
  align-items: center;
}

.pg86-btn {
  padding: 8px 16px;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
}

.pg86-btn-primary {
  background-color: var(--pg86-primary-red);
  color: white;
  border: 1px solid var(--pg86-primary-red);
}

.pg86-btn-primary:hover {
  background-color: var(--pg86-hover);
  border-color: var(--pg86-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(139, 0, 0, 0.3);
}

.pg86-btn-secondary {
  background-color: transparent;
  color: var(--pg86-light-gray);
  border: 1px solid var(--pg86-border);
}

.pg86-btn-secondary:hover {
  background-color: var(--pg86-secondary-dark);
  border-color: var(--pg86-primary-red);
  color: var(--pg86-primary-red);
}

.pg86-menu-toggle {
  background: none;
  border: none;
  color: var(--pg86-light-gray);
  font-size: 24px;
  cursor: pointer;
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  transition: color 0.3s ease;
}

.pg86-menu-toggle:hover {
  color: var(--pg86-primary-red);
}

.pg86-menu-toggle.pg86-active {
  color: var(--pg86-primary-red);
}

/* ===== NAVIGATION MENU ===== */

.pg86-nav {
  display: flex;
  gap: 8px;
}

.pg86-nav-item {
  padding: 8px 12px;
  background-color: transparent;
  border: none;
  color: var(--pg86-text-secondary);
  cursor: pointer;
  font-size: 13px;
  border-radius: 4px;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.pg86-nav-item:hover {
  background-color: var(--pg86-secondary-dark);
  color: var(--pg86-primary-red);
}

/* Mobile Menu */
.pg86-mobile-menu {
  position: fixed;
  top: 60px;
  left: 0;
  width: 100%;
  background: var(--pg86-secondary-dark);
  border-bottom: 2px solid var(--pg86-primary-red);
  max-height: 0;
  overflow: hidden;
  z-index: 999;
  transition: max-height 0.3s ease;
}

.pg86-mobile-menu.pg86-active {
  max-height: 500px;
}

.pg86-menu-list {
  display: flex;
  flex-direction: column;
  list-style: none;
  padding: 12px 0;
}

.pg86-menu-list li {
  border-bottom: 1px solid var(--pg86-border);
}

.pg86-menu-list a {
  display: block;
  padding: 12px 16px;
  color: var(--pg86-text-secondary);
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 14px;
}

.pg86-menu-list a:hover {
  background-color: var(--pg86-primary-dark);
  color: var(--pg86-primary-red);
  padding-left: 20px;
}

/* ===== MAIN CONTENT ===== */

main {
  flex: 1;
  max-width: 100%;
}

.pg86-container {
  max-width: 430px;
  margin: 0 auto;
  padding: 0 16px;
}

.pg86-full-container {
  width: 100%;
  max-width: 100%;
  padding: 0;
}

/* ===== CAROUSEL STYLES ===== */

.pg86-carousel {
  position: relative;
  width: 100%;
  margin-bottom: 20px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--pg86-secondary-dark);
}

.pg86-carousel-slides {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  background: var(--pg86-border);
}

.pg86-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.pg86-slide.pg86-active {
  opacity: 1;
}

.pg86-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pg86-carousel-controls {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.pg86-carousel-control {
  background: rgba(255, 255, 255, 0.4);
  border: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 16px;
  transition: all 0.3s ease;
}

.pg86-carousel-control:hover {
  background: rgba(139, 0, 0, 0.8);
}

.pg86-carousel-indicators {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 11;
}

.pg86-carousel-indicator {
  width: 8px;
  height: 8px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
}

.pg86-carousel-indicator.pg86-active {
  background: var(--pg86-primary-red);
  width: 24px;
  border-radius: 4px;
}

/* ===== SECTION STYLES ===== */

.pg86-section {
  padding: 24px 0;
  border-bottom: 1px solid var(--pg86-border);
}

.pg86-section-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--pg86-text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.pg86-section-title::before {
  content: '';
  width: 4px;
  height: 24px;
  background: var(--pg86-primary-red);
  border-radius: 2px;
}

.pg86-section-subtitle {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--pg86-accent-cyan);
}

.pg86-section-description {
  font-size: 14px;
  color: var(--pg86-text-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
}

/* ===== GAME GRID ===== */

.pg86-game-category {
  margin-bottom: 20px;
}

.pg86-category-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  background: linear-gradient(90deg, var(--pg86-secondary-dark), transparent);
  border-left: 3px solid var(--pg86-accent-cyan);
  margin-bottom: 12px;
  border-radius: 4px;
  cursor: pointer;
  user-select: none;
  transition: all 0.3s ease;
}

.pg86-category-header:hover {
  background: linear-gradient(90deg, var(--pg86-secondary-dark), var(--pg86-border));
  border-left-color: var(--pg86-primary-red);
}

.pg86-category-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--pg86-text-primary);
  text-transform: capitalize;
}

.pg86-category-toggle {
  background: none;
  border: none;
  color: var(--pg86-light-gray);
  font-size: 18px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.pg86-category-toggle.pg86-expanded {
  transform: rotate(180deg);
}

.pg86-games-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.pg86-game-card {
  display: flex;
  flex-direction: column;
  background: linear-gradient(135deg, var(--pg86-secondary-dark), var(--pg86-primary-dark));
  border: 1px solid var(--pg86-border);
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  color: inherit;
}

.pg86-game-card:active,
.pg86-game-card:hover {
  transform: translateY(-4px);
  border-color: var(--pg86-primary-red);
  box-shadow: 0 8px 16px rgba(139, 0, 0, 0.2);
}

.pg86-game-image {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: var(--pg86-border);
  display: block;
}

.pg86-game-info {
  padding: 12px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.pg86-game-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--pg86-text-primary);
  line-height: 1.4;
  margin-bottom: 6px;
}

.pg86-game-type {
  font-size: 11px;
  color: var(--pg86-accent-cyan);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ===== FEATURE CARDS ===== */

.pg86-feature-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: 16px;
}

.pg86-feature-card {
  background: linear-gradient(135deg, var(--pg86-secondary-dark), var(--pg86-primary-dark));
  border-left: 3px solid var(--pg86-primary-red);
  padding: 12px 16px;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.pg86-feature-card:hover {
  border-left-color: var(--pg86-accent-cyan);
  background: linear-gradient(135deg, rgba(139, 0, 0, 0.1), transparent);
}

.pg86-feature-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--pg86-text-primary);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.pg86-feature-description {
  font-size: 13px;
  color: var(--pg86-text-secondary);
  line-height: 1.5;
}

.pg86-feature-icon {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--pg86-primary-red);
  font-size: 14px;
}

/* ===== FOOTER STYLES ===== */

.pg86-footer {
  background: linear-gradient(135deg, var(--pg86-primary-dark) 0%, var(--pg86-secondary-dark) 100%);
  border-top: 2px solid var(--pg86-primary-red);
  padding: 24px 16px;
  margin-top: 40px;
}

.pg86-footer-section {
  margin-bottom: 20px;
}

.pg86-footer-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--pg86-text-primary);
}

.pg86-footer-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.pg86-footer-link {
  display: block;
  padding: 8px 0;
  color: var(--pg86-text-secondary);
  text-decoration: none;
  font-size: 13px;
  transition: color 0.3s ease;
}

.pg86-footer-link:hover {
  color: var(--pg86-primary-red);
}

.pg86-partners-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.pg86-partner-icon {
  width: 100%;
  aspect-ratio: 1;
  background: var(--pg86-border);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: all 0.3s ease;
}

.pg86-partner-icon:hover {
  background: var(--pg86-secondary-dark);
  border: 1px solid var(--pg86-primary-red);
}

.pg86-partner-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 4px;
}

.pg86-footer-copyright {
  padding: 16px 0;
  border-top: 1px solid var(--pg86-border);
  font-size: 12px;
  color: var(--pg86-text-secondary);
  text-align: center;
}

/* ===== BOTTOM NAVIGATION (Mobile Only) ===== */

.pg86-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(180deg, var(--pg86-secondary-dark), var(--pg86-primary-dark));
  border-top: 2px solid var(--pg86-primary-red);
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 64px;
  z-index: 1000;
  padding: 0 8px;
}

.pg86-bottom-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 60px;
  cursor: pointer;
  transition: all 0.3s ease;
  color: var(--pg86-text-secondary);
  text-decoration: none;
  border-radius: 8px;
}

.pg86-bottom-nav-item:active,
.pg86-bottom-nav-item:hover {
  color: var(--pg86-primary-red);
  background: rgba(139, 0, 0, 0.1);
}

.pg86-bottom-nav-item.pg86-active {
  color: var(--pg86-primary-red);
  background: rgba(139, 0, 0, 0.15);
}

.pg86-bottom-nav-icon {
  font-size: 24px;
  line-height: 1;
}

.pg86-bottom-nav-label {
  font-size: 10px;
  font-weight: 600;
  text-align: center;
  line-height: 1.2;
  max-width: 60px;
  word-wrap: break-word;
}

/* ===== RESPONSIVE DESIGN ===== */

@media (max-width: 768px) {
  .pg86-header-controls {
    gap: 8px;
  }

  .pg86-btn {
    padding: 8px 12px;
    font-size: 13px;
  }

  .pg86-menu-toggle {
    display: flex;
  }

  .pg86-nav {
    display: none;
  }

  main {
    padding-bottom: 80px;
  }

  .pg86-games-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pg86-section {
    padding: 16px 0;
  }

  .pg86-section-title {
    font-size: 20px;
  }
}

@media (min-width: 769px) {
  .pg86-bottom-nav {
    display: none;
  }

  .pg86-menu-toggle {
    display: none;
  }

  .pg86-mobile-menu {
    display: none;
  }

  .pg86-nav {
    display: flex;
  }

  main {
    padding-bottom: 0;
  }

  .pg86-header-controls {
    gap: 16px;
  }

  .pg86-btn {
    padding: 10px 20px;
    font-size: 14px;
  }

  .pg86-games-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .pg86-container {
    max-width: 1200px;
  }

  .pg86-feature-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  html {
    font-size: 14px;
  }

  .pg86-header {
    padding: 10px 12px;
  }

  .pg86-btn {
    padding: 6px 10px;
    font-size: 12px;
  }

  .pg86-section-title {
    font-size: 18px;
  }

  .pg86-games-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .pg86-footer-links {
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
  }
}

/* ===== UTILITY CLASSES ===== */

.pg86-hidden {
  display: none !important;
}

.pg86-text-center {
  text-align: center;
}

.pg86-text-left {
  text-align: left;
}

.pg86-text-right {
  text-align: right;
}

.pg86-mt-2 {
  margin-top: 12px;
}

.pg86-mb-2 {
  margin-bottom: 12px;
}

.pg86-mt-3 {
  margin-top: 16px;
}

.pg86-mb-3 {
  margin-bottom: 16px;
}

.pg86-flex {
  display: flex;
}

.pg86-flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.pg86-gap-2 {
  gap: 12px;
}

.pg86-expanded {
  max-height: 1000px;
  opacity: 1;
}

.pg86-collapsed {
  max-height: 0;
  opacity: 0;
}

.pg86-tooltip {
  position: fixed;
  background: var(--pg86-secondary-dark);
  color: var(--pg86-text-primary);
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 12px;
  border: 1px solid var(--pg86-border);
  white-space: nowrap;
  z-index: 10000;
  pointer-events: none;
}
