/**
 * pg slot gen10 - Core Stylesheet
 * All classes use ui4f- prefix for namespace isolation
 */

/* CSS Variables */
:root {
  --ui4f-primary: #DEB887;
  --ui4f-primary-dark: #C9A56F;
  --ui4f-secondary: #A9A9A9;
  --ui4f-bg-dark: #0F0F23;
  --ui4f-bg-light: #F8F8FF;
  --ui4f-bg-warm: #FDF5E6;
  --ui4f-text-dark: #0F0F23;
  --ui4f-text-light: #F8F8FF;
  --ui4f-text-gray: #A9A9A9;
  --ui4f-white: #FFFFFF;
  --ui4f-black: #000000;
  --ui4f-shadow: rgba(15, 15, 35, 0.15);
  --ui4f-gradient: linear-gradient(135deg, #DEB887 0%, #C9A56F 100%);
  --ui4f-header-height: 60px;
  --ui4f-bottom-nav-height: 60px;
}

/* Reset & 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.6rem;
  line-height: 1.5;
  color: var(--ui4f-text-dark);
  background-color: var(--ui4f-bg-light);
  min-width: 320px;
  max-width: 430px;
  margin: 0 auto;
  overflow-x: hidden;
}

/* Container */
.ui4f-container {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header */
.ui4f-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  max-width: 430px;
  margin: 0 auto;
  height: var(--ui4f-header-height);
  background-color: var(--ui4f-bg-dark);
  box-shadow: 0 2px 10px var(--ui4f-shadow);
  z-index: 1000;
  transition: all 0.3s ease;
}

.ui4f-header-scrolled {
  box-shadow: 0 4px 20px rgba(15, 15, 35, 0.25);
}

.ui4f-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 0 1rem;
}

.ui4f-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--ui4f-text-light);
}

.ui4f-logo-img {
  width: 32px;
  height: 32px;
  margin-right: 0.8rem;
}

.ui4f-logo-text {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--ui4f-primary);
}

.ui4f-header-actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.ui4f-btn {
  padding: 0.6rem 1.2rem;
  font-size: 1.2rem;
  font-weight: 600;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

.ui4f-btn-outline {
  background: transparent;
  color: var(--ui4f-primary);
  border: 2px solid var(--ui4f-primary);
}

.ui4f-btn-outline:hover {
  background: var(--ui4f-primary);
  color: var(--ui4f-bg-dark);
}

.ui4f-btn-primary {
  background: var(--ui4f-gradient);
  color: var(--ui4f-bg-dark);
}

.ui4f-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(222, 184, 135, 0.4);
}

.ui4f-menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  color: var(--ui4f-text-light);
  font-size: 1.8rem;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.ui4f-menu-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Mobile Menu */
.ui4f-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 15, 35, 0.7);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.ui4f-overlay-active {
  opacity: 1;
  visibility: visible;
}

.ui4f-mobile-menu {
  position: fixed;
  top: 0;
  right: -280px;
  width: 280px;
  max-width: 85vw;
  height: 100vh;
  background: var(--ui4f-bg-dark);
  z-index: 9999;
  padding: 2rem 0;
  transition: right 0.3s ease;
  overflow-y: auto;
}

.ui4f-menu-open {
  right: 0;
}

.ui4f-menu-header {
  padding: 0 1.5rem 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.ui4f-menu-close {
  font-size: 2rem;
  color: var(--ui4f-text-light);
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.ui4f-menu-nav {
  padding: 1.5rem;
}

.ui4f-menu-link {
  display: block;
  padding: 1rem 0;
  color: var(--ui4f-text-light);
  text-decoration: none;
  font-size: 1.4rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
}

.ui4f-menu-link:hover {
  color: var(--ui4f-primary);
  padding-left: 0.5rem;
}

/* Main Content */
main {
  margin-top: var(--ui4f-header-height);
  padding-bottom: var(--ui4f-bottom-nav-height);
  min-height: calc(100vh - var(--ui4f-header-height) - var(--ui4f-bottom-nav-height));
}

/* Sections */
.ui4f-section {
  padding: 2rem 0;
}

.ui4f-section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--ui4f-text-dark);
  margin-bottom: 1.5rem;
  text-align: center;
}

