/* Nustar PH - Design System Stylesheet */
/* All classes use uidf- prefix for namespace isolation */

/* CSS Variables */
:root {
  --uidf-primary: #AD1457;
  --uidf-primary-light: #D81B60;
  --uidf-secondary: #00CED1;
  --uidf-bg-dark: #0A0A0A;
  --uidf-bg-darker: #050505;
  --uidf-text: #FFDFBA;
  --uidf-text-light: #F0FDFF;
  --uidf-border: #2A2A2A;
  --uidf-success: #00CED1;
  --uidf-danger: #AD1457;
  --uidf-warning: #FFDFBA;
}

/* 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.6rem;
  line-height: 1.5;
  color: var(--uidf-text);
  background-color: var(--uidf-bg-dark);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

/* Container */
.uidf-container {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */
.uidf-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: linear-gradient(135deg, var(--uidf-bg-dark) 0%, var(--uidf-bg-darker) 100%);
  border-bottom: 2px solid var(--uidf-primary);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.uidf-header.uidf-scrolled {
  background: rgba(10, 10, 10, 0.98);
  box-shadow: 0 4px 20px rgba(173, 20, 87, 0.3);
}

.uidf-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  padding: 0 1.5rem;
  max-width: 430px;
  margin: 0 auto;
}

.uidf-logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--uidf-primary);
}

.uidf-logo-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.uidf-menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--uidf-primary);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.uidf-menu-btn:hover {
  background: var(--uidf-primary-light);
  transform: scale(1.05);
}

.uidf-menu-btn i {
  font-size: 2rem;
  color: var(--uidf-text-light);
}

.uidf-header-actions {
  display: flex;
  gap: 1rem;
}

.uidf-btn-header {
  padding: 0.6rem 1.2rem;
  font-size: 1.3rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}

.uidf-btn-register {
  background: linear-gradient(135deg, var(--uidf-primary) 0%, var(--uidf-primary-light) 100%);
  color: var(--uidf-text-light);
}

.uidf-btn-register:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(173, 20, 87, 0.4);
}

.uidf-btn-login {
  background: transparent;
  color: var(--uidf-primary);
  border: 2px solid var(--uidf-primary);
}

.uidf-btn-login:hover {
  background: var(--uidf-primary);
  color: var(--uidf-text-light);
}

/* Mobile Menu */
.uidf-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.uidf-menu-overlay.uidf-active {
  opacity: 1;
  visibility: visible;
}

.uidf-mobile-menu {
  position: fixed;
  top: 0;
  right: -300px;
  width: 280px;
  height: 100vh;
  background: var(--uidf-bg-darker);
  z-index: 9999;
  transition: right 0.3s ease;
  overflow-y: auto;
  border-left: 2px solid var(--uidf-primary);
}

.uidf-mobile-menu.uidf-active {
  right: 0;
}

.uidf-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem;
  border-bottom: 1px solid var(--uidf-border);
}

.uidf-menu-close {
  width: 36px;
  height: 36px;
  background: var(--uidf-border);
  border: none;
  border-radius: 8px;
  color: var(--uidf-text);
  font-size: 1.8rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.uidf-menu-nav {
  padding: 1rem 0;
}

.uidf-menu-item {
  display: block;
  padding: 1.2rem 1.5rem;
  color: var(--uidf-text);
  font-size: 1.5rem;
  border-left: 3px solid transparent;
  transition: all 0.3s ease;
}

.uidf-menu-item:hover {
  background: rgba(173, 20, 87, 0.1);
  border-left-color: var(--uidf-primary);
  color: var(--uidf-primary);
}

/* Main Content */
main {
  padding-top: 80px;
  min-height: 100vh;
}

@media (max-width: 768px) {
  main {
    padding-bottom: 80px;
  }
}

/* Hero Carousel */
.uidf-carousel {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  margin-bottom: 2rem;
}

.uidf-carousel-slides {
  position: relative;
  width: 100%;
  height: 100%;
}

.uidf-carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.uidf-carousel-slide.uidf-active {
  opacity: 1;
}

.uidf-carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.uidf-carousel-indicators {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.8rem;
  z-index: 10;
}

.uidf-carousel-indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.uidf-carousel-indicator.uidf-active {
  background: var(--uidf-primary);
  width: 25px;
  border-radius: 5px;
}

/* Section */
.uidf-section {
  padding: 2rem 0;
  border-bottom: 1px solid var(--uidf-border);
}

.uidf-section-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--uidf-primary);
  margin-bottom: 1.5rem;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Game Grid */
