/**
 * JL111 PH - Main CSS Stylesheet
 * All classes use ui3c- prefix for namespace isolation
 * Color palette: #333333 (dark), #F08080, #FFB6C1 (light)
 */

/* CSS Variables */
:root {
  --ui3c-primary: #F08080;
  --ui3c-secondary: #FFB6C1;
  --ui3c-dark: #333333;
  --ui3c-darker: #1a1a1a;
  --ui3c-light: #ffffff;
  --ui3c-text: #f5f5f5;
  --ui3c-text-muted: #b0b0b0;
  --ui3c-gradient: linear-gradient(135deg, #F08080 0%, #FFB6C1 100%);
}

/* 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, 'Helvetica Neue', Arial, sans-serif;
  font-size: 1.4rem;
  line-height: 1.5;
  color: var(--ui3c-text);
  background-color: var(--ui3c-dark);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Container */
.ui3c-container {
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1rem;
  background-color: var(--ui3c-darker);
  min-height: 100vh;
}

/* Header */
.ui3c-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: var(--ui3c-darker);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}

.ui3c-header-hidden {
  transform: translateY(-100%);
}

.ui3c-header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 1rem;
  max-width: 430px;
  margin: 0 auto;
}

.ui3c-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--ui3c-primary);
  font-size: 1.8rem;
  font-weight: bold;
}

.ui3c-logo img {
  width: 32px;
  height: 32px;
  border-radius: 4px;
}

.ui3c-header-buttons {
  display: flex;
  gap: 0.5rem;
}

.ui3c-btn {
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 4px;
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

.ui3c-btn-primary {
  background: var(--ui3c-gradient);
  color: var(--ui3c-light);
}

.ui3c-btn-secondary {
  background-color: transparent;
  color: var(--ui3c-secondary);
  border: 2px solid var(--ui3c-secondary);
}

.ui3c-btn:hover,
.ui3c-btn:active {
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(240, 128, 128, 0.4);
}

.ui3c-menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  padding: 0.5rem;
}

.ui3c-menu-toggle span {
  width: 24px;
  height: 2px;
  background-color: var(--ui3c-primary);
  transition: all 0.3s ease;
}

/* Mobile Menu Overlay */
.ui3c-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.ui3c-overlay-show {
  opacity: 1;
  visibility: visible;
}

/* Mobile Menu */
.ui3c-mobile-menu {
  position: fixed;
  top: 0;
  right: -280px;
  width: 280px;
  height: 100vh;
  background-color: var(--ui3c-darker);
  z-index: 9999;
  transition: right 0.3s ease;
  overflow-y: auto;
  box-shadow: -2px 0 10px rgba(0, 0, 0, 0.5);
}

.ui3c-menu-open {
  right: 0;
}

.ui3c-menu-header {
  padding: 1.5rem;
  border-bottom: 1px solid rgba(240, 128, 128, 0.2);
}

.ui3c-menu-close {
  font-size: 2rem;
  color: var(--ui3c-primary);
  cursor: pointer;
  background: none;
  border: none;
}

.ui3c-menu-list {
  list-style: none;
  padding: 1rem 0;
}

.ui3c-menu-item {
  border-bottom: 1px solid rgba(240, 128, 128, 0.1);
}

.ui3c-menu-link {
  display: block;
  padding: 1rem 1.5rem;
  color: var(--ui3c-text);
  text-decoration: none;
  transition: all 0.3s ease;
}

.ui3c-menu-link:hover {
  background-color: rgba(240, 128, 128, 0.1);
  color: var(--ui3c-primary);
  padding-left: 2rem;
}

/* Main Content */
.ui3c-main {
  padding-top: 60px;
  padding-bottom: 80px;
}

/* Carousel */
.ui3c-carousel {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  margin-bottom: 2rem;
  border-radius: 8px;
}

.ui3c-carousel-slides {
  display: flex;
  height: 100%;
  transition: transform 0.5s ease;
}

.ui3c-carousel-slide {
  min-width: 100%;
  height: 100%;
  display: none;
}

.ui3c-slide-active {
  display: block;
}

.ui3c-carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ui3c-carousel-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}

.ui3c-carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
}