.ui4f-section-title span {
  color: var(--ui4f-primary-dark);
}

/* Cards */
.ui4f-card {
  background: var(--ui4f-white);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 15px var(--ui4f-shadow);
  transition: all 0.3s ease;
}

.ui4f-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(15, 15, 35, 0.2);
}

/* Grid */
.ui4f-grid {
  display: grid;
  gap: 1rem;
}

.ui4f-grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.ui4f-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.ui4f-grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

/* Game Grid */
.ui4f-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
  padding: 1rem 0;
}

.ui4f-game-item {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 8px;
  cursor: pointer;
  background: var(--ui4f-bg-dark);
  transition: all 0.3s ease;
}

.ui4f-game-item:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(222, 184, 135, 0.3);
}

.ui4f-game-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ui4f-game-name {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(15, 15, 35, 0.9));
  color: var(--ui4f-text-light);
  font-size: 1rem;
  font-weight: 600;
  padding: 1rem 0.5rem 0.5rem;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Banner Slider */
.ui4f-banner {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  border-radius: 12px;
  margin-bottom: 2rem;
}

.ui4f-banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
}

.ui4f-banner-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(15, 15, 35, 0.8));
  padding: 2rem 1.5rem 1.5rem;
  color: var(--ui4f-text-light);
}

.ui4f-banner-title {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.ui4f-banner-desc {
  font-size: 1.2rem;
  opacity: 0.9;
}

/* Bottom Navigation */
.ui4f-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  max-width: 430px;
  margin: 0 auto;
  height: var(--ui4f-bottom-nav-height);
  background: var(--ui4f-bg-dark);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  border-top: 2px solid var(--ui4f-primary-dark);
  box-shadow: 0 -2px 10px var(--ui4f-shadow);
}

.ui4f-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 60px;
  text-decoration: none;
  color: var(--ui4f-secondary);
  transition: all 0.3s ease;
  cursor: pointer;
  padding: 0.5rem 0;
}

.ui4f-nav-item:hover {
  color: var(--ui4f-primary);
  transform: scale(1.1);
}

.ui4f-nav-item.ui4f-active {
  color: var(--ui4f-primary);
}

.ui4f-nav-icon {
  font-size: 24px;
  margin-bottom: 0.3rem;
}

.ui4f-nav-text {
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
}

/* Footer */
.ui4f-footer {
  background: var(--ui4f-bg-dark);
  color: var(--ui4f-text-light);
  padding: 3rem 0 2rem;
  text-align: center;
}

.ui4f-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.ui4f-footer-link {
  color: var(--ui4f-primary);
  text-decoration: none;
  font-size: 1.3rem;
  transition: all 0.3s ease;
}

.ui4f-footer-link:hover {
  color: var(--ui4f-white);
  text-decoration: underline;
}

.ui4f-partners {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
  padding: 0 1rem;
}

.ui4f-partner-img {
  width: 50px;
  height: 50px;
  object-fit: contain;
  opacity: 0.7;
  transition: all 0.3s ease;
}

.ui4f-partner-img:hover {
  opacity: 1;
  transform: scale(1.1);
}

.ui4f-copyright {
  font-size: 1.2rem;
  color: var(--ui4f-text-gray);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
}

/* Responsive */
@media (min-width: 769px) {
  .ui4f-bottom-nav {
    display: none;
  }

  main {
    padding-bottom: 2rem;
  }
}

/* Text Styles */
.ui4f-text-center {
  text-align: center;
}

.ui4f-text-primary {
  color: var(--ui4f-primary-dark);
}

.ui4f-text-bold {
  font-weight: 700;
}

/* Utility Classes */
.ui4f-mt-1 { margin-top: 1rem; }
.ui4f-mt-2 { margin-top: 2rem; }
.ui4f-mb-1 { margin-bottom: 1rem; }
.ui4f-mb-2 { margin-bottom: 2rem; }

.ui4f-p-1 { padding: 1rem; }
.ui4f-p-2 { padding: 2rem; }
