/* PHFiery Gaming Platform Stylesheet */
/* Mobile-first responsive design for phfiery.sbs */
/* Color Scheme: #20B2AA | #2C2C2C | #FF7F50 | #008B8B | #FFB3FF */

/* CSS Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: #2C2C2C;
  background-color: #f8f9fa;
  overflow-x: hidden;
}

/* Container and Layout */
.uifc-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  max-width: 430px;
  margin: 0 auto;
  background: linear-gradient(135deg, rgba(32, 178, 170, 0.05) 0%, rgba(255, 179, 255, 0.05) 100%);
}

.uifc-container {
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  padding: 0 15px;
}

.uifc-main {
  flex: 1;
  padding: 80px 0 80px;
}

/* Header Styles */
.uifc-header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  background: rgba(32, 178, 170, 0.95);
  backdrop-filter: blur(20px);
  z-index: 1000;
  padding: 12px 0;
  border-bottom: 2px solid #20B2AA;
}

.uifc-navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.uifc-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: white;
  font-weight: 700;
  font-size: 20px;
}

.uifc-logo-img {
  width: 32px;
  height: 32px;
  margin-right: 8px;
  border-radius: 6px;
}

.uifc-nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.uifc-menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  width: 24px;
  height: 20px;
  background: transparent;
  border: none;
  cursor: pointer;
}

.uifc-menu-toggle span {
  width: 100%;
  height: 2px;
  background-color: white;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.uifc-menu-toggle.uifc-active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.uifc-menu-toggle.uifc-active span:nth-child(2) {
  opacity: 0;
}

.uifc-menu-toggle.uifc-active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Menu */
.uifc-mobile-menu {
  position: fixed;
  top: 68px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  background: rgba(44, 44, 44, 0.98);
  backdrop-filter: blur(20px);
  z-index: 999;
  padding: 20px 0;
  max-height: calc(100vh - 68px);
  overflow-y: auto;
  transition: all 0.3s ease;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(-10px);
}

.uifc-mobile-menu.uifc-active {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.uifc-nav-menu {
  list-style: none;
  padding: 0;
}

.uifc-nav-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.uifc-nav-link {
  display: block;
  padding: 15px 20px;
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
}

.uifc-nav-link:hover {
  background-color: rgba(32, 178, 170, 0.2);
  color: #FFB3FF;
  transform: translateX(5px);
}

.uifc-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.uifc-menu-overlay.uifc-active {
  opacity: 1;
  visibility: visible;
}

/* Button Styles */
.uifc-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border: 2px solid transparent;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 14px;
  background: none;
  outline: none;
}

.uifc-btn-primary {
  background: linear-gradient(135deg, #20B2AA 0%, #008B8B 100%);
  color: white;
  border-color: #20B2AA;
}

.uifc-btn-primary:hover {
  background: linear-gradient(135deg, #008B8B 0%, #20B2AA 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(32, 178, 170, 0.3);
}

.uifc-btn-outline {
  background: transparent;
  color: white;
  border-color: white;
}

.uifc-btn-outline:hover {
  background-color: white;
  color: #20B2AA;
}

.uifc-btn-success {
  background: linear-gradient(135deg, #FF7F50 0%, #FFB3FF 100%);
  color: white;
  border-color: #FF7F50;
}

.uifc-btn-success:hover {
  background: linear-gradient(135deg, #FFB3FF 0%, #FF7F50 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 127, 80, 0.3);
}

.uifc-btn-large {
  padding: 16px 28px;
  font-size: 16px;
  border-radius: 12px;
}

/* Section Styles */
.uifc-section {
  margin-bottom: 30px;
}

.uifc-hero {
  text-align: center;
  padding: 40px 20px;
  background: linear-gradient(135deg, rgba(32, 178, 170, 0.1) 0%, rgba(0, 139, 139, 0.1) 100%);
  border-radius: 16px;
  margin-bottom: 30px;
}

.uifc-hero h1 {
  font-size: 24px;
  font-weight: 800;
  color: #2C2C2C;
  margin-bottom: 16px;
  line-height: 1.2;
}

.uifc-hero p {
  font-size: 16px;
  color: #666;
  margin-bottom: 24px;
  line-height: 1.6;
}

/* Card Styles */
.uifc-card {
  background: white;
  border-radius: 16px;
  padding: 24px 20px;
  margin-bottom: 24px;
  box-shadow: 0 4px 20px rgba(44, 44, 44, 0.1);
  border: 1px solid rgba(32, 178, 170, 0.1);
}

.uifc-card h2 {
  font-size: 20px;
  font-weight: 700;
  color: #2C2C2C;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.uifc-card h2 i {
  color: #20B2AA;
  font-size: 22px;
}

.uifc-card h3 {
  font-size: 18px;
  font-weight: 600;
  color: #2C2C2C;
  margin-bottom: 12px;
}

.uifc-card p {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
  margin-bottom: 16px;
}

/* Feature Grid */
.uifc-feature-grid {
  display: grid;
  gap: 20px;
  margin-bottom: 24px;
}

.uifc-feature-item {
  display: flex;
  gap: 16px;
  padding: 16px;
  background: rgba(32, 178, 170, 0.05);
  border-radius: 12px;
  border-left: 4px solid #20B2AA;
}

.uifc-feature-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #20B2AA 0%, #008B8B 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 20px;
  flex-shrink: 0;
}

.uifc-feature-content h3 {
  font-size: 16px;
  font-weight: 600;
  color: #2C2C2C;
  margin-bottom: 8px;
}

.uifc-feature-content p {
  font-size: 14px;
  color: #666;
  margin: 0;
}

/* Stats Grid */
.uifc-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.uifc-stat-item {
  text-align: center;
  padding: 20px 12px;
  background: rgba(255, 179, 255, 0.1);
  border-radius: 12px;
  border: 2px solid rgba(255, 179, 255, 0.2);
}

.uifc-stat-number {
  font-size: 24px;
  font-weight: 800;
  color: #FF7F50;
  margin-bottom: 4px;
}

.uifc-stat-label {
  font-size: 12px;
  color: #666;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Game Grid */
.uifc-game-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.uifc-game-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px;
  background: white;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.uifc-game-item:hover {
  transform: translateY(-4px);
  border-color: #20B2AA;
  box-shadow: 0 8px 25px rgba(32, 178, 170, 0.2);
}

.uifc-game-icon {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  margin-bottom: 8px;
  object-fit: cover;
}

.uifc-game-name {
  font-size: 12px;
  font-weight: 600;
  color: #2C2C2C;
  text-align: center;
  line-height: 1.2;
}

/* Category Headers */
.uifc-category-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding: 16px 20px;
  background: linear-gradient(135deg, #20B2AA 0%, #008B8B 100%);
  border-radius: 12px;
  color: white;
}

.uifc-category-icon {
  font-size: 24px;
}

.uifc-category-title {
  font-size: 20px;
  font-weight: 700;
  margin: 0;
}

/* Carousel */
.uifc-carousel {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  margin-bottom: 30px;
}

.uifc-carousel-track {
  display: flex;
  transition: transform 0.5s ease;
}

.uifc-carousel-slide {
  min-width: 100%;
  position: relative;
  cursor: pointer;
}

.uifc-carousel-slide img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.uifc-carousel-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  color: white;
  padding: 30px 20px 20px;
  text-align: center;
}

.uifc-carousel-overlay div {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
}

.uifc-carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 16px;
  background: rgba(44, 44, 44, 0.1);
}

.uifc-carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
}

.uifc-carousel-dot.uifc-active {
  background-color: #20B2AA;
  transform: scale(1.2);
}

/* Footer */
.uifc-footer {
  background: #2C2C2C;
  color: white;
  padding: 30px 0 20px;
  margin-top: auto;
}

.uifc-footer-content {
  text-align: center;
}

.uifc-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 16px;
  margin-bottom: 20px;
}

.uifc-footer-link {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 14px;
  padding: 4px 8px;
  border-radius: 4px;
  transition: all 0.3s ease;
  background: none;
  border: none;
  cursor: pointer;
}

.uifc-footer-link:hover {
  color: #20B2AA;
  background-color: rgba(32, 178, 170, 0.1);
}

.uifc-partners {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 20px;
}

.uifc-partner-icon {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  opacity: 0.7;
  transition: all 0.3s ease;
}

.uifc-partner-icon:hover {
  opacity: 1;
  transform: scale(1.1);
}

.uifc-copyright {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.4;
}

/* Bottom Navigation */
.uifc-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  background: rgba(44, 44, 44, 0.95);
  backdrop-filter: blur(20px);
  display: flex;
  justify-content: space-around;
  padding: 12px 0 8px;
  border-top: 2px solid #20B2AA;
  z-index: 1000;
}

