/**
 * paldo panalo - Design System
 * All classes use prefix: gd65
 * Color Palette: #FFE4B5 | #DEB887 | #3A3A3A
 */

/* CSS Variables */
:root {
  --gd65-primary: #FFE4B5;
  --gd65-secondary: #DEB887;
  --gd65-dark: #3A3A3A;
  --gd65-darker: #2a2a2a;
  --gd65-light: #FFE4B5;
  --gd65-text: #FFE4B5;
  --gd65-text-muted: #DEB887;
  --gd65-border: #DEB887;
  --gd65-shadow: rgba(0, 0, 0, 0.3);
  --gd65-gradient: linear-gradient(135deg, #3A3A3A 0%, #2a2a2a 100%);
}

/* Reset and 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, 'Helvetica Neue', Arial, sans-serif;
  font-size: 1.6rem;
  line-height: 1.5;
  color: var(--gd65-text);
  background: var(--gd65-dark);
  min-height: 100vh;
}

/* Container */
.gd65-container {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1rem;
}

.gd65-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header */
.gd65-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--gd65-darker);
  box-shadow: 0 2px 10px var(--gd65-shadow);
  z-index: 1000;
  padding: 0.8rem 0;
}

.gd65-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.gd65-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--gd65-text);
  font-size: 1.8rem;
  font-weight: 700;
}

.gd65-logo img {
  width: 32px;
  height: 32px;
}

.gd65-header-buttons {
  display: flex;
  gap: 0.5rem;
}

.gd65-btn {
  padding: 0.6rem 1.2rem;
  border: none;
  border-radius: 6px;
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

.gd65-btn-primary {
  background: var(--gd65-primary);
  color: var(--gd65-dark);
}

.gd65-btn-primary:hover {
  background: var(--gd65-secondary);
  transform: scale(1.05);
}

.gd65-btn-secondary {
  background: var(--gd65-secondary);
  color: var(--gd65-dark);
}

.gd65-btn-secondary:hover {
  background: var(--gd65-primary);
  transform: scale(1.05);
}

.gd65-menu-btn {
  background: none;
  border: none;
  color: var(--gd65-text);
  font-size: 2rem;
  cursor: pointer;
  padding: 0.5rem;
}

/* Mobile Menu */
.gd65-mobile-menu {
  position: fixed;
  top: 0;
  left: -100%;
  width: 80%;
  max-width: 300px;
  height: 100vh;
  background: var(--gd65-darker);
  box-shadow: 2px 0 10px var(--gd65-shadow);
  z-index: 9999;
  transition: left 0.3s ease;
  overflow-y: auto;
}

.gd65-mobile-menu.gd65-menu-open {
  left: 0;
}

.gd65-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  border-bottom: 1px solid var(--gd65-border);
}

.gd65-menu-close {
  background: none;
  border: none;
  color: var(--gd65-text);
  font-size: 2rem;
  cursor: pointer;
  padding: 0.5rem;
}

.gd65-menu-nav {
  padding: 1rem;
}

.gd65-menu-nav a {
  display: block;
  padding: 0.8rem 0;
  color: var(--gd65-text);
  text-decoration: none;
  border-bottom: 1px solid rgba(222, 184, 135, 0.2);
  transition: all 0.3s ease;
}

.gd65-menu-nav a:hover {
  color: var(--gd65-primary);
  padding-left: 0.5rem;
}

.gd65-menu-nav a:last-child {
  border-bottom: none;
}

/* Main Content */
main {
  margin-top: 60px;
  padding-bottom: 80px;
}

.gd65-section {
  padding: 2rem 0;
}

.gd65-title {
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--gd65-primary);
  margin-bottom: 1rem;
  text-align: center;
}

.gd65-subtitle {
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--gd65-secondary);
  margin-bottom: 1.5rem;
}

/* Carousel */
.gd65-carousel {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  border-radius: 10px;
  margin-bottom: 2rem;
}

.gd65-carousel-inner {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.5s ease;
}

.gd65-carousel-item {
  min-width: 100%;
  height: 100%;
}

.gd65-carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Game Grid */
.gd65-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
  margin-bottom: 2rem;
}

.gd65-game-item {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.gd65-game-item:hover {
  transform: scale(1.05);
}

.gd65-game-item img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
}

.gd65-game-name {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(58, 58, 58, 0.9);
  color: var(--gd65-text);
  padding: 0.4rem;
  font-size: 0.9rem;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gd65-category-title {
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--gd65-primary);
  margin: 2rem 0 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Card */
.gd65-card {
  background: var(--gd65-darker);
  border-radius: 10px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 6px var(--gd65-shadow);
}

.gd65-card-title {
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--gd65-primary);
  margin-bottom: 1rem;
}

/* Promo Links */
.gd65-promo-link {
  color: var(--gd65-primary);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid var(--gd65-secondary);
  transition: all 0.3s ease;
}

.gd65-promo-link:hover {
  color: var(--gd65-secondary);
  border-color: var(--gd65-primary);
}

/* Footer */
.gd65-footer {
  background: var(--gd65-darker);
  padding: 2rem 0 1rem;
  margin-top: 2rem;
}

.gd65-footer-content {
  margin-bottom: 1.5rem;
}

.gd65-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
  justify-content: center;
}

.gd65-footer-links a {
  color: var(--gd65-text);
  text-decoration: none;
  font-size: 1.2rem;
  transition: color 0.3s ease;
}

.gd65-footer-links a:hover {
  color: var(--gd65-primary);
}

.gd65-partners {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.gd65-partners img {
  width: 50px;
  height: 30px;
  object-fit: contain;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.gd65-partners img:hover {
  opacity: 1;
}

.gd65-copyright {
  text-align: center;
  font-size: 1.1rem;
  color: var(--gd65-text-muted);
  padding-top: 1rem;
  border-top: 1px solid var(--gd65-border);
}

/* Bottom Navigation */
.gd65-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: var(--gd65-darker);
  box-shadow: 0 -2px 10px var(--gd65-shadow);
  z-index: 1000;
  display: flex;
  justify-content: space-around;
  align-items: center;
}

@media (min-width: 769px) {
  .gd65-bottom-nav {
    display: none;
  }
}

.gd65-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 60px;
  text-decoration: none;
  color: var(--gd65-text);
  transition: all 0.3s ease;
  cursor: pointer;
}

.gd65-nav-item:hover,
.gd65-nav-item.active {
  color: var(--gd65-primary);
  transform: scale(1.1);
}

.gd65-nav-icon {
  font-size: 24px;
  margin-bottom: 2px;
}

.gd65-nav-text {
  font-size: 10px;
  font-weight: 500;
}

/* Responsive */
@media (max-width: 768px) {
  main {
    padding-bottom: 80px;
  }
}

/* Utility */
.gd65-text-center {
  text-align: center;
}

.gd65-mb-1 {
  margin-bottom: 1rem;
}

.gd65-mb-2 {
  margin-bottom: 2rem;
}

.gd65-mt-2 {
  margin-top: 2rem;
}
