/* jil29 website CSS */
/* All classes use w4d2b prefix for namespace isolation */

/* CSS Variables with w4d2b prefix */
:root {
  --w4d2b-primary: #2C3E50;
  --w4d2b-secondary: #FF69B4;
  --w4d2b-accent1: #C9C9FF;
  --w4d2b-accent2: #FF8A80;
  --w4d2b-bg-dark: #1a1a2e;
  --w4d2b-bg-light: #ffffff;
  --w4d2b-text-dark: #2C3E50;
  --w4d2b-text-light: #ffffff;
  --w4d2b-border-radius: 8px;
  --w4d2b-transition: all 0.3s ease;
  --w4d2b-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --w4d2b-shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* 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.6rem;
  line-height: 1.5;
  color: var(--w4d2b-text-dark);
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--w4d2b-transition);
}

button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
}

/* Container Classes */
.w4d2b-container {
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1rem;
  background: var(--w4d2b-bg-light);
  min-height: 100vh;
}

.w4d2b-wrapper {
  padding: 1rem;
}

/* Header Styles */
.w4d2b-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, var(--w4d2b-primary) 0%, #34495e 100%);
  color: var(--w4d2b-text-light);
  padding: 0.8rem 1rem;
  z-index: 1000;
  box-shadow: var(--w4d2b-shadow-lg);
  transition: transform 0.3s ease;
}

.w4d2b-header.w4d2b-header-hidden {
  transform: translateY(-100%);
}

.w4d2b-header-content {
  max-width: 430px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.w4d2b-logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--w4d2b-text-light);
}

.w4d2b-logo img {
  width: 32px;
  height: 32px;
  border-radius: 4px;
}

.w4d2b-header-buttons {
  display: flex;
  gap: 0.8rem;
}

.w4d2b-btn {
  padding: 0.6rem 1.2rem;
  border-radius: var(--w4d2b-border-radius);
  font-size: 1.3rem;
  font-weight: 600;
  transition: var(--w4d2b-transition);
  cursor: pointer;
  text-align: center;
  display: inline-block;
}

.w4d2b-btn-register {
  background: linear-gradient(135deg, var(--w4d2b-secondary) 0%, #ff1493 100%);
  color: var(--w4d2b-text-light);
  box-shadow: 0 2px 8px rgba(255, 105, 180, 0.3);
}

.w4d2b-btn-register:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 105, 180, 0.4);
}

.w4d2b-btn-login {
  background: rgba(255, 255, 255, 0.15);
  color: var(--w4d2b-text-light);
  border: 2px solid var(--w4d2b-accent1);
}

.w4d2b-btn-login:hover {
  background: var(--w4d2b-accent1);
  color: var(--w4d2b-primary);
}

.w4d2b-menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
  cursor: pointer;
  z-index: 10001;
}

.w4d2b-menu-toggle span {
  width: 25px;
  height: 3px;
  background: var(--w4d2b-text-light);
  border-radius: 2px;
  transition: var(--w4d2b-transition);
}

.w4d2b-menu-toggle:hover span {
  background: var(--w4d2b-accent1);
}

/* Mobile Menu */
.w4d2b-mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(44, 62, 80, 0.98);
  z-index: 9999;
  padding: 6rem 2rem 2rem;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
}

.w4d2b-mobile-menu.w4d2b-menu-open {
  transform: translateX(0);
}

.w4d2b-menu-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-size: 2rem;
  color: var(--w4d2b-text-light);
  cursor: pointer;
  padding: 0.5rem;
}

.w4d2b-menu-nav {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.w4d2b-menu-link {
  padding: 1rem;
  color: var(--w4d2b-text-light);
  font-size: 1.6rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: var(--w4d2b-transition);
}

.w4d2b-menu-link:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--w4d2b-accent1);
  padding-left: 1.5rem;
}

/* Main Content */
main {
  padding-top: 60px;
  padding-bottom: 80px;
}

.w4d2b-section {
  padding: 2rem 0;
  margin-bottom: 2rem;
}

.w4d2b-section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--w4d2b-primary);
  margin-bottom: 1.5rem;
  text-align: center;
  position: relative;
  padding-bottom: 1rem;
}

.w4d2b-section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--w4d2b-secondary) 0%, var(--w4d2b-accent1) 100%);
  border-radius: 2px;
}

/* Carousel */
.w4d2b-carousel {
  position: relative;
  overflow: hidden;
  border-radius: var(--w4d2b-border-radius);
  margin-bottom: 2rem;
  box-shadow: var(--w4d2b-shadow-lg);
}

.w4d2b-carousel-slides {
  display: flex;
  transition: transform 0.5s ease;
}

.w4d2b-carousel-slide {
  min-width: 100%;
  position: relative;
}

.w4d2b-carousel-slide img {
  width: 100%;
  height: auto;
  display: block;
}

.w4d2b-carousel-dots {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 10;
}

.w4d2b-carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: var(--w4d2b-transition);
}

