/**
 * Diwataplay Main Stylesheet
 * All classes use prefix: g93c-
 * Mobile-first responsive design (max-width: 430px)
 * Color Palette: #34495E | #9370DB | #E6E6FA | #B22222 | #E9ECEF | #BA55D3
 */

/* CSS Variables */
:root {
  --g93c-primary: #9370DB;
  --g93c-secondary: #BA55D3;
  --g93c-accent: #B22222;
  --g93c-dark: #34495E;
  --g93c-light: #E6E6FA;
  --g93c-bg: #E9ECEF;
  --g93c-white: #FFFFFF;
  --g93c-text: #34495E;
  --g93c-text-light: #E6E6FA;
  --g93c-border: #E6E6FA;
  --g93c-shadow: rgba(52, 73, 94, 0.1);
  --g93c-shadow-md: rgba(52, 73, 94, 0.15);
  --g93c-shadow-lg: rgba(52, 73, 94, 0.2);
  --g93c-header-height: 60px;
  --g93c-bottom-nav-height: 60px;
  --g93c-transition: all 0.3s ease;
}

/* Reset & 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, 'Helvetica Neue', Arial, sans-serif;
  font-size: 1.4rem;
  line-height: 1.6;
  color: var(--g93c-text);
  background-color: var(--g93c-bg);
  overflow-x: hidden;
}

body.g93c-menu-open {
  overflow: hidden;
}

/* Container & Layout */
.g93c-container {
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.g93c-wrapper {
  min-height: 100vh;
  padding-bottom: var(--g93c-bottom-nav-height);
}

.g93c-main {
  padding-top: var(--g93c-header-height);
  padding-bottom: 2rem;
}

/* Header Styles */
.g93c-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--g93c-header-height);
  background: linear-gradient(135deg, var(--g93c-primary), var(--g93c-secondary));
  box-shadow: 0 2px 10px var(--g93c-shadow);
  z-index: 1000;
  transition: var(--g93c-transition);
}

.g93c-header-scrolled {
  box-shadow: 0 4px 20px var(--g93c-shadow-md);
}

.g93c-header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.g93c-logo-wrapper {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
}

.g93c-logo-icon {
  width: 32px;
  height: 32px;
  border-radius: 6px;
}

.g93c-logo-text {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--g93c-white);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.g93c-header-actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.g93c-btn {
  padding: 0.8rem 1.6rem;
  font-size: 1.3rem;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--g93c-transition);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
}

.g93c-btn-primary {
  background-color: var(--g93c-accent);
  color: var(--g93c-white);
}

.g93c-btn-primary:hover {
  background-color: #8B1818;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(178, 34, 34, 0.3);
}

.g93c-btn-secondary {
  background-color: var(--g93c-white);
  color: var(--g93c-primary);
  padding: 0.6rem 1.2rem;
  font-size: 1.2rem;
}

.g93c-btn-secondary:hover {
  background-color: var(--g93c-light);
  transform: translateY(-2px);
}

.g93c-menu-btn {
  background: transparent;
  border: none;
  color: var(--g93c-white);
  font-size: 2.4rem;
  cursor: pointer;
  padding: 0.5rem;
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Mobile Menu */
.g93c-mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 300px;
  height: 100vh;
  background-color: var(--g93c-white);
  box-shadow: -2px 0 20px var(--g93c-shadow-lg);
  z-index: 9999;
  transition: right 0.3s ease;
  overflow-y: auto;
}

.g93c-mobile-menu.g93c-menu-open {
  right: 0;
}

.g93c-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0);
  z-index: 9998;
  pointer-events: none;
  transition: background-color 0.3s ease;
}

.g93c-menu-overlay.g93c-overlay-active {
  background-color: rgba(0, 0, 0, 0.5);
  pointer-events: auto;
}

.g93c-menu-header {
  padding: 2rem 1.5rem;
  background: linear-gradient(135deg, var(--g93c-primary), var(--g93c-secondary));
  color: var(--g93c-white);
}

.g93c-menu-title {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.g93c-menu-subtitle {
  font-size: 1.2rem;
  opacity: 0.9;
}

.g93c-menu-nav {
  padding: 1rem 0;
}

.g93c-nav-link {
  display: flex;
  align-items: center;
  padding: 1.4rem 1.5rem;
  color: var(--g93c-text);
  text-decoration: none;
  font-size: 1.5rem;
  transition: var(--g93c-transition);
  border-left: 3px solid transparent;
}

.g93c-nav-link:hover,
.g93c-nav-link.g93c-nav-active {
  background-color: var(--g93c-light);
  border-left-color: var(--g93c-primary);
  color: var(--g93c-primary);
}

.g93c-nav-link i {
  margin-right: 1.2rem;
  font-size: 1.8rem;
  width: 24px;
  text-align: center;
}

/* Bottom Navigation */
.g93c-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--g93c-bottom-nav-height);
  background: linear-gradient(135deg, var(--g93c-dark), var(--g93c-primary));
  box-shadow: 0 -2px 10px var(--g93c-shadow);
  z-index: 1000;
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 0 0.5rem;
}

.g93c-bottom-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60px;
  color: var(--g93c-text-light);
  text-decoration: none;
  transition: var(--g93c-transition);
  opacity: 0.7;
}

