/* god 1111 - Core Stylesheet */
/* All classes use v585- prefix for namespace isolation */
/* Color Palette: #FFBF00 | #FFAA00 | #262626 | #BF360C */

:root {
  --v585-primary: #FFBF00;
  --v585-secondary: #FFAA00;
  --v585-bg: #262626;
  --v585-accent: #BF360C;
  --v585-text: #FFFFFF;
  --v585-text-muted: #CCCCCC;
  --v585-card-bg: #1E1E1E;
  --v585-border: #3A3A3A;
  --v585-success: #4CAF50;
  --v585-gradient: linear-gradient(135deg, #FFBF00 0%, #FFAA00 100%);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  font-size: 62.5%;
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', 'Noto Sans Bengali', Arial, sans-serif;
  background-color: var(--v585-bg);
  color: var(--v585-text);
  line-height: 1.5rem;
  font-size: 1.4rem;
  max-width: 430px;
  margin: 0 auto;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }

/* Header */
.v585-header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  background: linear-gradient(180deg, #1A1A1A 0%, #262626 100%);
  z-index: 1000;
  border-bottom: 2px solid var(--v585-primary);
  padding: 0.6rem 1rem;
}

.v585-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4.4rem;
}

.v585-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.v585-logo img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
}

.v585-logo-text {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--v585-primary);
  letter-spacing: 0.5px;
}

.v585-header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.v585-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.2rem;
  border-radius: 2rem;
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.25s ease;
  min-height: 36px;
}

.v585-btn-register {
  background: var(--v585-gradient);
  color: #1A1A1A;
}

.v585-btn-login {
  background: transparent;
  color: var(--v585-primary);
  border: 1.5px solid var(--v585-primary);
}

.v585-btn:hover { transform: scale(1.05); }

.v585-menu-toggle {
  background: none;
  border: none;
  color: var(--v585-primary);
  font-size: 2rem;
  cursor: pointer;
  padding: 0.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Mobile Menu */
.v585-mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
  background: #1A1A1A;
}

.v585-menu-active { max-height: 400px !important; }

.v585-mobile-menu a {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1rem 1.2rem;
  color: var(--v585-text);
  font-size: 1.3rem;
  border-bottom: 1px solid var(--v585-border);
  transition: background 0.2s;
}

.v585-mobile-menu a:hover { background: #2A2A2A; }
.v585-mobile-menu a .material-icons { font-size: 2rem; color: var(--v585-primary); }

/* Main Content */
.v585-main {
  margin-top: 5.6rem;
  padding: 0;
}

/* Carousel */
.v585-carousel {
  position: relative;
  width: 100%;
  height: 180px;
  overflow: hidden;
  background: #111;
}

.v585-slide {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.6s ease;
  cursor: pointer;
}

.v585-slide img { width: 100%; height: 100%; object-fit: cover; }
.v585-slide-active { opacity: 1; }

.v585-carousel-dots {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
}

.v585-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  transition: background 0.3s;
}

.v585-dot-active { background: var(--v585-primary); }

/* Sections */
.v585-section {
  padding: 1.5rem 1rem;
}

.v585-section-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--v585-primary);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--v585-accent);
}

/* Game Grid */
.v585-category-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--v585-secondary);
  margin: 1.5rem 0 0.8rem;
  padding-left: 0.5rem;
  border-left: 3px solid var(--v585-accent);
}

.v585-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
}

.v585-game-item {
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s;
}

.v585-game-item:hover { transform: translateY(-2px); }

.v585-game-item img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 10px;
  border: 2px solid var(--v585-border);
  object-fit: cover;
  transition: border-color 0.2s;
}

.v585-game-item:hover img { border-color: var(--v585-primary); }

.v585-game-name {
  font-size: 1.1rem;
  color: var(--v585-text-muted);
  margin-top: 0.3rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Content Cards */
.v585-card {
  background: var(--v585-card-bg);
  border-radius: 12px;
  padding: 1.2rem;
  margin-bottom: 1rem;
  border: 1px solid var(--v585-border);
}

.v585-card h3 {
  font-size: 1.5rem;
  color: var(--v585-primary);
  margin-bottom: 0.6rem;
}

.v585-card p {
  color: var(--v585-text-muted);
  font-size: 1.3rem;
  line-height: 1.6;
}

/* Promo Link Styles */
.v585-promo-link {
  color: var(--v585-primary);
  font-weight: 700;
  cursor: pointer;
  transition: color 0.2s;
}

.v585-promo-link:hover { color: var(--v585-secondary); text-decoration: underline; }

.v585-promo-btn {
  display: inline-block;
  background: var(--v585-gradient);
  color: #1A1A1A;
  padding: 0.8rem 2rem;
  border-radius: 2.5rem;
  font-size: 1.4rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: all 0.3s;
  text-align: center;
}

.v585-promo-btn:hover { transform: scale(1.05); box-shadow: 0 4px 15px rgba(255,191,0,0.3); }

/* Footer */
.v585-footer {
  background: #1A1A1A;
  padding: 2rem 1rem 1rem;
  border-top: 2px solid var(--v585-accent);
}

.v585-footer-brand {
  text-align: center;
  margin-bottom: 1.5rem;
}

.v585-footer-brand p {
  color: var(--v585-text-muted);
  font-size: 1.2rem;
  margin: 0.4rem 0;
}

.v585-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}

.v585-footer-links a {
  display: inline-block;
  padding: 0.4rem 1rem;
  background: var(--v585-card-bg);
  border: 1px solid var(--v585-border);
  border-radius: 1.5rem;
  color: var(--v585-text);
  font-size: 1.1rem;
  transition: all 0.2s;
}

.v585-footer-links a:hover { border-color: var(--v585-primary); color: var(--v585-primary); }

.v585-footer-copy {
  text-align: center;
  color: #666;
  font-size: 1.1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--v585-border);
}

/* Bottom Navigation */
.v585-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: 60px;
  background: #1A1A1A;
  border-top: 2px solid var(--v585-accent);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  padding: 0 0.2rem;
}

.v585-bottom-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 52px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--v585-text-muted);
  transition: all 0.25s;
  gap: 2px;
  padding: 0.3rem;
}

.v585-bottom-btn:hover,
.v585-bottom-btn-active {
  color: var(--v585-primary);
}

.v585-bottom-btn:active { transform: scale(0.92); }

.v585-bottom-btn i,
.v585-bottom-btn .material-icons {
  font-size: 2.2rem;
}

.v585-bottom-btn span {
  font-size: 1rem;
  font-weight: 500;
}

/* Highlight effect for active button */
.v585-bottom-btn-active::after {
  content: '';
  display: block;
  width: 20px;
  height: 2px;
  background: var(--v585-primary);
  border-radius: 1px;
  margin-top: 1px;
}

/* Utility Classes */
.v585-text-center { text-align: center; }
.v585-mt-1 { margin-top: 1rem; }
.v585-mt-2 { margin-top: 2rem; }
.v585-mb-1 { margin-bottom: 1rem; }
.v585-mb-2 { margin-bottom: 2rem; }
.v585-hidden { display: none; }

/* Desktop: hide bottom nav */
@media (min-width: 769px) {
  .v585-bottom-nav { display: none; }
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .v585-main { padding-bottom: 75px; }
}
