/**
 * PH Play Super Ace - CSS Stylesheet
 * All classes use sde4- prefix to avoid conflicts
 */

/* CSS Variables */
:root {
  --sde4-primary: #FFCCCB;
  --sde4-secondary: #3C3C3C;
  --sde4-accent: #9AFF9A;
  --sde4-highlight: #00FA9A;
  --sde4-dark: #1C2833;
  --sde4-text: #FFFFFF;
  --sde4-text-muted: #CCCCCC;
  --sde4-border: #555555;
  --sde4-shadow: rgba(0, 0, 0, 0.3);
  --sde4-header-height: 60px;
  --sde4-bottom-nav-height: 60px;
}

/* 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(--sde4-text);
  background-color: var(--sde4-secondary);
  overflow-x: hidden;
}

/* Container */
.sde4-container {
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header Styles */
.sde4-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--sde4-header-height);
  background-color: var(--sde4-dark);
  box-shadow: 0 2px 10px var(--sde4-shadow);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
}

.sde4-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--sde4-primary);
  font-weight: 600;
  font-size: 1.4rem;
}

.sde4-logo img {
  width: 32px;
  height: 32px;
  border-radius: 4px;
}

.sde4-header-buttons {
  display: flex;
  gap: 0.5rem;
}

.sde4-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-flex;
  align-items: center;
  justify-content: center;
}

.sde4btn-primary {
  background-color: var(--sde4-highlight);
  color: var(--sde4-dark);
}

.sde4btn-primary:hover {
  background-color: var(--sde4-accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 250, 154, 0.3);
}

.sde4btn-secondary {
  background-color: transparent;
  color: var(--sde4-primary);
  border: 2px solid var(--sde4-primary);
}

.sde4btn-secondary:hover {
  background-color: var(--sde4-primary);
  color: var(--sde4-dark);
}

.sde4-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--sde4-text);
  font-size: 2rem;
  cursor: pointer;
  padding: 0.5rem;
}

/* Mobile Menu */
.sde4-mobile-menu {
  position: fixed;
  top: var(--sde4-header-height);
  left: -100%;
  width: 100%;
  height: calc(100vh - var(--sde4-header-height));
  background-color: var(--sde4-dark);
  transition: left 0.3s ease;
  z-index: 9999;
  overflow-y: auto;
  padding: 1rem 0;
}

.sde4-mobile-menu.sde4-menu-open {
  left: 0;
}

.sde4-menu-item {
  display: block;
  padding: 1rem 1.5rem;
  color: var(--sde4-text);
  text-decoration: none;
  border-bottom: 1px solid var(--sde4-border);
  transition: background-color 0.3s ease;
}

.sde4-menu-item:hover {
  background-color: var(--sde4-secondary);
  color: var(--sde4-highlight);
}

/* Main Content */
main {
  margin-top: var(--sde4-header-height);
  padding-bottom: 80px;
  min-height: calc(100vh - var(--sde4-header-height) - var(--sde4-bottom-nav-height));
}

/* Carousel */
.sde4-carousel {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  margin-bottom: 2rem;
  border-radius: 8px;
}

.sde4-carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.sde4-carousel-slide.sde4-active {
  opacity: 1;
}

.sde4-carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Section Styles */
.sde4-section {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background-color: var(--sde4-secondary);
  border-radius: 8px;
  box-shadow: 0 2px 8px var(--sde4-shadow);
}

.sde4-section-title {
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--sde4-primary);
  margin-bottom: 1rem;
  text-align: center;
}

.sde4-section-content {
  color: var(--sde4-text);
  line-height: 1.6;
}

/* Game Grid */
.sde4-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
  margin-bottom: 1.5rem;
}

.sde4-game-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: var(--sde4-text);
  transition: transform 0.3s ease;
}

.sde4-game-item:hover {
  transform: scale(1.05);
}

.sde4-game-icon {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 0.5rem;
  background-color: var(--sde4-dark);
}