.g93c-bottom-nav-item:hover,
.g93c-bottom-nav-item.g93c-nav-active {
  opacity: 1;
  transform: scale(1.05);
}

.g93c-bottom-nav-item i {
  font-size: 2.4rem;
  margin-bottom: 0.3rem;
}

.g93c-bottom-nav-item span {
  font-size: 1rem;
  font-weight: 500;
}

/* Carousel/Slider */
.g93c-carousel {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  border-radius: 12px;
  margin-bottom: 2rem;
}

.g93c-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease;
  cursor: pointer;
}

.g93c-slide.g93c-slide-active {
  opacity: 1;
  z-index: 1;
}

.g93c-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.g93c-carousel-dots {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.8rem;
  z-index: 2;
}

.g93c-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: var(--g93c-transition);
}

.g93c-dot.g93c-dot-active {
  background-color: var(--g93c-white);
  transform: scale(1.3);
}

/* Section Styles */
.g93c-section {
  margin-bottom: 3rem;
}

.g93c-section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--g93c-dark);
  margin-bottom: 1.5rem;
  padding-bottom: 0.8rem;
  border-bottom: 3px solid var(--g93c-primary);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.g93c-section-title i {
  color: var(--g93c-primary);
  font-size: 2.4rem;
}

.g93c-section-subtitle {
  font-size: 1.4rem;
  color: var(--g93c-text);
  opacity: 0.8;
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

/* Game Grid */
.g93c-game-category {
  margin-bottom: 3rem;
}

.g93c-category-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: linear-gradient(135deg, var(--g93c-primary), var(--g93c-secondary));
  border-radius: 10px;
  color: var(--g93c-white);
}

.g93c-category-header i {
  font-size: 2.4rem;
}

.g93c-category-title {
  font-size: 1.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.g93c-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.g93c-game-item {
  background-color: var(--g93c-white);
  border-radius: 10px;
  padding: 0.8rem;
  text-align: center;
  cursor: pointer;
  transition: var(--g93c-transition);
  box-shadow: 0 2px 8px var(--g93c-shadow);
  text-decoration: none;
  color: var(--g93c-text);
}

.g93c-game-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 20px var(--g93c-shadow-md);
}

.g93c-game-icon {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 8px;
  object-fit: cover;
  margin-bottom: 0.5rem;
}

.g93c-game-name {
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Card Component */
.g93c-card {
  background-color: var(--g93c-white);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 15px var(--g93c-shadow);
  margin-bottom: 2rem;
}

.g93c-card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--g93c-light);
}

.g93c-card-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--g93c-primary), var(--g93c-secondary));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--g93c-white);
  font-size: 2.4rem;
}

.g93c-card-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--g93c-dark);
}

.g93c-card-content {
  font-size: 1.4rem;
  line-height: 1.6;
  color: var(--g93c-text);
}

.g93c-card-content p {
  margin-bottom: 1rem;
}

.g93c-card-content ul,
.g93c-card-content ol {
  padding-left: 2rem;
  margin-bottom: 1rem;
}

.g93c-card-content li {
  margin-bottom: 0.8rem;
}

/* Link Styles */
.g93c-link {
  color: var(--g93c-primary);
  text-decoration: none;
  font-weight: 600;
  transition: var(--g93c-transition);
}

.g93c-link:hover {
  color: var(--g93c-secondary);
  text-decoration: underline;
}

.g93c-link-bold {
  font-weight: 700;
  font-size: 1.5rem;
}

/* Footer */
.g93c-footer {
  background-color: var(--g93c-dark);
  color: var(--g93c-text-light);
  padding: 3rem 0 calc(var(--g93c-bottom-nav-height) + 2rem);
}

.g93c-footer-content {
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.g93c-footer-section {
  margin-bottom: 2.5rem;
}

.g93c-footer-title {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 1.2rem;
  color: var(--g93c-white);
}

.g93c-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.g93c-footer-link {
  color: var(--g93c-text-light);
  text-decoration: none;
  font-size: 1.3rem;
  transition: var(--g93c-transition);
}

.g93c-footer-link:hover {
  color: var(--g93c-white);
  text-decoration: underline;
}

.g93c-partners {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
}

.g93c-partner-icon {
  width: 100%;
  height: auto;
  opacity: 0.7;
  transition: var(--g93c-transition);
  filter: grayscale(100%);
}

.g93c-partner-icon:hover {
  opacity: 1;
  filter: grayscale(0%);
}

.g93c-copyright {
  text-align: center;
  font-size: 1.2rem;
  opacity: 0.7;
  padding-top: 2rem;
  border-top: 1px solid rgba(230, 230, 250, 0.2);
}

/* Utility Classes */
.g93c-text-center {
  text-align: center;
}

.g93c-text-bold {
  font-weight: 700;
}

.g93c-mt-1 {
  margin-top: 1rem;
}

.g93c-mt-2 {
  margin-top: 2rem;
}

.g93c-mb-1 {
  margin-bottom: 1rem;
}

.g93c-mb-2 {
  margin-bottom: 2rem;
}

.g93c-fade-in {
  animation: g93cFadeIn 0.5s ease forwards;
}

@keyframes g93cFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Desktop Styles */
@media (min-width: 769px) {
  .g93c-bottom-nav {
    display: none;
  }

  .g93c-wrapper {
    padding-bottom: 0;
  }

  .g93c-game-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}
