/* OK Fun - Design System Stylesheet */
/* All classes use vfdb- prefix for namespace isolation */

/* CSS Variables */
:root {
  --vfdb-primary: #DEB887;
  --vfdb-primary-dark: #CD853F;
  --vfdb-secondary: #FFBF00;
  --vfdb-bg-dark: #2D2D2D;
  --vfdb-bg-darker: #1a1a1a;
  --vfdb-text: #FDF5E6;
  --vfdb-text-muted: #d4c5a9;
  --vfdb-border: #4a4a4a;
  --vfdb-success: #28a745;
  --vfdb-danger: #dc3545;
  --vfdb-warning: #ffc107;
}

/* Reset and 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(--vfdb-text);
  background-color: var(--vfdb-bg-dark);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

/* Container */
.vfdb-container {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */
.vfdb-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: linear-gradient(135deg, var(--vfdb-bg-dark) 0%, var(--vfdb-bg-darker) 100%);
  border-bottom: 2px solid var(--vfdb-primary);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.vfdb-header.vfdb-scrolled {
  background: rgba(45, 45, 45, 0.98);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.vfdb-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  padding: 0 1.5rem;
  max-width: 430px;
  margin: 0 auto;
}

.vfdb-logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--vfdb-primary);
}

.vfdb-logo-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.vfdb-menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--vfdb-primary);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.vfdb-menu-btn:hover {
  background: var(--vfdb-primary-dark);
  transform: scale(1.05);
}

.vfdb-menu-btn i {
  font-size: 2rem;
  color: var(--vfdb-bg-dark);
}

.vfdb-header-actions {
  display: flex;
  gap: 1rem;
}

.vfdb-btn-header {
  padding: 0.6rem 1.2rem;
  font-size: 1.3rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}

.vfdb-btn-register {
  background: linear-gradient(135deg, var(--vfdb-primary) 0%, var(--vfdb-primary-dark) 100%);
  color: var(--vfdb-bg-dark);
}

.vfdb-btn-register:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(222, 184, 135, 0.4);
}

.vfdb-btn-login {
  background: transparent;
  color: var(--vfdb-primary);
  border: 2px solid var(--vfdb-primary);
}

.vfdb-btn-login:hover {
  background: var(--vfdb-primary);
  color: var(--vfdb-bg-dark);
}

/* Mobile Menu */
.vfdb-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.vfdb-menu-overlay.vfdb-active {
  opacity: 1;
  visibility: visible;
}

.vfdb-mobile-menu {
  position: fixed;
  top: 0;
  right: -300px;
  width: 280px;
  height: 100vh;
  background: var(--vfdb-bg-darker);
  z-index: 9999;
  transition: right 0.3s ease;
  overflow-y: auto;
  border-left: 2px solid var(--vfdb-primary);
}

.vfdb-mobile-menu.vfdb-active {
  right: 0;
}

.vfdb-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem;
  border-bottom: 1px solid var(--vfdb-border);
}

.vfdb-menu-close {
  width: 36px;
  height: 36px;
  background: var(--vfdb-border);
  border: none;
  border-radius: 8px;
  color: var(--vfdb-text);
  font-size: 1.8rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vfdb-menu-nav {
  padding: 1rem 0;
}

.vfdb-menu-item {
  display: block;
  padding: 1.2rem 1.5rem;
  color: var(--vfdb-text);
  font-size: 1.5rem;
  border-left: 3px solid transparent;
  transition: all 0.3s ease;
}

.vfdb-menu-item:hover {
  background: rgba(222, 184, 135, 0.1);
  border-left-color: var(--vfdb-primary);
  color: var(--vfdb-primary);
}

/* Main Content */
main {
  padding-top: 80px;
  min-height: 100vh;
}

@media (max-width: 768px) {
  main {
    padding-bottom: 80px;
  }
}

/* Hero Carousel */
.vfdb-carousel {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  margin-bottom: 2rem;
}

.vfdb-carousel-slides {
  position: relative;
  width: 100%;
  height: 100%;
}

.vfdb-carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.vfdb-carousel-slide.vfdb-active {
  opacity: 1;
}

.vfdb-carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vfdb-carousel-indicators {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.8rem;
  z-index: 10;
}

.vfdb-carousel-indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.vfdb-carousel-indicator.vfdb-active {
  background: var(--vfdb-primary);
  width: 25px;
  border-radius: 5px;
}

/* Section */
.vfdb-section {
  padding: 2rem 0;
  border-bottom: 1px solid var(--vfdb-border);
}

.vfdb-section-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--vfdb-primary);
  margin-bottom: 1.5rem;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Game Grid */
