/**
 * Q36 Website - Main Stylesheet
 * Version: 1.0.0
 * All classes use v9f8- prefix for namespace isolation
 */

/* ===== CSS Variables ===== */
:root {
  --v9f8-primary: #D3D3D3;
  --v9f8-secondary: #1E1E1E;
  --v9f8-accent: #FFCCCB;
  --v9f8-highlight: #880E4F;
  --v9f8-coral: #FA8072;
  --v9f8-bg: #1E1E1E;
  --v9f8-bg-light: #2A2A2A;
  --v9f8-text: #D3D3D3;
  --v9f8-text-dark: #1E1E1E;
  --v9f8-border: #FFCCCB;
  --v9f8-success: #4CAF50;
  --v9f8-warning: #FF9800;
  --v9f8-error: #F44336;
}

/* ===== 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.6rem;
  line-height: 1.5;
  color: var(--v9f8-text);
  background-color: var(--v9f8-bg);
  min-height: 100vh;
  overflow-x: hidden;
}

body.v9f8-loaded {
  animation: v9f8-fadeIn 0.3s ease-in;
}

@keyframes v9f8-fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.2;
  color: var(--v9f8-accent);
  margin-bottom: 1rem;
}

h1 {
  font-size: 2.8rem;
}

h2 {
  font-size: 2.2rem;
}

h3 {
  font-size: 1.8rem;
}

h4 {
  font-size: 1.6rem;
}

p {
  margin-bottom: 1rem;
}

a {
  color: var(--v9f8-coral);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--v9f8-accent);
}

/* ===== Container ===== */
.v9f8-container {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1rem;
}

.v9f8-wrapper {
  padding: 1rem 0;
}

/* ===== Header ===== */
.v9f8-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: var(--v9f8-secondary);
  border-bottom: 2px solid var(--v9f8-highlight);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.v9f8-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 1rem;
  max-width: 430px;
  margin: 0 auto;
}

.v9f8-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--v9f8-accent);
  text-decoration: none;
}

.v9f8-logo img,
.v9f8-logo i {
  width: 28px;
  height: 28px;
  font-size: 28px;
}

.v9f8-header-buttons {
  display: flex;
  gap: 0.5rem;
}

.v9f8-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.2rem;
  font-size: 1.2rem;
  font-weight: 600;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  min-height: 44px;
}

.v9f8-btn-primary {
  background-color: var(--v9f8-highlight);
  color: var(--v9f8-primary);
}

.v9f8-btn-primary:hover,
.v9f8-btn-primary:focus {
  background-color: var(--v9f8-coral);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(136, 14, 79, 0.3);
}

.v9f8-btn-secondary {
  background-color: transparent;
  color: var(--v9f8-accent);
  border: 2px solid var(--v9f8-accent);
}

.v9f8-btn-secondary:hover,
.v9f8-btn-secondary:focus {
  background-color: var(--v9f8-accent);
  color: var(--v9f8-text-dark);
}

.v9f8-menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  color: var(--v9f8-accent);
  font-size: 24px;
  cursor: pointer;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}

.v9f8-menu-toggle:hover,
.v9f8-menu-toggle:focus {
  background-color: var(--v9f8-bg-light);
}

/* ===== Mobile Menu ===== */
.v9f8-mobile-menu {
  position: fixed;
  top: 60px;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--v9f8-secondary);
  z-index: 9999;
  padding: 2rem 1rem;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
}

.v9f8-mobile-menu.v9f8-menu-open {
  transform: translateX(0);
}

.v9f8-mobile-menu ul {
  list-style: none;
}

.v9f8-mobile-menu li {
  margin-bottom: 0.5rem;
}

.v9f8-mobile-menu a {
  display: block;
  padding: 1rem;
  font-size: 1.6rem;
  color: var(--v9f8-primary);
  border-radius: 4px;
  transition: all 0.3s ease;
}

.v9f8-mobile-menu a:hover,
.v9f8-mobile-menu a:focus {
  background-color: var(--v9f8-bg-light);
  color: var(--v9f8-coral);
  padding-left: 1.5rem;
}

/* ===== Main Content ===== */
.v9f8-main {
  padding-top: 70px;
  padding-bottom: 80px;
  min-height: 100vh;
}

@media (min-width: 769px) {
  .v9f8-main {
    padding-bottom: 2rem;
  }
}

/* ===== Carousel ===== */
.v9f8-carousel {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  border-radius: 8px;
  margin-bottom: 2rem;
}

.v9f8-slides {
  position: relative;
  width: 100%;
  height: 100%;
}

.v9f8-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.v9f8-slide.v9f8-slide-active {
  opacity: 1;
}

.v9f8-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.v9f8-carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background-color: rgba(30, 30, 30, 0.7);
  color: var(--v9f8-primary);
  border: none;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  z-index: 10;
}

