/**
 * Jilibibi Core Stylesheet
 * Mobile-first responsive design for jilibibi.com
 * @version 1.0.0
 */

:root {
  --vd48-primary: #FFB347;
  --vd48-secondary: #A0522D;
  --vd48-accent: #00695C;
  --vd48-dark: #0C0C0C;
  --vd48-darker: #1a1a1a;
  --vd48-darkest: #2a2a2a;
  --vd48-light: #ffffff;
  --vd48-text-dark: #0C0C0C;
  --vd48-text-light: #ffffff;
  --vd48-text-muted: #cccccc;
  --vd48-bg-dark: #0C0C0C;
  --vd48-bg-card: #1a1a1a;
  --vd48-border: #333333;
  --vd48-shadow: rgba(0, 0, 0, 0.5);
  --vd48-gradient: linear-gradient(135deg, #FFB347 0%, #A0522D 100%);
}

* { 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.6;
  color: var(--vd48-text-light);
  background-color: var(--vd48-dark);
  min-height: 100vh;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 { font-weight: 600; line-height: 1.3; margin-bottom: 1rem; }
h1 { font-size: 2.4rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.8rem; }
h4 { font-size: 1.6rem; }

p { margin-bottom: 1rem; color: var(--vd48-text-muted); }

a { color: var(--vd48-primary); text-decoration: none; transition: color 0.3s ease; }
a:hover { color: var(--vd48-secondary); }

img { max-width: 100%; height: auto; display: block; }

.vd48-container {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1rem;
}

.vd48-wrapper {
  padding-top: 70px;
  padding-bottom: 80px;
}

.vd48-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: linear-gradient(to right, var(--vd48-dark), var(--vd48-darker));
  border-bottom: 2px solid var(--vd48-primary);
  z-index: 1000;
  display: flex;
  align-items: center;
  box-shadow: 0 2px 15px var(--vd48-shadow);
}

.vd48-header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1rem;
}

.vd48-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--vd48-primary);
}

.vd48-logo img { width: 28px; height: 28px; }

.vd48-header-actions { display: flex; gap: 0.8rem; }

.vd48-btn {
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  text-transform: uppercase;
}

.vd48-btn-register {
  background: var(--vd48-gradient);
  color: var(--vd48-text-dark);
}

.vd48-btn-register:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(255, 179, 71, 0.4);
}

.vd48-btn-login {
  background: transparent;
  color: var(--vd48-primary);
  border: 2px solid var(--vd48-primary);
}

.vd48-btn-login:hover {
  background: var(--vd48-primary);
  color: var(--vd48-text-dark);
}

.vd48-menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.vd48-menu-toggle span {
  width: 24px;
  height: 2px;
  background-color: var(--vd48-primary);
  transition: all 0.3s ease;
}

.vd48-mobile-menu {
  position: fixed;
  top: 0;
  left: -100%;
  width: 80%;
  max-width: 320px;
  height: 100vh;
  background-color: var(--vd48-darker);
  z-index: 9999;
  transition: left 0.3s ease;
  padding: 2rem 1rem;
  overflow-y: auto;
}

.vd48-mobile-menu.vd48-menu-open { left: 0; }

.vd48-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--vd48-border);
}

.vd48-menu-close {
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--vd48-primary);
  cursor: pointer;
}

.vd48-menu-nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.vd48-menu-nav a {
  padding: 1rem;
  border-radius: 8px;
  color: var(--vd48-text-light);
  transition: all 0.3s ease;
}

.vd48-menu-nav a:hover {
  background-color: var(--vd48-bg-card);
  color: var(--vd48-primary);
}

.vd48-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.vd48-menu-overlay.vd48-overlay-show {
  opacity: 1;
  visibility: visible;
}

.vd48-carousel {
  position: relative;
  margin-bottom: 2rem;
  overflow: hidden;
  border-radius: 12px;
}

.vd48-carousel-track { display: flex; transition: transform 0.5s ease; }

.vd48-carousel-slide { min-width: 100%; position: relative; }

.vd48-carousel-slide img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.vd48-carousel-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
  background: linear-gradient(to top, rgba(12, 12, 12, 0.9), transparent);
}

.vd48-carousel-title {
  font-size: 1.8rem;
  color: var(--vd48-text-light);
  margin-bottom: 0.5rem;
}

