/**
 * dyagilevo.css - Core Stylesheet for dyagilevo.click
 * All classes use "v973-" prefix for namespace isolation
 * Color Palette: #DDA0DD | #F8F9FA | #FF9800 | #FFEB3B | #2C3E50 | #800080
 * Mobile-first design (max-width: 430px)
 */

/* CSS Variables */
:root {
  --v973-primary: #800080;
  --v973-primary-light: #DDA0DD;
  --v973-secondary: #FF9800;
  --v973-accent: #FFEB3B;
  --v973-bg: #2C3E50;
  --v973-bg-dark: #1a252f;
  --v973-bg-card: #34495e;
  --v973-text: #F8F9FA;
  --v973-text-muted: #bdc3c7;
  --v973-border: #4a6278;
  --v973-success: #27ae60;
  --v973-danger: #e74c3c;
  --v973-radius: 8px;
  --v973-radius-lg: 12px;
  --v973-shadow: 0 2px 8px rgba(0,0,0,0.3);
  --v973-transition: all 0.3s ease;
  font-size: 62.5%;
}

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: var(--v973-bg);
  color: var(--v973-text);
  line-height: 1.5rem;
  font-size: 1.4rem;
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
  overflow-x: hidden;
}

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

/* Container */
.v973-container { width: 100%; padding: 0 1.2rem; margin: 0 auto; }
.v973-wrapper { padding: 1.2rem 0; }

/* Header */
.v973-header {
  position: fixed; top: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 430px; height: 52px;
  background: linear-gradient(135deg, var(--v973-bg-dark), var(--v973-primary));
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 1rem; z-index: 1000; box-shadow: var(--v973-shadow);
}

.v973-logo {
  display: flex; align-items: center; gap: 0.6rem;
  font-size: 1.6rem; font-weight: 700; color: var(--v973-accent);
}
.v973-logo img { width: 28px; height: 28px; border-radius: 4px; }

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

.v973-btn-register {
  background: var(--v973-secondary); color: #fff; border: none;
  padding: 0.5rem 1rem; border-radius: var(--v973-radius);
  font-size: 1.2rem; font-weight: 600; cursor: pointer;
  transition: var(--v973-transition); min-height: 32px;
}
.v973-btn-register:hover { background: #e68a00; transform: scale(1.05); }

.v973-btn-login {
  background: transparent; color: var(--v973-primary-light); border: 1px solid var(--v973-primary-light);
  padding: 0.5rem 1rem; border-radius: var(--v973-radius);
  font-size: 1.2rem; font-weight: 600; cursor: pointer;
  transition: var(--v973-transition); min-height: 32px;
}
.v973-btn-login:hover { background: var(--v973-primary-light); color: var(--v973-bg-dark); }

.v973-menu-toggle {
  background: none; border: none; color: var(--v973-text); font-size: 2rem;
  cursor: pointer; padding: 0.4rem; line-height: 1;
}

/* Mobile Menu */
.v973-menu-overlay {
  display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.6); z-index: 9998;
}
.v973-overlay-active { display: block; }

#v973-mobile-menu {
  position: fixed; top: 0; right: -280px; width: 280px; height: 100%;
  background: var(--v973-bg-dark); z-index: 9999;
  transition: right 0.3s ease; overflow-y: auto; padding: 2rem 1.5rem;
}
.v973-menu-active { right: 0 !important; }

.v973-menu-close {
  background: none; border: none; color: var(--v973-text); font-size: 2.4rem;
  cursor: pointer; position: absolute; top: 1rem; right: 1rem;
}

.v973-menu-links { list-style: none; margin-top: 3rem; }
.v973-menu-links li {
  border-bottom: 1px solid var(--v973-border);
}
.v973-menu-links a {
  display: block; padding: 1.2rem 0; color: var(--v973-text);
  font-size: 1.4rem; transition: var(--v973-transition);
}
.v973-menu-links a:hover { color: var(--v973-secondary); padding-left: 0.5rem; }

/* Bottom Navigation */
.v973-bottom-nav {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 430px; height: 60px;
  background: linear-gradient(180deg, var(--v973-bg-dark), #0f1923);
  display: flex; justify-content: space-around; align-items: center;
  z-index: 1000; border-top: 2px solid var(--v973-primary);
  box-shadow: 0 -2px 10px rgba(0,0,0,0.4);
}

.v973-bottom-nav-btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-width: 60px; min-height: 48px; background: none; border: none;
  color: var(--v973-text-muted); cursor: pointer; transition: var(--v973-transition);
  gap: 0.2rem; padding: 0.4rem; border-radius: var(--v973-radius);
}
.v973-bottom-nav-btn .v973-nav-icon { font-size: 22px; transition: var(--v973-transition); }
.v973-bottom-nav-btn .v973-nav-label { font-size: 1rem; white-space: nowrap; }
.v973-bottom-nav-btn:hover, .v973-bottom-nav-btn.v973-nav-active {
  color: var(--v973-secondary);
}
.v973-bottom-nav-btn:hover .v973-nav-icon,
.v973-bottom-nav-btn.v973-nav-active .v973-nav-icon {
  transform: scale(1.15); color: var(--v973-accent);
}

/* Carousel */
.v973-carousel { position: relative; overflow: hidden; border-radius: var(--v973-radius-lg); margin-top: 52px; }
.v973-slide {
  display: none; width: 100%; cursor: pointer;
}
.v973-slide-active { display: block; animation: v973-fadeIn 0.5s ease; }
.v973-slide img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }

