/**
 * The King of Fighters - Main Stylesheet
 * All classes use vf75- prefix for namespace isolation
 * Colors: #191970 (primary), #141414 (background)
 * Mobile-first responsive design
 */

/* ===== CSS Variables ===== */
:root {
  --vf75-primary: #191970;
  --vf75-primary-dark: #0f0f4d;
  --vf75-primary-light: #2a2a8f;
  --vf75-bg: #141414;
  --vf75-bg-light: #1f1f1f;
  --vf75-bg-lighter: #2a2a2a;
  --vf75-text: #e0e0e0;
  --vf75-text-muted: #a0a0a0;
  --vf75-text-dark: #ffffff;
  --vf75-accent: #ffd700;
  --vf75-accent-hover: #ffed4e;
  --vf75-success: #4caf50;
  --vf75-border: #333333;
  --vf75-shadow: rgba(0, 0, 0, 0.5);
  --vf75-header-height: 60px;
  --vf75-bottom-nav-height: 60px;
}

/* ===== 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(--vf75-text);
  background-color: var(--vf75-bg);
  min-height: 100vh;
  padding-bottom: var(--vf75-bottom-nav-height);
}

@media (min-width: 769px) {
  body {
    padding-bottom: 0;
  }
}

/* ===== Container & Layout ===== */
.vf75-container {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1rem;
}

.vf75-wrapper {
  width: 100%;
  overflow-x: hidden;
}

/* ===== Header ===== */
.vf75-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--vf75-header-height);
  background: linear-gradient(135deg, var(--vf75-primary) 0%, var(--vf75-primary-dark) 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
  z-index: 1000;
  box-shadow: 0 2px 10px var(--vf75-shadow);
}

.vf75-header-logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  color: var(--vf75-text-dark);
}

.vf75-header-logo img {
  width: 32px;
  height: 32px;
  border-radius: 4px;
}

.vf75-header-logo span {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--vf75-text-dark);
}

.vf75-header-buttons {
  display: flex;
  gap: 0.5rem;
}

.vf75-btn {
  padding: 0.5rem 1rem;
  font-size: 1.2rem;
  font-weight: 600;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

.vf75-btn-register {
  background: var(--vf75-accent);
  color: var(--vf75-primary);
}

.vf75-btn-register:hover {
  background: var(--vf75-accent-hover);
  transform: translateY(-2px);
}

.vf75-btn-login {
  background: transparent;
  color: var(--vf75-text-dark);
  border: 1px solid var(--vf75-text-dark);
}

.vf75-btn-login:hover {
  background: rgba(255, 255, 255, 0.1);
}

.vf75-menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  width: 36px;
  height: 36px;
}

.vf75-menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--vf75-text-dark);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* ===== Mobile Menu ===== */
.vf75-mobile-menu {
  position: fixed;
  top: var(--vf75-header-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--vf75-bg-light);
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  z-index: 9999;
  overflow-y: auto;
  padding: 1rem 0;
}

.vf75-mobile-menu.vf75-menu-open {
  transform: translateX(0);
}

.vf75-menu-list {
  list-style: none;
}

.vf75-menu-item {
  border-bottom: 1px solid var(--vf75-border);
}

.vf75-menu-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  color: var(--vf75-text);
  text-decoration: none;
  font-size: 1.4rem;
  transition: background 0.3s ease;
}

.vf75-menu-link:hover {
  background: var(--vf75-bg-lighter);
}

.vf75-menu-link i {
  font-size: 1.8rem;
  color: var(--vf75-primary);
}

/* ===== Main Content ===== */
.vf75-main {
  margin-top: var(--vf75-header-height);
  min-height: calc(100vh - var(--vf75-header-height) - var(--vf75-bottom-nav-height));
}

/* ===== Carousel ===== */
.vf75-carousel {
  position: relative;
  width: 100%;
  height: 180px;
  overflow: hidden;
  border-radius: 0 0 8px 8px;
}

.vf75-carousel-slides {
  display: flex;
  height: 100%;
  transition: transform 0.5s ease;
}

.vf75-carousel-slide {
  min-width: 100%;
  height: 100%;
}

.vf75-carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vf75-carousel-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}

.vf75-carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.vf75-carousel-dot.vf75-active {
  background: var(--vf75-accent);
  width: 20px;
  border-radius: 4px;
}

/* ===== Content Sections ===== */
.vf75-section {
  padding: 2rem 0;
  border-bottom: 1px solid var(--vf75-border);
}

.vf75-section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--vf75-text-dark);
  margin-bottom: 1.5rem;
  text-align: center;
}

