/**
 * pgph88 - Design CSS
 * Mobile-first responsive design with color palette:
 * Primary: #00695C | Secondary: #00B8D4 | Light: #E0FFFF | Dark: #1A1A1A
 */

/* CSS Variables */
:root {
  --sc2e-primary: #00695C;
  --sc2e-secondary: #00B8D4;
  --sc2e-light: #E0FFFF;
  --sc2e-dark: #1A1A1A;
  --sc2e-white: #FFFFFF;
  --sc2e-gray: #333333;
  --sc2e-gray-light: #666666;
  --sc2e-border: #004D40;
  --sc2e-shadow: rgba(0, 105, 92, 0.3);
}

/* 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, Oxygen, Ubuntu, sans-serif;
  font-size: 1.6rem;
  line-height: 1.5;
  color: var(--sc2e-light);
  background: linear-gradient(135deg, var(--sc2e-dark) 0%, #0d0d0d 100%);
  min-height: 100vh;
  overflow-x: hidden;
}

/* Container */
.sc2e-container {
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header Styles */
.sc2e-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(26, 26, 26, 0.98);
  backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 1px solid var(--sc2e-border);
  transition: all 0.3s ease;
}

.sc2e-header-scrolled {
  background: rgba(0, 105, 92, 0.98);
  box-shadow: 0 4px 20px var(--sc2e-shadow);
}

.sc2e-header-content {
  max-width: 430px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 1rem;
  height: 60px;
}

.sc2e-logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  color: var(--sc2e-light);
}

.sc2e-logo-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--sc2e-primary), var(--sc2e-secondary));
}

.sc2e-logo-text {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--sc2e-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.sc2e-header-actions {
  display: flex;
  gap: 0.8rem;
  align-items: center;
}

.sc2e-btn {
  padding: 0.6rem 1.2rem;
  border: none;
  border-radius: 6px;
  font-size: 1.3rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.sc2e-btn-register {
  background: linear-gradient(135deg, var(--sc2e-secondary), var(--sc2e-primary));
  color: var(--sc2e-white);
}

.sc2e-btn-register:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px var(--sc2e-shadow);
}

.sc2e-btn-login {
  background: transparent;
  color: var(--sc2e-secondary);
  border: 2px solid var(--sc2e-secondary);
}

.sc2e-btn-login:hover {
  background: var(--sc2e-secondary);
  color: var(--sc2e-dark);
}

.sc2e-menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.sc2e-menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--sc2e-secondary);
  transition: all 0.3s ease;
}

/* Mobile Menu */
.sc2e-mobile-menu {
  position: fixed;
  top: 60px;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(26, 26, 26, 0.98);
  backdrop-filter: blur(10px);
  z-index: 9999;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
}

.sc2e-menu-active {
  transform: translateX(0);
}

.sc2e-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 9998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.sc2e-overlay-active {
  opacity: 1;
  pointer-events: auto;
}

.sc2e-menu-nav {
  padding: 2rem 1rem;
}

.sc2e-menu-link {
  display: block;
  padding: 1rem;
  color: var(--sc2e-light);
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 184, 212, 0.1);
  font-size: 1.6rem;
  transition: all 0.3s ease;
}

.sc2e-menu-link:hover {
  background: rgba(0, 184, 212, 0.1);
  color: var(--sc2e-secondary);
  padding-left: 1.5rem;
}

/* Main Content */
main {
  padding-top: 80px;
  padding-bottom: 80px;
  min-height: 100vh;
}

/* Carousel */
.sc2e-carousel {
  position: relative;
  margin-bottom: 2rem;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
}

.sc2e-carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.sc2e-slide-active {
  opacity: 1;
}

.sc2e-carousel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sc2e-carousel-indicators {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
}

.sc2e-carousel-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
}

.sc2e-indicator-active {
  background: var(--sc2e-secondary);
  transform: scale(1.2);
}

/* Section Styles */
.sc2e-section {
  margin-bottom: 3rem;
  padding: 1.5rem;
  background: rgba(0, 105, 92, 0.1);
  border-radius: 12px;
  border: 1px solid var(--sc2e-border);
}

.sc2e-section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--sc2e-secondary);
  margin-bottom: 1.5rem;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Game Grid */
.sc2e-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
  margin-bottom: 1.5rem;
}

.sc2e-game-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  transition: transform 0.3s ease;
}

.sc2e-game-item:hover {
  transform: scale(1.05);
}

.sc2e-game-icon {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(0, 184, 212, 0.1);
  border: 1px solid var(--sc2e-border);
}

.sc2e-game-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sc2e-game-name {
  font-size: 1rem;
  color: var(--sc2e-light);
  text-align: center;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* Text Styles */
.sc2e-heading {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--sc2e-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.3;
}

.sc2e-paragraph {
  margin-bottom: 1rem;
  color: var(--sc2e-light);
  line-height: 1.6;
}

.sc2e-link {
  color: var(--sc2e-secondary);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid var(--sc2e-secondary);
  transition: all 0.3s ease;
}

.sc2e-link:hover {
  color: var(--sc2e-light);
  border-color: var(--sc2e-light);
}

/* Cards */
.sc2e-card {
  background: rgba(0, 184, 212, 0.05);
  border: 1px solid var(--sc2e-border);
  border-radius: 8px;
  padding: 1.2rem;
  margin-bottom: 1rem;
}

.sc2e-card-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--sc2e-secondary);
  margin-bottom: 0.8rem;
}

/* List Styles */
.sc2e-list {
  list-style: none;
  padding: 0;
}

.sc2e-list li {
  padding: 0.8rem 0;
  border-bottom: 1px solid rgba(0, 184, 212, 0.1);
  color: var(--sc2e-light);
}

.sc2e-list li:last-child {
  border-bottom: none;
}

/* Footer */
.sc2e-footer {
  background: rgba(0, 105, 92, 0.2);
  border-top: 1px solid var(--sc2e-border);
  padding: 2rem 1rem;
  margin-top: 3rem;
}

.sc2e-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.sc2e-footer-link {
  color: var(--sc2e-secondary);
  text-decoration: none;
  font-size: 1.2rem;
  transition: color 0.3s ease;
}

.sc2e-footer-link:hover {
  color: var(--sc2e-light);
}

.sc2e-partners {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.sc2e-partner-logo {
  height: 30px;
  width: auto;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.sc2e-partner-logo:hover {
  opacity: 1;
}

.sc2e-copyright {
  text-align: center;
  color: var(--sc2e-gray-light);
  font-size: 1.2rem;
}

/* Mobile Bottom Navigation */
.sc2e-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(26, 26, 26, 0.98);
  backdrop-filter: blur(10px);
  border-top: 2px solid var(--sc2e-primary);
  display: flex;
  justify-content: space-around;
  padding: 0.5rem 0;
  z-index: 1000;
  height: 60px;
}

.sc2e-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 60px;
  text-decoration: none;
  color: var(--sc2e-gray-light);
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  background: none;
  padding: 0;
}

.sc2e-nav-item:hover,
.sc2e-nav-item.sc2e-nav-active {
  color: var(--sc2e-secondary);
  transform: scale(1.1);
}

.sc2e-nav-icon {
  font-size: 24px;
  margin-bottom: 2px;
}

.sc2e-nav-text {
  font-size: 10px;
  font-weight: 500;
}

/* Desktop: Hide bottom navigation */
@media (min-width: 769px) {
  .sc2e-bottom-nav {
    display: none;
  }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  main {
    padding-bottom: 80px;
  }
}
