/**
 * JL44 Website Stylesheet
 * All classes use prefix: s72d-
 * Color scheme: #DA70D6 (Orchid) | #1A1A1A (Dark) | #9370DB (Medium Purple)
 * Mobile-first responsive design
 */

/* CSS Variables */
:root {
  --s72d-primary: #DA70D6;
  --s72d-secondary: #9370DB;
  --s72d-dark: #1A1A1A;
  --s72d-darker: #0F0F0F;
  --s72d-light: #FFFFFF;
  --s72d-gray: #808080;
  --s72d-bg-overlay: rgba(26, 26, 26, 0.95);
  --s72d-shadow: rgba(218, 112, 214, 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, Cantarell, sans-serif;
  font-size: 1.4rem;
  line-height: 1.5;
  color: var(--s72d-light);
  background-color: var(--s72d-dark);
  overflow-x: hidden;
  min-height: 100vh;
  padding-bottom: 80px;
}

@media (min-width: 769px) {
  body {
    padding-bottom: 0;
  }
}

/* Container */
.s72d-container {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header Styles */
.s72d-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: var(--s72d-bg-overlay);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px var(--s72d-shadow);
  z-index: 1000;
  transition: transform 0.3s ease;
}

.s72d-header-hidden {
  transform: translateY(-100%);
}

.s72d-header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1rem;
}

.s72d-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--s72d-light);
}

.s72d-logo-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.s72d-logo-text {
  font-size: 1.8rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--s72d-primary), var(--s72d-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.s72d-header-buttons {
  display: flex;
  gap: 0.5rem;
}

.s72d-btn {
  padding: 0.6rem 1.2rem;
  font-size: 1.2rem;
  font-weight: 600;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.s72d-btn-register {
  background: linear-gradient(135deg, var(--s72d-primary), var(--s72d-secondary));
  color: var(--s72d-light);
}

.s72d-btn-login {
  background: transparent;
  color: var(--s72d-primary);
  border: 2px solid var(--s72d-primary);
}

.s72d-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px var(--s72d-shadow);
}

.s72d-menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  color: var(--s72d-light);
  font-size: 1.8rem;
  cursor: pointer;
  border-radius: 6px;
  transition: background 0.3s ease;
}

.s72d-menu-toggle:hover {
  background: rgba(218, 112, 214, 0.2);
}

/* Mobile Menu */
.s72d-mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 300px;
  height: 100vh;
  background: var(--s72d-bg-overlay);
  backdrop-filter: blur(10px);
  z-index: 9999;
  transition: right 0.3s ease;
  overflow-y: auto;
}

.s72d-mobile-menu.s72d-menu-open {
  right: 0;
}

.s72d-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.s72d-mobile-menu.s72d-menu-open ~ .s72d-menu-overlay {
  opacity: 1;
  pointer-events: auto;
}

.s72d-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem;
  border-bottom: 1px solid rgba(218, 112, 214, 0.2);
}

.s72d-menu-close {
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  color: var(--s72d-light);
  font-size: 1.8rem;
  cursor: pointer;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.s72d-menu-nav {
  padding: 1rem 0;
}

.s72d-menu-item {
  display: block;
  padding: 1rem 1.5rem;
  color: var(--s72d-light);
  text-decoration: none;
  font-size: 1.4rem;
  border-left: 3px solid transparent;
  transition: all 0.3s ease;
}

.s72d-menu-item:hover {
  background: rgba(218, 112, 214, 0.1);
  border-left-color: var(--s72d-primary);
  padding-left: 2rem;
}

/* Carousel */
.s72d-carousel {
  position: relative;
  width: 100%;
  height: 200px;
  margin-top: 70px;
  overflow: hidden;
  border-radius: 12px;
}

.s72d-carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.s72d-carousel-slide.s72d-active {
  opacity: 1;
  z-index: 1;
}

.s72d-carousel-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

/* Main Content */
.s72d-main {
  padding: 2rem 0;
}

.s72d-section {
  margin-bottom: 3rem;
}

.s72d-section-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--s72d-primary);
  text-align: center;
}

.s72d-heading {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--s72d-light);
  text-align: center;
}

/* Game Grid */
.s72d-game-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.s72d-game-card {
  background: var(--s72d-darker);
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
  text-decoration: none;
  color: var(--s72d-light);
  display: block;
}

.s72d-game-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px var(--s72d-shadow);
}

.s72d-game-icon {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.s72d-game-name {
  padding: 0.5rem;
  font-size: 1.1rem;
  text-align: center;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Cards */
.s72d-card {
  background: var(--s72d-darker);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(218, 112, 214, 0.2);
}

.s72d-card-title {
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--s72d-primary);
  margin-bottom: 1rem;
}

.s72d-card-content {
  font-size: 1.4rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
}

.s72d-card-content p {
  margin-bottom: 1rem;
}

/* Links */
.s72d-link {
  color: var(--s72d-primary);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.s72d-link:hover {
  color: var(--s72d-secondary);
  text-decoration: underline;
}

/* Bottom Navigation */
.s72d-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: var(--s72d-bg-overlay);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(218, 112, 214, 0.2);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
}

@media (min-width: 769px) {
  .s72d-bottom-nav {
    display: none;
  }
}

.s72d-bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 60px;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.7);
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  background: transparent;
  padding: 0.5rem;
  border-radius: 8px;
}

.s72d-bottom-nav-item:hover {
  color: var(--s72d-primary);
  background: rgba(218, 112, 214, 0.1);
  transform: scale(1.05);
}

.s72d-bottom-nav-item.s72d-nav-active {
  color: var(--s72d-primary);
}

.s72d-nav-icon {
  font-size: 2rem;
  margin-bottom: 0.2rem;
}

.s72d-nav-text {
  font-size: 1rem;
  font-weight: 500;
}

/* Footer */
.s72d-footer {
  background: var(--s72d-darker);
  padding: 2rem 0 100px 0;
  margin-top: 3rem;
  border-top: 1px solid rgba(218, 112, 214, 0.2);
}

@media (min-width: 769px) {
  .s72d-footer {
    padding-bottom: 2rem;
  }
}

.s72d-footer-content {
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1rem;
}

.s72d-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.s72d-footer-link {
  color: var(--s72d-primary);
  text-decoration: none;
  font-size: 1.2rem;
  padding: 0.5rem 1rem;
  background: rgba(218, 112, 214, 0.1);
  border-radius: 6px;
  transition: all 0.3s ease;
}

.s72d-footer-link:hover {
  background: rgba(218, 112, 214, 0.2);
  transform: translateY(-2px);
}

.s72d-partners {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.s72d-partner-icon {
  width: 40px;
  height: 40px;
  object-fit: contain;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.s72d-partner-icon:hover {
  opacity: 1;
}

.s72d-copyright {
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: 1.2rem;
}

/* Utility Classes */
.s72d-text-center {
  text-align: center;
}

.s72d-mb-1 {
  margin-bottom: 1rem;
}

.s72d-mb-2 {
  margin-bottom: 2rem;
}

.s72d-mt-2 {
  margin-top: 2rem;
}

/* Touch Feedback */
.s72d-touch-active {
  transform: scale(0.95);
}

/* Responsive Adjustments */
@media (max-width: 360px) {
  .s72d-game-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Animations */
@keyframes s72d-pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

.s72d-pulse {
  animation: s72d-pulse 2s infinite;
}