.vfdb-game-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1rem;
}

.vfdb-game-card {
  background: var(--vfdb-bg-darker);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 2px solid transparent;
}

.vfdb-game-card:hover {
  border-color: var(--vfdb-primary);
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(222, 184, 135, 0.3);
}

.vfdb-game-icon {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.vfdb-game-name {
  padding: 0.8rem;
  font-size: 1.2rem;
  font-weight: 600;
  text-align: center;
  color: var(--vfdb-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Promotional Button */
.vfdb-btn-promo {
  display: inline-block;
  padding: 1rem 2rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--vfdb-bg-dark);
  background: linear-gradient(135deg, var(--vfdb-secondary) 0%, var(--vfdb-primary) 100%);
  border-radius: 50px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 191, 0, 0.4);
}

.vfdb-btn-promo:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 6px 25px rgba(255, 191, 0, 0.6);
}

/* Content Box */
.vfdb-content-box {
  background: var(--vfdb-bg-darker);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border: 1px solid var(--vfdb-border);
}

.vfdb-content-box h3 {
  font-size: 1.8rem;
  color: var(--vfdb-primary);
  margin-bottom: 1rem;
}

.vfdb-content-box p {
  font-size: 1.5rem;
  line-height: 1.6;
  margin-bottom: 1rem;
  color: var(--vfdb-text-muted);
}

/* Link Style */
.vfdb-link {
  color: var(--vfdb-primary);
  font-weight: 600;
  text-decoration: underline;
}

.vfdb-link:hover {
  color: var(--vfdb-secondary);
}

/* Footer */
.vfdb-footer {
  background: var(--vfdb-bg-darker);
  border-top: 2px solid var(--vfdb-primary);
  padding: 2rem 0 1rem;
  margin-top: 2rem;
}

.vfdb-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.vfdb-footer-link {
  padding: 0.6rem 1rem;
  font-size: 1.3rem;
  color: var(--vfdb-text-muted);
  border: 1px solid var(--vfdb-border);
  border-radius: 6px;
  transition: all 0.3s ease;
}

.vfdb-footer-link:hover {
  background: var(--vfdb-primary);
  color: var(--vfdb-bg-dark);
  border-color: var(--vfdb-primary);
}

.vfdb-partners {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.vfdb-partner-logo {
  width: 50px;
  height: 30px;
  object-fit: contain;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.vfdb-partner-logo:hover {
  opacity: 1;
}

.vfdb-copyright {
  text-align: center;
  font-size: 1.2rem;
  color: var(--vfdb-text-muted);
  padding: 1rem 0;
  border-top: 1px solid var(--vfdb-border);
}

/* Bottom Navigation (Mobile) */
.vfdb-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(135deg, var(--vfdb-bg-dark) 0%, var(--vfdb-bg-darker) 100%);
  border-top: 2px solid var(--vfdb-primary);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
}

@media (min-width: 769px) {
  .vfdb-bottom-nav {
    display: none;
  }
}

.vfdb-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 60px;
  padding: 0.5rem;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.vfdb-nav-item:hover {
  transform: scale(1.1);
}

.vfdb-nav-item.vfdb-active {
  color: var(--vfdb-primary);
}

.vfdb-nav-item.vfdb-active::after {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 3px;
  background: var(--vfdb-secondary);
  border-radius: 0 0 3px 3px;
}

.vfdb-nav-icon {
  font-size: 2.4rem;
  margin-bottom: 0.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vfdb-nav-text {
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  line-height: 1.2;
}

/* Animation */
@keyframes vfdb-fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

body.vfdb-loaded .vfdb-section {
  animation: vfdb-fadeIn 0.6s ease forwards;
}

/* Utility Classes */
.vfdb-text-center {
  text-align: center;
}

.vfdb-mb-1 {
  margin-bottom: 1rem;
}

.vfdb-mb-2 {
  margin-bottom: 2rem;
}

.vfdb-mt-1 {
  margin-top: 1rem;
}

.vfdb-mt-2 {
  margin-top: 2rem;
}
