/* 333 Angel Number - Theme Stylesheet */
/* All classes use v617- prefix for namespace isolation */
/* Color palette: #8470FF | #CD5C5C | #2E4057 | #FF69B4 | #FFC0CB */

:root {
  --v617-primary: #8470FF;
  --v617-secondary: #CD5C5C;
  --v617-bg: #2E4057;
  --v617-accent: #FF69B4;
  --v617-light: #FFC0CB;
  --v617-bg-dark: #1a2a3a;
  --v617-bg-card: #354b63;
  --v617-text: #f0f0f5;
  --v617-text-muted: #b0b8c8;
  --v617-border: rgba(132, 112, 255, 0.3);
  --v617-radius: 10px;
  --v617-shadow: 0 2px 12px rgba(0,0,0,0.25);
}

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

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

body {
  font-family: 'Segoe UI', 'Noto Sans Bengali', sans-serif;
  background: var(--v617-bg);
  color: var(--v617-text);
  line-height: 1.5rem;
  min-height: 100vh;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--v617-accent); text-decoration: none; }

/* ===== HEADER ===== */
.v617-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: linear-gradient(135deg, var(--v617-bg-dark) 0%, var(--v617-bg) 100%);
  border-bottom: 2px solid var(--v617-primary);
  padding: 0 1.2rem;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.v617-logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

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

.v617-logo span {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--v617-light);
  letter-spacing: 0.5px;
}

.v617-header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.v617-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.4rem;
  border-radius: 8px;
  font-size: 1.3rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  min-height: 36px;
  min-width: 44px;
}

.v617-btn-register {
  background: linear-gradient(135deg, var(--v617-accent) 0%, var(--v617-secondary) 100%);
  color: #fff;
}

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

.v617-btn:hover { transform: scale(1.05); opacity: 0.9; }

.v617-menu-toggle {
  background: none;
  border: none;
  color: var(--v617-text);
  font-size: 2.2rem;
  cursor: pointer;
  padding: 0.4rem;
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===== MOBILE MENU ===== */
.v617-mobile-menu {
  display: none;
  flex-direction: column;
  position: fixed;
  top: 56px;
  left: 0;
  right: 0;
  z-index: 9999;
  background: var(--v617-bg-dark);
  border-bottom: 2px solid var(--v617-primary);
  padding: 0.8rem 1.2rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.v617-mobile-menu a {
  display: block;
  padding: 1rem 0.8rem;
  font-size: 1.4rem;
  color: var(--v617-text);
  border-bottom: 1px solid rgba(132,112,255,0.15);
}

.v617-mobile-menu a:last-child { border-bottom: none; }
.v617-mobile-menu a:hover { color: var(--v617-accent); background: rgba(132,112,255,0.08); }

/* ===== BOTTOM NAV ===== */
.v617-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: linear-gradient(180deg, var(--v617-bg-dark) 0%, #0f1a26 100%);
  border-top: 2px solid var(--v617-primary);
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 60px;
  padding: 0 0.4rem;
}

.v617-bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 56px;
  background: none;
  border: none;
  color: var(--v617-text-muted);
  cursor: pointer;
  transition: all 0.25s ease;
  padding: 0.3rem;
  border-radius: 8px;
}

.v617-bottom-nav-item .v617-nav-icon {
  font-size: 2.4rem;
  line-height: 1;
  margin-bottom: 0.2rem;
}

.v617-bottom-nav-item .v617-nav-label {
  font-size: 1rem;
  line-height: 1.2;
}

.v617-bottom-nav-item:hover,
.v617-bottom-nav-item.v617-nav-active {
  color: var(--v617-accent);
  transform: scale(1.08);
}

.v617-bottom-nav-item:active { transform: scale(0.95); }

/* ===== CONTAINER / LAYOUT ===== */
.v617-container {
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1rem;
}

.v617-wrapper {
  padding-top: 60px;
}

/* ===== CAROUSEL ===== */
.v617-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: var(--v617-radius);
  margin-bottom: 1.5rem;
}

