/**
 * Jilli Website - Design Styles
 * All classes use g530- prefix for namespace isolation
 */

/* CSS Variables */
:root {
  --g530-primary: #AD1457;
  --g530-secondary: #FFB3BA;
  --g530-accent: #E91E63;
  --g530-dark: #0C0C0C;
  --g530-purple: #9370DB;
  --g530-text-light: #FFFFFF;
  --g530-text-dim: #B0B0B0;
  --g530-bg-card: #1A1A1A;
  --g530-bg-hover: #252525;
  --g530-shadow: rgba(173, 20, 87, 0.3);
  --g530-gradient: linear-gradient(135deg, var(--g530-primary), var(--g530-accent));
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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(--g530-text-light);
  background-color: var(--g530-dark);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Container */
.g530-container {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1rem;
}

.g530-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header */
.g530-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: linear-gradient(180deg, rgba(12, 12, 12, 0.98) 0%, rgba(12, 12, 12, 0.95) 100%);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(173, 20, 87, 0.3);
  box-shadow: 0 2px 20px var(--g530-shadow);
}

.g530-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1rem;
}

.g530-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--g530-text-light);
}

.g530-logo-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--g530-gradient);
}

.g530-logo-text {
  font-size: 1.8rem;
  font-weight: 700;
  background: var(--g530-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.g530-header-actions {
  display: flex;
  gap: 0.5rem;
}

.g530-btn {
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 20px;
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.g530-btn-primary {
  background: var(--g530-gradient);
  color: var(--g530-text-light);
  box-shadow: 0 2px 10px var(--g530-shadow);
}

.g530-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px var(--g530-shadow);
}

.g530-btn-secondary {
  background: transparent;
  color: var(--g530-secondary);
  border: 1px solid var(--g530-secondary);
}

.g530-btn-secondary:hover {
  background: rgba(255, 179, 186, 0.1);
}

.g530-menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  color: var(--g530-text-light);
  cursor: pointer;
  border-radius: 8px;
  transition: background 0.3s ease;
}

.g530-menu-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
}

.g530-menu-toggle svg {
  width: 24px;
  height: 24px;
}

/* Mobile Menu */
.g530-mobile-menu {
  position: fixed;
  top: 56px;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(12, 12, 12, 0.98);
  backdrop-filter: blur(20px);
  z-index: 9999;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
}

.g530-mobile-menu.g530-menu-open {
  transform: translateX(0);
}

.g530-menu-list {
  list-style: none;
  padding: 2rem 1rem;
}

.g530-menu-item {
  margin-bottom: 0.5rem;
}

.g530-menu-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  color: var(--g530-text-light);
  text-decoration: none;
  border-radius: 12px;
  transition: background 0.3s ease;
  font-size: 1.6rem;
}

.g530-menu-link:hover {
  background: rgba(173, 20, 87, 0.2);
}

.g530-menu-icon {
  width: 24px;
  height: 24px;
  color: var(--g530-accent);
}

/* Main Content */
.g530-main {
  flex: 1;
  margin-top: 56px;
  padding-bottom: 80px;
}

/* Carousel */
.g530-carousel {
  position: relative;
  width: 100%;
  max-width: 430px;
  margin: 0 auto 2rem;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 20px var(--g530-shadow);
}

.g530-carousel-track {
  display: flex;
  transition: transform 0.5s ease;
}

.g530-carousel-slide {
  min-width: 100%;
  position: relative;
}

.g530-carousel-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.g530-carousel-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
  background: linear-gradient(transparent, rgba(12, 12, 12, 0.9));
}

.g530-carousel-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--g530-text-light);
  margin-bottom: 0.5rem;
}

.g530-carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background: rgba(12, 12, 12, 0.7);
  border: none;
  border-radius: 50%;
  color: var(--g530-text-light);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.g530-carousel-nav:hover {
  background: var(--g530-primary);
}

.g530-carousel-prev {
  left: 10px;
}

.g530-carousel-next {
  right: 10px;
}

.g530-carousel-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}

.g530-carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.g530-carousel-dot.g530-active {
  background: var(--g530-accent);
  width: 20px;
  border-radius: 4px;
}

/* Content Sections */
.g530-section {
  padding: 2rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.g530-section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--g530-text-light);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.g530-section-title svg {
  width: 24px;
  height: 24px;
  color: var(--g530-accent);
}

/* Game Grid */
.g530-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
  margin-bottom: 2rem;
}

.g530-game-item {
  position: relative;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.g530-game-item:hover {
  transform: scale(1.05);
}

.g530-game-icon {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
  background: var(--g530-bg-card);
  display: block;
}

.g530-game-name {
  font-size: 1rem;
  color: var(--g530-text-dim);
  text-align: center;
  margin-top: 0.3rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.2;
}

/* Cards */
.g530-card {
  background: var(--g530-bg-card);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(173, 20, 87, 0.2);
  transition: all 0.3s ease;
}

.g530-card:hover {
  border-color: var(--g530-primary);
  box-shadow: 0 4px 20px var(--g530-shadow);
}

.g530-card-title {
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--g530-secondary);
  margin-bottom: 1rem;
}