.ui3c-dot-active {
  background-color: var(--ui3c-primary);
  transform: scale(1.2);
}

/* H1 Title */
.ui3c-title {
  font-size: 2rem;
  font-weight: bold;
  color: var(--ui3c-primary);
  margin-bottom: 1.5rem;
  text-align: center;
}

/* Section */
.ui3c-section {
  padding: 2rem 0;
  border-bottom: 1px solid rgba(240, 128, 128, 0.2);
}

.ui3c-section-title {
  font-size: 1.6rem;
  font-weight: bold;
  color: var(--ui3c-secondary);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Game Grid */
.ui3c-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
  margin-bottom: 1.5rem;
}

.ui3c-game-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: var(--ui3c-text);
  transition: transform 0.3s ease;
}

.ui3c-game-item:hover {
  transform: scale(1.1);
}

.ui3c-game-icon {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 0.3rem;
  background-color: var(--ui3c-dark);
}

.ui3c-game-name {
  font-size: 1rem;
  text-align: center;
  line-height: 1.2;
  color: var(--ui3c-text-muted);
}

/* Content Modules */
.ui3c-card {
  background-color: rgba(51, 51, 51, 0.5);
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(240, 128, 128, 0.2);
}

.ui3c-card-title {
  font-size: 1.4rem;
  font-weight: bold;
  color: var(--ui3c-primary);
  margin-bottom: 1rem;
}

.ui3c-card-content {
  font-size: 1.3rem;
  line-height: 1.6;
  color: var(--ui3c-text);
}

.ui3c-card-content p {
  margin-bottom: 1rem;
}

/* Affiliate Links */
.ui3c-affiliate-link {
  color: var(--ui3c-primary);
  font-weight: bold;
  text-decoration: none;
  border-bottom: 2px solid var(--ui3c-primary);
  transition: all 0.3s ease;
  cursor: pointer;
}

.ui3c-affiliate-link:hover {
  color: var(--ui3c-secondary);
  border-color: var(--ui3c-secondary);
}

/* Footer */
.ui3c-footer {
  background-color: var(--ui3c-darker);
  padding: 2rem 1rem 80px;
  border-top: 1px solid rgba(240, 128, 128, 0.2);
}

.ui3c-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 1.5rem;
  justify-content: center;
}

.ui3c-footer-link {
  color: var(--ui3c-text-muted);
  text-decoration: none;
  font-size: 1.2rem;
  transition: color 0.3s ease;
}

.ui3c-footer-link:hover {
  color: var(--ui3c-primary);
}

.ui3c-partners {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.ui3c-partner-logo {
  height: 30px;
  width: auto;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.ui3c-partner-logo:hover {
  opacity: 1;
}

.ui3c-copyright {
  text-align: center;
  color: var(--ui3c-text-muted);
  font-size: 1.1rem;
}

/* Bottom Navigation (Mobile) */
.ui3c-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: var(--ui3c-darker);
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
  display: flex;
  justify-content: space-around;
  padding: 0.5rem 0;
}

.ui3c-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 60px;
  min-height: 60px;
  justify-content: center;
  text-decoration: none;
  color: var(--ui3c-text-muted);
  transition: all 0.3s ease;
  cursor: pointer;
}

.ui3c-nav-item:hover,
.ui3c-nav-item.ui3c-active {
  color: var(--ui3c-primary);
  transform: scale(1.1);
}

.ui3c-nav-icon {
  font-size: 24px;
  margin-bottom: 4px;
}

.ui3c-nav-label {
  font-size: 10px;
  font-weight: 500;
}

/* Hide bottom nav on desktop */
@media (min-width: 769px) {
  .ui3c-bottom-nav {
    display: none;
  }

  .ui3c-main {
    padding-bottom: 2rem;
  }
}

/* Touch feedback */
.ui3c-touch-active {
  transform: scale(0.95);
}

/* Utility classes */
.ui3c-text-center {
  text-align: center;
}

.ui3c-mt-1 {
  margin-top: 1rem;
}

.ui3c-mb-1 {
  margin-bottom: 1rem;
}

.ui3c-mb-2 {
  margin-bottom: 2rem;
}