.v617-slide {
  display: none;
  cursor: pointer;
}

.v617-slide img {
  width: 100%;
  height: auto;
  border-radius: var(--v617-radius);
}

.v617-slide-active { display: block; }

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

.v617-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  border: none;
}

.v617-dot-active { background: var(--v617-accent); }

/* ===== SECTION TITLES ===== */
.v617-section-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--v617-light);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--v617-primary);
}

.v617-section-title i { margin-right: 0.5rem; color: var(--v617-accent); }

/* ===== GAME GRID ===== */
.v617-game-category {
  margin-bottom: 2rem;
}

.v617-game-category h2 {
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--v617-light);
  margin-bottom: 0.8rem;
  padding-left: 0.5rem;
  border-left: 3px solid var(--v617-accent);
}

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

.v617-game-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  border-radius: 8px;
  overflow: hidden;
  background: var(--v617-bg-card);
  padding: 0.4rem;
  transition: transform 0.2s ease;
}

.v617-game-item:hover { transform: scale(1.05); }

.v617-game-item img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 6px;
}

.v617-game-item span {
  font-size: 1.1rem;
  color: var(--v617-text);
  text-align: center;
  padding: 0.3rem 0;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ===== CARDS ===== */
.v617-card {
  background: var(--v617-bg-card);
  border-radius: var(--v617-radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border: 1px solid var(--v617-border);
  box-shadow: var(--v617-shadow);
}

.v617-card h2, .v617-card h3 {
  color: var(--v617-light);
  margin-bottom: 0.8rem;
}

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

/* ===== PROMO BUTTONS ===== */
.v617-promo-link {
  display: inline-block;
  background: linear-gradient(135deg, var(--v617-primary) 0%, var(--v617-accent) 100%);
  color: #fff;
  padding: 0.8rem 1.8rem;
  border-radius: 8px;
  font-size: 1.4rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  margin: 0.5rem 0;
}

.v617-promo-link:hover { transform: scale(1.05); box-shadow: 0 4px 16px rgba(132,112,255,0.4); }

.v617-text-link {
  color: var(--v617-accent);
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  font-size: 1.3rem;
}

/* ===== FOOTER ===== */
.v617-footer {
  background: var(--v617-bg-dark);
  border-top: 2px solid var(--v617-primary);
  padding: 2rem 1rem 1.5rem;
  margin-top: 2rem;
}

.v617-footer-brand {
  font-size: 1.3rem;
  color: var(--v617-text-muted);
  line-height: 1.6;
  margin-bottom: 1.2rem;
}

.v617-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.2rem;
}

.v617-footer-links a {
  font-size: 1.2rem;
  color: var(--v617-primary);
  padding: 0.3rem 0.6rem;
  background: rgba(132,112,255,0.1);
  border-radius: 4px;
}

.v617-footer-links a:hover { color: var(--v617-accent); background: rgba(255,105,180,0.15); }

.v617-footer-copy {
  font-size: 1.1rem;
  color: var(--v617-text-muted);
  text-align: center;
  padding-top: 0.8rem;
  border-top: 1px solid rgba(132,112,255,0.15);
}

/* ===== UTILITIES ===== */
.v617-mb-1 { margin-bottom: 0.5rem; }
.v617-mb-2 { margin-bottom: 1rem; }
.v617-mb-3 { margin-bottom: 1.5rem; }
.v617-mt-2 { margin-top: 1rem; }
.v617-text-center { text-align: center; }
.v617-text-sm { font-size: 1.2rem; }
.v617-text-lg { font-size: 1.6rem; }

/* ===== RESPONSIVE ===== */
@media (min-width: 769px) {
  .v617-bottom-nav { display: none; }
  .v617-wrapper { padding-top: 60px; }
}

@media (max-width: 768px) {
  .v617-wrapper { padding-bottom: 80px; }
  .v617-game-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 360px) {
  .v617-game-grid { grid-template-columns: repeat(3, 1fr); }
}
