/* PH889 Login Online - Core CSS Design System */
/* Prefix: s01d- for all classes to avoid conflicts */
/* Color Palette: #00E5FF, #00695C, #008B8B, #212F3D, #8B4513 */
/* Version: 1.0.0 */

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 62.5%; /* 10px base for rem calculations */
  scroll-behavior: smooth;
}

body {
  font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 1.6rem;
  line-height: 1.6;
  color: #212F3D;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  min-height: 100vh;
  overflow-x: hidden;
}

.s01d-loading {
  overflow: hidden;
}

/* Layout Container */
.s01d-wrapper {
  max-width: 43rem;
  margin: 0 auto;
  min-height: 100vh;
  background: #ffffff;
  box-shadow: 0 0 2rem rgba(33, 47, 61, 0.1);
  position: relative;
}

.s01d-container {
  padding: 2rem 1.5rem;
  width: 100%;
}

/* Header Styles */
.s01d-header {
  background: linear-gradient(135deg, #00E5FF 0%, #00695C 100%);
  color: white;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 0.2rem 1rem rgba(0, 229, 255, 0.3);
}

.s01d-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  position: relative;
}

.s01d-logo {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  color: white;
  font-weight: 700;
  font-size: 2rem;
}

.s01d-logo-img {
  width: 4rem;
  height: 4rem;
  border-radius: 0.8rem;
  box-shadow: 0 0.4rem 0.8rem rgba(0, 0, 0, 0.2);
}

.s01d-nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.s01d-menu-btn {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  width: 4rem;
  height: 4rem;
  border-radius: 0.8rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.s01d-menu-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.05);
}

/* Mobile Navigation Menu */
.s01d-nav-menu {
  position: fixed;
  top: 0;
  left: -100%;
  width: 80%;
  height: 100vh;
  background: linear-gradient(180deg, #00E5FF 0%, #00695C 100%);
  transition: left 0.3s ease;
  z-index: 150;
  padding: 2rem;
  box-shadow: 0.2rem 0 2rem rgba(0, 0, 0, 0.3);
}

.s01d-nav-menu.s01d-active {
  left: 0;
}

.s01d-nav-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 6rem;
}

.s01d-nav-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  text-decoration: none;
  color: white;
  border-radius: 1rem;
  transition: all 0.3s ease;
  font-size: 1.6rem;
}

.s01d-nav-link:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateX(0.5rem);
}

.s01d-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  z-index: 140;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.s01d-menu-overlay.s01d-active {
  opacity: 1;
  visibility: visible;
}

/* Button Styles */
.s01d-btn {
  background: linear-gradient(45deg, #00E5FF, #008B8B);
  color: white;
  border: none;
  padding: 1.2rem 2.4rem;
  border-radius: 0.8rem;
  font-size: 1.4rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  transition: all 0.3s ease;
  text-align: center;
  min-height: 4.8rem;
  box-shadow: 0 0.4rem 1.5rem rgba(0, 229, 255, 0.4);
}

.s01d-btn:hover {
  transform: translateY(-0.2rem);
  box-shadow: 0 0.6rem 2rem rgba(0, 229, 255, 0.5);
}

.s01d-btn:active {
  transform: translateY(0);
}

.s01d-btn-small {
  padding: 0.8rem 1.6rem;
  font-size: 1.2rem;
  min-height: 3.6rem;
}

.s01d-btn-large {
  padding: 1.6rem 3.2rem;
  font-size: 1.6rem;
  min-height: 5.6rem;
}

.s01d-btn-outline {
  background: transparent;
  border: 0.2rem solid #00E5FF;
  color: #00E5FF;
  box-shadow: none;
}

.s01d-btn-outline:hover {
  background: #00E5FF;
  color: white;
}

/* Section Styles */
.s01d-main {
  padding-bottom: 10rem;
}

.s01d-section {
  margin: 3rem 0;
}

.s01d-section-title {
  font-size: 2.4rem;
  font-weight: 700;
  color: #212F3D;
  text-align: center;
  margin-bottom: 2rem;
  line-height: 1.3;
}

/* Card Styles */
.s01d-card {
  background: white;
  border-radius: 1.2rem;
  padding: 2rem;
  box-shadow: 0 0.4rem 2rem rgba(33, 47, 61, 0.1);
  margin-bottom: 2rem;
  border: 0.1rem solid rgba(0, 229, 255, 0.1);
}

.s01d-card-title {
  font-size: 2rem;
  font-weight: 600;
  color: #00695C;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.s01d-card-content p {
  margin-bottom: 1.5rem;
  line-height: 1.7;
  color: #212F3D;
}

.s01d-card-content p:last-child {
  margin-bottom: 0;
}

/* Carousel Styles */
.s01d-carousel {
  position: relative;
  margin: 2rem 0;
  border-radius: 1.2rem;
  overflow: hidden;
  box-shadow: 0 0.8rem 2.5rem rgba(0, 229, 255, 0.2);
}

.s01d-slide {
  display: none;
  width: 100%;
  cursor: pointer;
}

.s01d-slide.s01d-active {
  display: block;
}

.s01d-slide img {
  width: 100%;
  height: 20rem;
  object-fit: cover;
  display: block;
}

.s01d-carousel-dots {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.8rem;
}

.s01d-dot {
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
}

.s01d-dot.s01d-active {
  background: #00E5FF;
  transform: scale(1.2);
}

/* Game Grid Styles */
.s01d-game-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin: 2rem 0;
}

.s01d-game-item {
  background: white;
  border-radius: 1rem;
  padding: 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 0.1rem solid rgba(0, 229, 255, 0.2);
  box-shadow: 0 0.4rem 1rem rgba(0, 0, 0, 0.05);
}