.v9f8-carousel-btn:hover {
  background-color: var(--v9f8-highlight);
}

.v9f8-carousel-prev {
  left: 10px;
}

.v9f8-carousel-next {
  right: 10px;
}

.v9f8-carousel-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.v9f8-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: rgba(211, 211, 211, 0.5);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.v9f8-dot.v9f8-dot-active {
  background-color: var(--v9f8-highlight);
  width: 25px;
  border-radius: 5px;
}

/* ===== Cards ===== */
.v9f8-card {
  background-color: var(--v9f8-bg-light);
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border: 1px solid var(--v9f8-border);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.v9f8-card-title {
  color: var(--v9f8-coral);
  font-size: 1.8rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--v9f8-highlight);
}

/* ===== Game Grid ===== */
.v9f8-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
  margin-bottom: 2rem;
}

.v9f8-game-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.v9f8-game-item:hover {
  transform: scale(1.05);
}

.v9f8-game-icon {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid var(--v9f8-border);
  transition: border-color 0.3s ease;
}

.v9f8-game-item:hover .v9f8-game-icon {
  border-color: var(--v9f8-highlight);
}

.v9f8-game-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.v9f8-game-name {
  font-size: 1rem;
  text-align: center;
  color: var(--v9f8-primary);
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* ===== Section ===== */
.v9f8-section {
  margin-bottom: 3rem;
}

.v9f8-section-title {
  font-size: 2rem;
  color: var(--v9f8-coral);
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: linear-gradient(135deg, var(--v9f8-highlight), var(--v9f8-coral));
  border-radius: 8px;
  text-align: center;
}

/* ===== List ===== */
.v9f8-list {
  list-style: none;
  padding-left: 0;
}

.v9f8-list li {
  padding: 0.8rem 0;
  padding-left: 2rem;
  position: relative;
  border-bottom: 1px solid var(--v9f8-border);
}

.v9f8-list li:before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--v9f8-coral);
  font-weight: bold;
}

/* ===== Footer ===== */
.v9f8-footer {
  background-color: var(--v9f8-secondary);
  border-top: 2px solid var(--v9f8-highlight);
  padding: 2rem 0;
  margin-top: 3rem;
}

.v9f8-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.v9f8-footer-link {
  color: var(--v9f8-primary);
  font-size: 1.2rem;
  padding: 0.5rem 1rem;
  border: 1px solid var(--v9f8-border);
  border-radius: 4px;
  transition: all 0.3s ease;
}

.v9f8-footer-link:hover {
  background-color: var(--v9f8-highlight);
  color: var(--v9f8-primary);
  border-color: var(--v9f8-highlight);
}

.v9f8-partners {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.v9f8-partner img {
  height: 30px;
  width: auto;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.v9f8-partner img:hover {
  opacity: 1;
}

.v9f8-copyright {
  text-align: center;
  font-size: 1.2rem;
  color: var(--v9f8-primary);
  opacity: 0.8;
}

/* ===== Bottom Navigation (Mobile) ===== */
.v9f8-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: linear-gradient(135deg, var(--v9f8-secondary), var(--v9f8-bg-light));
  border-top: 2px solid var(--v9f8-highlight);
  display: flex;
  justify-content: space-around;
  padding: 0.5rem 0;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
}

@media (min-width: 769px) {
  .v9f8-bottom-nav {
    display: none;
  }
}

.v9f8-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 60px;
  color: var(--v9f8-primary);
  text-decoration: none;
  transition: all 0.3s ease;
  border-radius: 8px;
  padding: 0.3rem;
}

.v9f8-nav-item:hover,
.v9f8-nav-item:focus {
  background-color: var(--v9f8-bg-light);
  transform: translateY(-2px);
}

.v9f8-nav-item i {
  font-size: 24px;
  margin-bottom: 0.3rem;
}

.v9f8-nav-item span {
  font-size: 10px;
  text-align: center;
  line-height: 1.2;
}

.v9f8-nav-item-active {
  color: var(--v9f8-coral);
}

/* ===== Animations ===== */
.v9f8-animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.v9f8-animate-in {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Utility Classes ===== */
.v9f8-text-center {
  text-align: center;
}

.v9f8-mb-1 {
  margin-bottom: 1rem;
}

.v9f8-mb-2 {
  margin-bottom: 2rem;
}

.v9f8-mt-1 {
  margin-top: 1rem;
}

.v9f8-mt-2 {
  margin-top: 2rem;
}

.v9f8-hidden {
  display: none;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .v9f8-header-buttons .v9f8-btn {
    padding: 0.5rem 0.8rem;
    font-size: 1rem;
  }
}

@media (min-width: 769px) {
  .v9f8-menu-toggle {
    display: none;
  }

  .v9f8-mobile-menu {
    display: none;
  }
}