.w4d2b-carousel-dot.w4d2b-active {
  background: var(--w4d2b-secondary);
  width: 25px;
  border-radius: 5px;
}

/* Game Grid */
.w4d2b-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
  margin-bottom: 2rem;
}

.w4d2b-game-item {
  position: relative;
  border-radius: var(--w4d2b-border-radius);
  overflow: hidden;
  box-shadow: var(--w4d2b-shadow);
  transition: var(--w4d2b-transition);
  cursor: pointer;
  background: var(--w4d2b-bg-light);
}

.w4d2b-game-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--w4d2b-shadow-lg);
}

.w4d2b-game-item img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
}

.w4d2b-game-name {
  padding: 0.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  text-align: center;
  color: var(--w4d2b-primary);
  background: linear-gradient(135deg, var(--w4d2b-accent1) 0%, var(--w4d2b-accent2) 100%);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.w4d2b-game-category {
  margin: 2rem 0 1rem;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--w4d2b-primary);
  border-left: 4px solid var(--w4d2b-secondary);
  padding-left: 1rem;
}

/* Card Styles */
.w4d2b-card {
  background: var(--w4d2b-bg-light);
  border-radius: var(--w4d2b-border-radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--w4d2b-shadow);
  transition: var(--w4d2b-transition);
}

.w4d2b-card:hover {
  box-shadow: var(--w4d2b-shadow-lg);
  transform: translateY(-2px);
}

.w4d2b-card-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--w4d2b-primary);
  margin-bottom: 1rem;
}

.w4d2b-card-content {
  font-size: 1.5rem;
  line-height: 1.6;
  color: var(--w4d2b-text-dark);
}

/* Link Styles */
.w4d2b-link {
  color: var(--w4d2b-secondary);
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
}

.w4d2b-link:hover {
  color: var(--w4d2b-accent2);
}

/* Footer */
.w4d2b-footer {
  background: linear-gradient(135deg, var(--w4d2b-primary) 0%, #34495e 100%);
  color: var(--w4d2b-text-light);
  padding: 2rem 1rem 8rem;
  margin-top: 3rem;
}

.w4d2b-footer-content {
  max-width: 430px;
  margin: 0 auto;
}

.w4d2b-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
  justify-content: center;
}

.w4d2b-footer-link {
  color: var(--w4d2b-accent1);
  font-size: 1.4rem;
  padding: 0.5rem 1rem;
  border: 1px solid var(--w4d2b-accent1);
  border-radius: var(--w4d2b-border-radius);
  transition: var(--w4d2b-transition);
}

.w4d2b-footer-link:hover {
  background: var(--w4d2b-accent1);
  color: var(--w4d2b-primary);
}

.w4d2b-partners {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.w4d2b-partner-logo {
  width: 60px;
  height: 40px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.8;
  transition: var(--w4d2b-transition);
}

.w4d2b-partner-logo:hover {
  opacity: 1;
  transform: scale(1.05);
}

.w4d2b-copyright {
  text-align: center;
  font-size: 1.2rem;
  color: var(--w4d2b-accent1);
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Mobile Bottom Navigation */
.w4d2b-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(180deg, var(--w4d2b-primary) 0%, #1a252f 100%);
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 0.5rem 0;
  z-index: 1000;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  border-top: 2px solid var(--w4d2b-secondary);
}

.w4d2b-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  min-width: 60px;
  min-height: 60px;
  justify-content: center;
  cursor: pointer;
  transition: var(--w4d2b-transition);
  padding: 0.5rem;
  border-radius: var(--w4d2b-border-radius);
}

.w4d2b-nav-item:hover {
  background: rgba(255, 105, 180, 0.1);
  transform: scale(1.05);
}

.w4d2b-nav-item.w4d2b-active {
  color: var(--w4d2b-secondary);
}

.w4d2b-nav-icon {
  font-size: 24px;
  display: block;
}

.w4d2b-nav-text {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Desktop Styles */
@media (min-width: 769px) {
  .w4d2b-bottom-nav {
    display: none;
  }

  main {
    padding-bottom: 2rem;
  }

  .w4d2b-menu-toggle {
    display: none;
  }
}

@media (max-width: 768px) {
  .w4d2b-container {
    max-width: 100%;
  }
}

/* Utility Classes */
.w4d2b-text-center {
  text-align: center;
}

.w4d2b-mt-1 {
  margin-top: 1rem;
}

.w4d2b-mt-2 {
  margin-top: 2rem;
}

.w4d2b-mb-1 {
  margin-bottom: 1rem;
}

.w4d2b-mb-2 {
  margin-bottom: 2rem;
}

.w4d2b-p-1 {
  padding: 1rem;
}

.w4d2b-p-2 {
  padding: 2rem;
}

/* Animation Keyframes */
@keyframes w4d2b-fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.w4d2b-fade-in {
  animation: w4d2b-fadeIn 0.5s ease forwards;
}