.g530-card-content {
  font-size: 1.4rem;
  color: var(--g530-text-dim);
  line-height: 1.6;
}

.g530-card-content p {
  margin-bottom: 1rem;
}

.g530-card-content a {
  color: var(--g530-accent);
  text-decoration: none;
  font-weight: 600;
}

.g530-card-content a:hover {
  text-decoration: underline;
}

/* Links */
.g530-link {
  color: var(--g530-accent);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.g530-link:hover {
  color: var(--g530-secondary);
}

/* Featured Games */
.g530-featured {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.g530-featured-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
}

.g530-featured-icon {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.g530-featured-item:hover .g530-featured-icon {
  transform: scale(1.1);
}

.g530-featured-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: var(--g530-gradient);
  color: var(--g530-text-light);
  font-size: 1rem;
  font-weight: 600;
  padding: 0.3rem 0.6rem;
  border-radius: 20px;
}

/* FAQ */
.g530-faq-item {
  margin-bottom: 1rem;
  border: 1px solid rgba(173, 20, 87, 0.2);
  border-radius: 8px;
  overflow: hidden;
}

.g530-faq-question {
  width: 100%;
  padding: 1rem;
  background: var(--g530-bg-card);
  color: var(--g530-text-light);
  border: none;
  text-align: left;
  font-size: 1.4rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.g530-faq-question:hover {
  background: var(--g530-bg-hover);
}

.g530-faq-answer {
  padding: 0 1rem;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
  background: rgba(26, 26, 26, 0.5);
}

.g530-faq-answer.g530-open {
  padding: 1rem;
  max-height: 500px;
}

.g530-faq-answer p {
  font-size: 1.3rem;
  color: var(--g530-text-dim);
  line-height: 1.6;
}

/* Footer */
.g530-footer {
  background: linear-gradient(180deg, rgba(26, 26, 26, 1) 0%, rgba(12, 12, 12, 1) 100%);
  padding: 2rem 0 90px;
  border-top: 1px solid rgba(173, 20, 87, 0.3);
}

.g530-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}

.g530-footer-link {
  color: var(--g530-text-dim);
  text-decoration: none;
  font-size: 1.3rem;
  transition: color 0.3s ease;
}

.g530-footer-link:hover {
  color: var(--g530-accent);
}

.g530-partners {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.g530-partner-logo {
  width: 60px;
  height: 30px;
  object-fit: contain;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.g530-partner-logo:hover {
  opacity: 1;
}

.g530-footer-bottom {
  text-align: center;
  color: var(--g530-text-dim);
  font-size: 1.2rem;
}

/* Bottom Navigation */
.g530-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: linear-gradient(180deg, rgba(12, 12, 12, 0.98) 0%, rgba(12, 12, 12, 1) 100%);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(173, 20, 87, 0.3);
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 60px;
  max-width: 430px;
  margin: 0 auto;
}

.g530-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 60px;
  background: transparent;
  border: none;
  color: var(--g530-text-dim);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.g530-nav-item:hover {
  color: var(--g530-secondary);
  transform: scale(1.05);
}

.g530-nav-item.g530-active {
  color: var(--g530-accent);
}

.g530-nav-item.g530-active::after {
  content: '';
  position: absolute;
  top: 8px;
  width: 4px;
  height: 4px;
  background: var(--g530-accent);
  border-radius: 50%;
}

.g530-nav-icon {
  font-size: 22px;
  margin-bottom: 2px;
  display: block;
}

.g530-nav-text {
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
}

/* Desktop specific - hide bottom nav */
@media (min-width: 769px) {
  .g530-bottom-nav {
    display: none;
  }

  .g530-main {
    padding-bottom: 2rem;
  }
}

/* Utilities */
.g530-text-center {
  text-align: center;
}

.g530-mt-1 {
  margin-top: 1rem;
}

.g530-mt-2 {
  margin-top: 2rem;
}

.g530-mb-1 {
  margin-bottom: 1rem;
}

.g530-mb-2 {
  margin-bottom: 2rem;
}

.g530-py-2 {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

/* Animations */
@keyframes g530-pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

.g530-pulse {
  animation: g530-pulse 2s ease-in-out infinite;
}

@keyframes g530-glow {
  0%, 100% {
    box-shadow: 0 0 5px var(--g530-primary);
  }
  50% {
    box-shadow: 0 0 20px var(--g530-accent), 0 0 30px var(--g530-primary);
  }
}

.g530-glow {
  animation: g530-glow 2s ease-in-out infinite;
}