.sde4-game-name {
  font-size: 1rem;
  text-align: center;
  color: var(--sde4-text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Category Title */
.sde4-category-title {
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--sde4-highlight);
  margin: 2rem 0 1rem;
  padding-left: 0.5rem;
  border-left: 4px solid var(--sde4-primary);
}

/* Promotional Links */
.sde4-promo-link {
  color: var(--sde4-highlight);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
  cursor: pointer;
}

.sde4-promo-link:hover {
  color: var(--sde4-accent);
  text-decoration: underline;
}

/* Footer */
.sde4-footer {
  background-color: var(--sde4-dark);
  padding: 2rem 1rem;
  margin-top: 2rem;
}

.sde4-footer-content {
  max-width: 430px;
  margin: 0 auto;
}

.sde4-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 1.5rem;
  justify-content: center;
}

.sde4-footer-link {
  color: var(--sde4-text-muted);
  text-decoration: none;
  font-size: 1.2rem;
  transition: color 0.3s ease;
}

.sde4-footer-link:hover {
  color: var(--sde4-highlight);
}

.sde4-partners {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.sde4-partner-logo {
  width: 50px;
  height: 30px;
  object-fit: contain;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.sde4-partner-logo:hover {
  opacity: 1;
}

.sde4-copyright {
  text-align: center;
  color: var(--sde4-text-muted);
  font-size: 1.2rem;
}

/* Bottom Navigation (Mobile) */
.sde4-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--sde4-bottom-nav-height);
  background: linear-gradient(135deg, var(--sde4-dark) 0%, #2a3a4a 100%);
  box-shadow: 0 -2px 10px var(--sde4-shadow);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0.5rem;
}

.sde4-bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 60px;
  text-decoration: none;
  color: var(--sde4-text-muted);
  transition: all 0.3s ease;
  cursor: pointer;
  border-radius: 8px;
}

.sde4-bottom-nav-item:hover {
  background-color: rgba(255, 204, 203, 0.1);
  transform: scale(1.05);
}

.sde4-bottom-nav-item.sde4-active {
  color: var(--sde4-highlight);
}

.sde4-bottom-nav-item.sde4-active .sde4-nav-icon {
  transform: scale(1.1);
}

.sde4-nav-icon {
  font-size: 24px;
  margin-bottom: 4px;
  transition: transform 0.3s ease;
}

.sde4-nav-text {
  font-size: 10px;
  font-weight: 500;
}

/* Desktop Navigation - Hide on Mobile */
@media (min-width: 769px) {
  .sde4-bottom-nav {
    display: none;
  }

  main {
    padding-bottom: 2rem;
  }

  .sde4-menu-toggle {
    display: block;
  }
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .sde4-menu-toggle {
    display: block;
  }

  .sde4-header-buttons {
    display: none;
  }

  .sde4-game-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
  }

  .sde4-section {
    padding: 1rem;
  }
}

/* Utility Classes */
.sde4-text-center {
  text-align: center;
}

.sde4-mt-1 { margin-top: 1rem; }
.sde4-mt-2 { margin-top: 2rem; }
.sde4-mb-1 { margin-bottom: 1rem; }
.sde4-mb-2 { margin-bottom: 2rem; }

.sde4-hidden {
  display: none;
}

/* H1 Styles */
h1 {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--sde4-primary);
  text-align: center;
  margin-bottom: 1.5rem;
  line-height: 1.3;
}

/* H2 Styles */
h2 {
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--sde4-highlight);
  margin-bottom: 1rem;
}

/* H3 Styles */
h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--sde4-accent);
  margin-bottom: 0.8rem;
}

/* Paragraph Styles */
p {
  margin-bottom: 1rem;
  color: var(--sde4-text);
}

/* Link Styles */
a {
  color: var(--sde4-highlight);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--sde4-accent);
}

/* List Styles */
ul, ol {
  margin-left: 2rem;
  margin-bottom: 1rem;
}

li {
  margin-bottom: 0.5rem;
}

/* Card Component */
.sde4-card {
  background-color: var(--sde4-dark);
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1rem;
  box-shadow: 0 2px 8px var(--sde4-shadow);
}

/* Button Component */
.sde4-button {
  display: inline-block;
  padding: 1rem 2rem;
  background-color: var(--sde4-highlight);
  color: var(--sde4-dark);
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1.4rem;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  text-align: center;
}

.sde4-button:hover {
  background-color: var(--sde4-accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 250, 154, 0.4);
}