.v973-dots {
  position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 6px; z-index: 2;
}
.v973-dot {
  width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.4);
  cursor: pointer; transition: var(--v973-transition); border: none;
}
.v973-dot-active { background: var(--v973-secondary); transform: scale(1.3); }

/* Sections */
.v973-section { padding: 1.5rem 0; }
.v973-section-title {
  font-size: 1.8rem; font-weight: 700; color: var(--v973-accent);
  margin-bottom: 1rem; padding-left: 0.8rem;
  border-left: 3px solid var(--v973-secondary);
}
.v973-section-title i { margin-right: 0.5rem; }

/* Game Grid */
.v973-game-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem; padding: 0.5rem 0;
}
.v973-game-item {
  text-align: center; cursor: pointer;
  transition: var(--v973-transition); border-radius: var(--v973-radius);
  padding: 0.5rem 0.2rem;
}
.v973-game-item:hover { transform: translateY(-2px); background: var(--v973-bg-card); }
.v973-game-item img {
  width: 100%; aspect-ratio: 1/1; object-fit: cover;
  border-radius: var(--v973-radius); margin-bottom: 0.3rem;
  border: 2px solid transparent; transition: var(--v973-transition);
}
.v973-game-item:hover img { border-color: var(--v973-secondary); }
.v973-game-name {
  font-size: 1.1rem; color: var(--v973-text);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  line-height: 1.3;
}

/* Category Tabs */
.v973-category-label {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: var(--v973-bg-card); color: var(--v973-text);
  padding: 0.5rem 1.2rem; border-radius: 20px; font-size: 1.3rem;
  font-weight: 600; margin-bottom: 0.8rem;
  border: 1px solid var(--v973-primary);
}
.v973-category-label i { color: var(--v973-secondary); }

/* Cards */
.v973-card {
  background: var(--v973-bg-card); border-radius: var(--v973-radius-lg);
  padding: 1.2rem; margin-bottom: 1rem; box-shadow: var(--v973-shadow);
  border: 1px solid var(--v973-border); transition: var(--v973-transition);
}
.v973-card:hover { border-color: var(--v973-primary-light); }

.v973-card-title {
  font-size: 1.5rem; font-weight: 700; color: var(--v973-accent);
  margin-bottom: 0.8rem;
}

/* Promo Button */
.v973-promo-btn {
  display: inline-block; background: linear-gradient(135deg, var(--v973-secondary), #ff6600);
  color: #fff; padding: 0.8rem 2rem; border-radius: 30px;
  font-size: 1.4rem; font-weight: 700; cursor: pointer;
  border: none; transition: var(--v973-transition);
  text-align: center; box-shadow: 0 4px 12px rgba(255,152,0,0.4);
}
.v973-promo-btn:hover { transform: scale(1.05); box-shadow: 0 6px 16px rgba(255,152,0,0.6); }

.v973-promo-link {
  color: var(--v973-secondary); font-weight: 700; cursor: pointer;
  text-decoration: underline; transition: var(--v973-transition);
}
.v973-promo-link:hover { color: var(--v973-accent); }

/* Footer */
.v973-footer {
  background: var(--v973-bg-dark); padding: 2rem 1.2rem 1rem;
  border-top: 2px solid var(--v973-primary);
}
.v973-footer-brand {
  color: var(--v973-text-muted); font-size: 1.2rem;
  line-height: 1.6; margin-bottom: 1.2rem;
}
.v973-footer-links {
  display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 1rem;
}
.v973-footer-links a {
  background: var(--v973-bg-card); color: var(--v973-text);
  padding: 0.4rem 0.8rem; border-radius: var(--v973-radius);
  font-size: 1.1rem; border: 1px solid var(--v973-border);
}
.v973-footer-links a:hover { border-color: var(--v973-secondary); color: var(--v973-secondary); }
.v973-footer-copy {
  text-align: center; color: var(--v973-text-muted); font-size: 1.1rem;
  padding-top: 1rem; border-top: 1px solid var(--v973-border);
}

/* Utility Classes */
.v973-text-center { text-align: center; }
.v973-text-accent { color: var(--v973-accent); }
.v973-text-secondary { color: var(--v973-secondary); }
.v973-text-muted { color: var(--v973-text-muted); }
.v973-mt-1 { margin-top: 0.8rem; }
.v973-mt-2 { margin-top: 1.6rem; }
.v973-mb-1 { margin-bottom: 0.8rem; }
.v973-mb-2 { margin-bottom: 1.6rem; }
.v973-p-1 { padding: 0.8rem; }
.v973-p-2 { padding: 1.6rem; }
.v973-bold { font-weight: 700; }

/* Animation */
@keyframes v973-fadeIn {
  from { opacity: 0; } to { opacity: 1; }
}
.v973-animate {
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.v973-visible { opacity: 1; transform: translateY(0); }

/* Responsive */
@media (min-width: 769px) {
  .v973-bottom-nav { display: none; }
  .v973-header { max-width: 100%; }
  body { max-width: 100%; }
}
@media (max-width: 768px) {
  main { padding-bottom: 80px; }
  .v973-container { padding: 0 1rem; }
  .v973-game-grid { grid-template-columns: repeat(3, 1fr); gap: 0.6rem; }
}