.s01d-game-item:hover {
  transform: translateY(-0.5rem);
  box-shadow: 0 0.8rem 2.5rem rgba(0, 229, 255, 0.3);
  border-color: #00E5FF;
}

.s01d-game-icon {
  width: 6rem;
  height: 6rem;
  border-radius: 1rem;
  margin-bottom: 1rem;
  object-fit: cover;
}

.s01d-game-name {
  font-size: 1.3rem;
  font-weight: 600;
  color: #212F3D;
  line-height: 1.3;
}

/* Game Categories */
.s01d-game-category {
  margin: 3rem 0;
}

.s01d-category-title {
  font-size: 1.8rem;
  font-weight: 600;
  color: #00695C;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: linear-gradient(90deg, rgba(0, 229, 255, 0.1), rgba(0, 105, 92, 0.1));
  border-radius: 1rem;
  border-left: 0.4rem solid #00E5FF;
}

/* Footer Styles */
.s01d-footer {
  background: linear-gradient(135deg, #212F3D 0%, #00695C 100%);
  color: white;
  padding: 3rem 0 2rem;
  margin-top: 4rem;
}

.s01d-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.s01d-footer-link {
  color: white;
  text-decoration: none;
  padding: 0.8rem 1.2rem;
  border-radius: 0.6rem;
  background: rgba(255, 255, 255, 0.1);
  font-size: 1.3rem;
  transition: all 0.3s ease;
}

.s01d-footer-link:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-0.2rem);
}

.s01d-copyright {
  text-align: center;
  font-size: 1.2rem;
  opacity: 0.8;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 0.1rem solid rgba(255, 255, 255, 0.2);
}

/* Bottom Navigation */
.s01d-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 43rem;
  background: linear-gradient(135deg, #00E5FF 0%, #00695C 100%);
  display: flex;
  justify-content: space-around;
  padding: 1rem 0;
  box-shadow: 0 -0.4rem 2rem rgba(0, 229, 255, 0.3);
  z-index: 90;
}

.s01d-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: white;
  transition: all 0.3s ease;
  padding: 0.5rem;
  border-radius: 0.8rem;
  min-width: 6rem;
  opacity: 0.8;
}

.s01d-nav-item.s01d-active {
  opacity: 1;
  background: rgba(255, 255, 255, 0.2);
}

.s01d-nav-item:hover {
  opacity: 1;
  transform: translateY(-0.2rem);
}

.s01d-nav-icon {
  font-size: 2rem;
  margin-bottom: 0.4rem;
}

.s01d-nav-label {
  font-size: 1.1rem;
  font-weight: 500;
}

/* Utility Classes */
.s01d-text-center {
  text-align: center;
}

.s01d-text-primary {
  color: #00E5FF;
}

.s01d-text-secondary {
  color: #00695C;
}

.s01d-text-accent {
  color: #008B8B;
}

.s01d-bg-primary {
  background: #00E5FF;
}

.s01d-bg-secondary {
  background: #00695C;
}

.s01d-bg-accent {
  background: #008B8B;
}

/* Responsive Helpers */
.s01d-hide-mobile {
  display: none;
}

/* Notification Styles */
.s01d-notification {
  position: fixed;
  top: 2rem;
  right: 2rem;
  background: #00E5FF;
  color: white;
  padding: 1.2rem 2rem;
  border-radius: 0.8rem;
  box-shadow: 0 0.4rem 1.5rem rgba(0, 229, 255, 0.4);
  transform: translateX(40rem);
  transition: transform 0.3s ease;
  z-index: 200;
  max-width: 30rem;
  font-size: 1.4rem;
}

.s01d-notification--show {
  transform: translateX(0);
}

.s01d-notification--success {
  background: #4CAF50;
}

.s01d-notification--error {
  background: #F44336;
}

.s01d-notification--warning {
  background: #FF9800;
}

/* Form Styles */
.s01d-form-group {
  margin-bottom: 2rem;
}

.s01d-label {
  display: block;
  margin-bottom: 0.8rem;
  font-weight: 600;
  color: #212F3D;
}

.s01d-input {
  width: 100%;
  padding: 1.2rem;
  border: 0.2rem solid rgba(0, 229, 255, 0.3);
  border-radius: 0.8rem;
  font-size: 1.4rem;
  transition: all 0.3s ease;
}

.s01d-input:focus {
  outline: none;
  border-color: #00E5FF;
  box-shadow: 0 0 0 0.3rem rgba(0, 229, 255, 0.2);
}

.s01d-input.s01d-error {
  border-color: #F44336;
  box-shadow: 0 0 0 0.3rem rgba(244, 67, 54, 0.2);
}

/* Loading States */
.s01d-loading-spinner {
  display: inline-block;
  width: 2rem;
  height: 2rem;
  border: 0.3rem solid rgba(0, 229, 255, 0.3);
  border-radius: 50%;
  border-top-color: #00E5FF;
  animation: s01d-spin 1s ease-in-out infinite;
}

@keyframes s01d-spin {
  to {
    transform: rotate(360deg);
  }
}

/* Special Effects */
.s01d-glow {
  box-shadow: 0 0 2rem rgba(0, 229, 255, 0.5);
}

.s01d-pulse {
  animation: s01d-pulse 2s infinite;
}

@keyframes s01d-pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

/* Print Styles */
@media print {
  .s01d-header,
  .s01d-bottom-nav,
  .s01d-menu-overlay,
  .s01d-notification {
    display: none;
  }
  
  .s01d-wrapper {
    max-width: none;
    box-shadow: none;
  }
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}