.vf75-content {
  line-height: 1.8;
  color: var(--vf75-text);
}

.vf75-content p {
  margin-bottom: 1rem;
}

.vf75-content a {
  color: var(--vf75-accent);
  text-decoration: none;
  font-weight: 600;
}

.vf75-content a:hover {
  text-decoration: underline;
}

/* ===== Game Grid ===== */
.vf75-game-category {
  margin-bottom: 2rem;
}

.vf75-category-title {
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--vf75-accent);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.vf75-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
}

.vf75-game-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: transform 0.3s ease;
  text-decoration: none;
}

.vf75-game-item:hover {
  transform: scale(1.05);
}

.vf75-game-icon {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 8px;
  overflow: hidden;
  background: var(--vf75-bg-lighter);
  display: flex;
  align-items: center;
  justify-content: center;
}

.vf75-game-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vf75-game-name {
  font-size: 1.1rem;
  color: var(--vf75-text);
  text-align: center;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* ===== Cards ===== */
.vf75-card {
  background: var(--vf75-bg-light);
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1rem;
  border: 1px solid var(--vf75-border);
}

.vf75-card-title {
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--vf75-text-dark);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.vf75-card-title i {
  color: var(--vf75-primary);
}

/* ===== FAQ Section ===== */
.vf75-faq-item {
  background: var(--vf75-bg-light);
  border-radius: 8px;
  margin-bottom: 1rem;
  border: 1px solid var(--vf75-border);
  overflow: hidden;
}

.vf75-faq-question {
  padding: 1.5rem;
  font-weight: 600;
  color: var(--vf75-text-dark);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--vf75-bg-light);
}

.vf75-faq-answer {
  padding: 0 1.5rem 1.5rem;
  color: var(--vf75-text);
  line-height: 1.8;
  border-top: 1px solid var(--vf75-border);
  padding-top: 1rem;
}

/* ===== Bottom Navigation ===== */
.vf75-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--vf75-bottom-nav-height);
  background: linear-gradient(180deg, var(--vf75-bg-light) 0%, var(--vf75-bg) 100%);
  display: flex;
  justify-content: space-around;
  align-items: center;
  border-top: 1px solid var(--vf75-border);
  z-index: 1000;
}

@media (min-width: 769px) {
  .vf75-bottom-nav {
    display: none;
  }
}

.vf75-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 60px;
  min-height: 60px;
  text-decoration: none;
  color: var(--vf75-text-muted);
  transition: all 0.3s ease;
  cursor: pointer;
}

.vf75-nav-item:hover,
.vf75-nav-item.vf75-active {
  color: var(--vf75-accent);
}

.vf75-nav-item.vf75-active {
  transform: scale(1.1);
}

.vf75-nav-icon {
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vf75-nav-text {
  font-size: 10px;
  font-weight: 500;
  text-align: center;
}

/* ===== Footer ===== */
.vf75-footer {
  background: var(--vf75-bg-light);
  padding: 2rem 0 1rem;
  margin-top: 2rem;
  border-top: 1px solid var(--vf75-border);
}

.vf75-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
  justify-content: center;
}

.vf75-footer-link {
  color: var(--vf75-accent);
  text-decoration: none;
  font-size: 1.2rem;
  font-weight: 500;
  transition: color 0.3s ease;
}

.vf75-footer-link:hover {
  color: var(--vf75-accent-hover);
}

.vf75-partners {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.vf75-partner-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.vf75-partner-logo:hover {
  opacity: 1;
}

.vf75-footer-bottom {
  text-align: center;
  color: var(--vf75-text-muted);
  font-size: 1.1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--vf75-border);
}

/* ===== Utility Classes ===== */
.vf75-text-center {
  text-align: center;
}

.vf75-mt-1 { margin-top: 1rem; }
.vf75-mt-2 { margin-top: 2rem; }
.vf75-mb-1 { margin-bottom: 1rem; }
.vf75-mb-2 { margin-bottom: 2rem; }

.vf75-highlight {
  color: var(--vf75-accent);
  font-weight: 600;
}

/* ===== Responsive Adjustments ===== */
@media (max-width: 380px) {
  .vf75-game-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ===== Desktop Navigation ===== */
@media (min-width: 769px) {
  .vf75-menu-toggle {
    display: none;
  }

  .vf75-header {
    max-width: 1200px;
    left: 50%;
    transform: translateX(-50%);
  }

  .vf75-main {
    max-width: 1200px;
    margin: var(--vf75-header-height) auto 0;
  }
}
