/* 3jl ph - Main CSS Stylesheet */
/* All classes use uida- prefix for namespace isolation */

/* CSS Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 62.5%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 1.4rem;
  line-height: 1.5;
  color: #E9ECEF;
  background-color: #0D1117;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  text-decoration: none;
  color: #26A69A;
  transition: color 0.3s ease;
}

a:hover {
  color: #B2DFDB;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* CSS Variables */
:root {
  --uida-primary: #26A69A;
  --uida-secondary: #00695C;
  --uida-accent: #CD5C5C;
  --uida-light: #E9ECEF;
  --uada-light-accent: #B2DFDB;
  --uada-dark: #0D1117;
  --uada-dark-alt: #161b22;
}

/* Container */
.uida-container {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header */
.uida-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, #00695C 0%, #26A69A 100%);
  padding: 0.8rem 1rem;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.uida-header-inner {
  max-width: 430px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

.uida-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.6rem;
  font-weight: 700;
  color: #E9ECEF;
  flex-shrink: 0;
}

.uida-logo-icon {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.uida-header-buttons {
  display: flex;
  gap: 0.6rem;
  flex-shrink: 0;
}

.uida-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1.2rem;
  font-size: 1.3rem;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  white-space: nowrap;
}

.uida-btn-primary {
  background: linear-gradient(135deg, #CD5C5C 0%, #e57373 100%);
  color: #E9ECEF;
  box-shadow: 0 2px 6px rgba(205, 92, 92, 0.4);
}

.uida-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(205, 92, 92, 0.5);
}

.uida-btn-secondary {
  background: linear-gradient(135deg, #26A69A 0%, #B2DFDB 100%);
  color: #0D1117;
  box-shadow: 0 2px 6px rgba(38, 166, 154, 0.4);
}

.uida-btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(38, 166, 154, 0.5);
}

.uida-menu-toggle {
  background: none;
  border: none;
  color: #E9ECEF;
  font-size: 2rem;
  cursor: pointer;
  padding: 0.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Mobile Menu */
.uida-mobile-menu {
  position: fixed;
  top: 56px;
  left: 0;
  right: 0;
  background: #161b22;
  padding: 1rem;
  z-index: 999;
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  max-width: 430px;
  margin: 0 auto;
}

.uida-menu-active {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.uida-menu-link {
  display: block;
  padding: 0.8rem 1rem;
  color: #E9ECEF;
  font-size: 1.4rem;
  border-bottom: 1px solid rgba(38, 166, 154, 0.2);
  transition: all 0.2s ease;
}

.uida-menu-link:hover {
  background: rgba(38, 166, 154, 0.1);
  color: #26A69A;
  padding-left: 1.5rem;
}

.uida-menu-link:last-child {
  border-bottom: none;
}

/* Main Content */
.uida-main {
  padding-top: 70px;
  padding-bottom: 80px;
  min-height: 100vh;
}

/* Hero Section */
.uida-hero {
  padding: 1.5rem 0;
  background: linear-gradient(135deg, #0D1117 0%, #161b22 100%);
}

.uida-hero h1 {
  font-size: 2rem;
  font-weight: 700;
  color: #26A69A;
  text-align: center;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.uida-hero-subtitle {
  font-size: 1.4rem;
  color: #B2DFDB;
  text-align: center;
  margin-bottom: 1.5rem;
}

/* Carousel */
.uida-carousel {
  position: relative;
  margin: 1.5rem 0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.uida-carousel-slide {
  display: none;
  width: 100%;
}

.uida-slide-active {
  display: block;
}

.uida-carousel img {
  width: 100%;
  height: auto;
  display: block;
}

.uida-carousel-indicators {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.6rem;
}

.uida-carousel-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(233, 236, 239, 0.4);
  cursor: pointer;
  transition: all 0.3s ease;
}

.uida-indicator-active {
  background: #26A69A;
  transform: scale(1.2);
}

/* Section Styles */
.uida-section {
  padding: 2rem 0;
  border-bottom: 1px solid rgba(38, 166, 154, 0.1);
}

.uida-section-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: #26A69A;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.uida-section-title i {
  color: #CD5C5C;
}

/* Game Grid */
.uida-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
  margin: 1.5rem 0;
}

.uida-game-card {
  background: #161b22;
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.uida-game-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 14px rgba(38, 166, 154, 0.3);
}

.uida-game-image {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: #0D1117;
}

.uida-game-name {
  padding: 0.6rem 0.4rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: #E9ECEF;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.uida-category-section {
  margin-bottom: 2rem;
}

.uida-category-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: #B2DFDB;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.uida-category-title i {
  color: #26A69A;
}

/* Feature Card */
.uida-feature-card {
  background: linear-gradient(135deg, #161b22 0%, #0D1117 100%);
  padding: 1.5rem;
  border-radius: 10px;
  margin-bottom: 1rem;
  border: 1px solid rgba(38, 166, 154, 0.2);
  transition: all 0.3s ease;
}

.uida-feature-card:hover {
  border-color: #26A69A;
  transform: translateX(4px);
}

.uida-feature-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: #26A69A;
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.uida-feature-text {
  font-size: 1.4rem;
  color: #E9ECEF;
  line-height: 1.6;
}

/* FAQ Styles */
.uida-faq-item {
  background: #161b22;
  border-radius: 8px;
  margin-bottom: 1rem;
  overflow: hidden;
  transition: all 0.3s ease;
}

.uida-faq-question {
  padding: 1.2rem;
  font-size: 1.5rem;
  font-weight: 600;
  color: #E9ECEF;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, rgba(38, 166, 154, 0.1) 0%, rgba(0, 105, 92, 0.1) 100%);
}

.uida-faq-question i {
  color: #26A69A;
  transition: transform 0.3s ease;
}

.uida-faq-active .uida-faq-question i {
  transform: rotate(180deg);
}

.uida-faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background: #0D1117;
}

.uida-faq-active .uida-faq-answer {
  max-height: 500px;
}

.uida-faq-content {
  padding: 1.2rem;
  font-size: 1.4rem;
  color: #E9ECEF;
  line-height: 1.6;
}

/* Promotional Links */
.uida-promo-link {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  background: linear-gradient(135deg, #CD5C5C 0%, #e57373 100%);
  color: #E9ECEF;
  font-weight: 600;
  border-radius: 6px;
  font-size: 1.3rem;
  margin: 0.3rem;
  box-shadow: 0 2px 6px rgba(205, 92, 92, 0.3);
  transition: all 0.3s ease;
}

.uida-promo-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(205, 92, 92, 0.5);
}

/* Footer */
.uida-footer {
  background: #161b22;
  padding: 2rem 0 1rem;
  margin-top: 2rem;
  border-top: 2px solid rgba(38, 166, 154, 0.3);
}

.uida-footer-content {
  margin-bottom: 1.5rem;
}

.uida-footer-description {
  font-size: 1.3rem;
  color: #B2DFDB;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.uida-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}

.uida-footer-link {
  padding: 0.5rem 1rem;
  background: rgba(38, 166, 154, 0.1);
  color: #26A69A;
  border-radius: 6px;
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.uida-footer-link:hover {
  background: rgba(38, 166, 154, 0.2);
  color: #B2DFDB;
}

.uida-partners {
  margin-bottom: 1.5rem;
}

.uida-partners-title {
  font-size: 1.3rem;
  color: #B2DFDB;
  margin-bottom: 1rem;
  text-align: center;
}

.uida-partners-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.uida-partner-logo {
  width: 50px;
  height: 30px;
  object-fit: contain;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.uida-partner-logo:hover {
  opacity: 1;
}

.uida-copyright {
  text-align: center;
  padding: 1rem 0;
  border-top: 1px solid rgba(38, 166, 154, 0.2);
  font-size: 1.2rem;
  color: #6c757d;
}

/* Bottom Navigation (Mobile) */
.uida-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, #00695C 0%, #26A69A 100%);
  padding: 0.5rem 0;
  z-index: 1000;
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.3);
  max-width: 430px;
  margin: 0 auto;
}

.uida-bottom-nav-inner {
  display: flex;
  justify-content: space-around;
  align-items: center;
}

.uida-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  min-width: 60px;
  min-height: 60px;
  justify-content: center;
  color: #E9ECEF;
  transition: all 0.3s ease;
  position: relative;
}

.uida-nav-item:hover {
  color: #B2DFDB;
  transform: scale(1.1);
}

.uida-nav-item.active {
  color: #CD5C5C;
}

.uida-nav-icon {
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.uida-nav-text {
  font-size: 10px;
  font-weight: 500;
  text-align: center;
}

.uida-nav-badge {
  position: absolute;
  top: 2px;
  right: 8px;
  background: #CD5C5C;
  color: #E9ECEF;
  font-size: 0.9rem;
  padding: 0.1rem 0.4rem;
  border-radius: 10px;
  font-weight: 700;
}

/* Desktop Responsive */
@media (min-width: 769px) {
  .uida-bottom-nav {
    display: none;
  }

  .uida-main {
    padding-bottom: 2rem;
  }

  .uida-mobile-menu {
    max-width: 100%;
  }
}

/* Utility Classes */
.uida-text-center {
  text-align: center;
}

.uida-mt-1 { margin-top: 1rem; }
.uida-mt-2 { margin-top: 2rem; }
.uida-mb-1 { margin-bottom: 1rem; }
.uida-mb-2 { margin-bottom: 2rem; }

.uida-highlight {
  color: #CD5C5C;
  font-weight: 600;
}

.uida-gradient-text {
  background: linear-gradient(135deg, #26A69A 0%, #B2DFDB 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
}