.uidf-game-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1rem;
}

.uidf-game-card {
  background: var(--uidf-bg-darker);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 2px solid transparent;
}

.uidf-game-card:hover {
  border-color: var(--uidf-primary);
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(173, 20, 87, 0.3);
}

.uidf-game-icon {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.uidf-game-name {
  padding: 0.8rem;
  font-size: 1.2rem;
  font-weight: 600;
  text-align: center;
  color: var(--uidf-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Promotional Button */
.uidf-btn-promo {
  display: inline-block;
  padding: 1rem 2rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--uidf-bg-dark);
  background: linear-gradient(135deg, var(--uidf-secondary) 0%, var(--uidf-primary) 100%);
  border-radius: 50px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 206, 209, 0.4);
}

.uidf-btn-promo:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 6px 25px rgba(0, 206, 209, 0.6);
}

/* Content Box */
.uidf-content-box {
  background: var(--uidf-bg-darker);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border: 1px solid var(--uidf-border);
}

.uidf-content-box h3 {
  font-size: 1.8rem;
  color: var(--uidf-secondary);
  margin-bottom: 1rem;
}

.uidf-content-box p {
  font-size: 1.5rem;
  line-height: 1.6;
  margin-bottom: 1rem;
  color: var(--uidf-text);
}

/* Link Style */
.uidf-link {
  color: var(--uidf-secondary);
  font-weight: 600;
  text-decoration: underline;
}

.uidf-link:hover {
  color: var(--uidf-primary);
}

/* Footer */
.uidf-footer {
  background: var(--uidf-bg-darker);
  border-top: 2px solid var(--uidf-primary);
  padding: 2rem 0 1rem;
  margin-top: 2rem;
}

.uidf-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.uidf-footer-link {
  padding: 0.6rem 1rem;
  font-size: 1.3rem;
  color: var(--uidf-text);
  border: 1px solid var(--uidf-border);
  border-radius: 6px;
  transition: all 0.3s ease;
}

.uidf-footer-link:hover {
  background: var(--uidf-primary);
  color: var(--uidf-text-light);
  border-color: var(--uidf-primary);
}

.uidf-partners {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.uidf-partner-logo {
  width: 50px;
  height: 30px;
  object-fit: contain;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.uidf-partner-logo:hover {
  opacity: 1;
}

.uidf-copyright {
  text-align: center;
  font-size: 1.2rem;
  color: var(--uidf-text);
  padding: 1rem 0;
  border-top: 1px solid var(--uidf-border);
}

/* Bottom Navigation (Mobile) */
.uidf-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(135deg, var(--uidf-bg-dark) 0%, var(--uidf-bg-darker) 100%);
  border-top: 2px solid var(--uidf-primary);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
}

@media (min-width: 769px) {
  .uidf-bottom-nav {
    display: none;
  }
}

.uidf-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 60px;
  padding: 0.5rem;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.uidf-nav-item:hover {
  transform: scale(1.1);
}

.uidf-nav-item.uidf-active {
  color: var(--uidf-primary);
}

.uidf-nav-item.uidf-active::after {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 3px;
  background: var(--uidf-secondary);
  border-radius: 0 0 3px 3px;
}

.uidf-nav-icon {
  font-size: 2.4rem;
  margin-bottom: 0.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.uidf-nav-text {
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  line-height: 1.2;
}

/* Animation */
@keyframes uidf-fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

body.uidf-loaded .uidf-section {
  animation: uidf-fadeIn 0.6s ease forwards;
}

/* Utility Classes */
.uidf-text-center {
  text-align: center;
}

.uidf-mb-1 {
  margin-bottom: 1rem;
}

.uidf-mb-2 {
  margin-bottom: 2rem;
}

.uidf-mt-1 {
  margin-top: 1rem;
}

.uidf-mt-2 {
  margin-top: 2rem;
}