.vd48-carousel-btn {
  padding: 0.8rem 1.5rem;
  background: var(--vd48-gradient);
  color: var(--vd48-text-dark);
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.vd48-carousel-btn:hover { transform: scale(1.05); }

.vd48-section { margin-bottom: 2.5rem; }

.vd48-section-title {
  font-size: 1.8rem;
  color: var(--vd48-primary);
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--vd48-border);
}

.vd48-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
}

.vd48-game-item {
  background-color: var(--vd48-bg-card);
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 1px solid var(--vd48-border);
}

.vd48-game-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(255, 179, 71, 0.3);
  border-color: var(--vd48-primary);
}

.vd48-game-img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.vd48-game-name {
  padding: 0.5rem;
  font-size: 1rem;
  text-align: center;
  color: var(--vd48-text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vd48-card {
  background: linear-gradient(145deg, var(--vd48-bg-card), var(--vd48-darker));
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border: 1px solid var(--vd48-border);
}

.vd48-card-title {
  font-size: 1.6rem;
  color: var(--vd48-primary);
  margin-bottom: 1rem;
}

.vd48-card-content {
  color: var(--vd48-text-muted);
  line-height: 1.7;
}

.vd48-promo-link {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  background: var(--vd48-gradient);
  color: var(--vd48-text-dark);
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
  margin: 0.3rem;
}

.vd48-promo-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(255, 179, 71, 0.4);
}

.vd48-promo-text {
  color: var(--vd48-primary);
  font-weight: 600;
  text-decoration: underline;
}

.vd48-footer {
  background: linear-gradient(to right, var(--vd48-dark), var(--vd48-darker));
  padding: 2rem 1rem;
  border-top: 2px solid var(--vd48-primary);
  margin-top: 2rem;
}

.vd48-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 1.5rem;
  justify-content: center;
}

.vd48-footer-link {
  color: var(--vd48-text-muted);
  font-size: 1.2rem;
  padding: 0.4rem 0.8rem;
  border: 1px solid var(--vd48-border);
  border-radius: 4px;
  transition: all 0.3s ease;
}

.vd48-footer-link:hover {
  border-color: var(--vd48-primary);
  color: var(--vd48-primary);
}

.vd48-partners {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin: 1.5rem 0;
  padding: 1rem 0;
  border-top: 1px solid var(--vd48-border);
  border-bottom: 1px solid var(--vd48-border);
}

.vd48-partner-logo {
  width: 50px;
  height: 30px;
  object-fit: contain;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.vd48-partner-logo:hover { opacity: 1; }

.vd48-copyright {
  text-align: center;
  color: var(--vd48-text-muted);
  font-size: 1.2rem;
  margin-top: 1rem;
}

.vd48-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 62px;
  background: linear-gradient(to right, var(--vd48-dark), var(--vd48-darkest));
  border-top: 2px solid var(--vd48-primary);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 -2px 15px var(--vd48-shadow);
}

.vd48-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 60px;
  padding: 0.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  background: none;
  color: var(--vd48-text-muted);
}

.vd48-nav-item:hover,
.vd48-nav-item.vd48-nav-active {
  color: var(--vd48-primary);
  transform: scale(1.1);
}

.vd48-nav-icon { font-size: 22px; margin-bottom: 2px; }
.vd48-nav-label { font-size: 10px; font-weight: 500; }

.vd48-text-center { text-align: center; }
.vd48-text-primary { color: var(--vd48-primary); }
.vd48-mt-1 { margin-top: 1rem; }
.vd48-mb-1 { margin-bottom: 1rem; }
.vd48-mt-2 { margin-top: 2rem; }
.vd48-mb-2 { margin-bottom: 2rem; }

@media (min-width: 769px) {
  .vd48-bottom-nav { display: none; }
  .vd48-wrapper { padding-bottom: 2rem; }
  .vd48-menu-toggle { display: none; }
  .vd48-container { max-width: 1200px; }
  .vd48-game-grid { grid-template-columns: repeat(8, 1fr); }
}

@media (max-width: 768px) {
  .vd48-wrapper { padding-bottom: 80px; }
}

@keyframes vd48-fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.vd48-animate-fade-in {
  animation: vd48-fadeIn 0.5s ease forwards;
}

@keyframes vd48-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.vd48-animate-pulse:hover {
  animation: vd48-pulse 0.5s ease;
}