.uifc-bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.7);
  transition: all 0.3s ease;
  padding: 4px 12px;
  border-radius: 8px;
  background: none;
  border: none;
  cursor: pointer;
}

.uifc-bottom-nav-item:hover,
.uifc-bottom-nav-item.uifc-active {
  color: #20B2AA;
  background-color: rgba(32, 178, 170, 0.1);
  transform: scale(1.05);
}

.uifc-nav-icon {
  font-size: 18px;
  margin-bottom: 4px;
}

.uifc-nav-text {
  font-size: 10px;
  font-weight: 500;
}

/* Animation Classes */
.uifc-animate {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease;
}

.uifc-animate-in {
  opacity: 1;
  transform: translateY(0);
}

/* FAQ Styles */
.uifc-faq-item {
  border-bottom: 1px solid rgba(32, 178, 170, 0.2);
  margin-bottom: 16px;
}

.uifc-faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  cursor: pointer;
  font-weight: 600;
  color: #2C2C2C;
}

.uifc-faq-icon {
  font-size: 18px;
  color: #20B2AA;
  transition: transform 0.3s ease;
}

.uifc-faq-answer {
  display: none;
  padding-bottom: 16px;
  color: #666;
  line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 375px) {
  .uifc-container {
    padding: 0 12px;
  }
  
  .uifc-hero h1 {
    font-size: 22px;
  }
  
  .uifc-game-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .uifc-stats-grid {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 431px) {
  .uifc-wrapper {
    border-left: 1px solid rgba(32, 178, 170, 0.2);
    border-right: 1px solid rgba(32, 178, 170, 0.2);
  }
}

/* Print Styles */
@media print {
  .uifc-header,
  .uifc-bottom-nav,
  .uifc-menu-toggle {
    display: none !important;
  }
  
  .uifc-main {
    padding-top: 0;
    padding-bottom: 0;
  }
}