/* PH JL96 - Layout Stylesheet */
/* All classes use vf4c- prefix for namespace isolation */

/* CSS Variables */
:root {
  --vf4c-primary: #FF9500;
  --vf4c-secondary: #FFD700;
  --vf4c-accent: #FFCC02;
  --vf4c-dark: #141414;
  --vf4c-light: #FF91A4;
  --vf4c-bg: #0a0a0a;
  --vf4c-text: #ffffff;
  --vf4c-gradient: linear-gradient(135deg, var(--vf4c-primary) 0%, var(--vf4c-secondary) 100%);
  --vf4c-shadow: 0 4px 12px rgba(255, 149, 0, 0.15);
  --vf4c-shadow-lg: 0 8px 24px rgba(255, 149, 0, 0.25);
  --vf4c-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --vf4c-border-radius: 12px;
  --vh: 1vh;
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--vf4c-bg);
  color: var(--vf4c-text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  -webkit-user-select: none;
  user-select: none;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--vf4c-transition);
}

button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
}

/* Layout */
.vf4c-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

.vf4c-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.vf4c-grid {
  display: grid;
  gap: 16px;
}

/* Header */
.vf4c-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: linear-gradient(180deg, rgba(20, 20, 20, 0.98) 0%, rgba(20, 20, 20, 0.95) 100%);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 149, 0, 0.2);
  padding: 12px 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.vf4c-header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.vf4c-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 20px;
  font-weight: 700;
  color: var(--vf4c-primary);
  text-shadow: 0 0 10px rgba(255, 149, 0, 0.3);
}

.vf4c-logo-icon {
  width: 36px;
  height: 36px;
  background: var(--vf4c-gradient);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: var(--vf4c-shadow);
}

.vf4c-logo-text {
  background: var(--vf4c-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 0.5px;
}

.vf4c-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.vf4c-menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  color: var(--vf4c-primary);
  font-size: 24px;
  border-radius: 8px;
  background: rgba(255, 149, 0, 0.1);
  transition: var(--vf4c-transition);
}

.vf4c-menu-toggle:active {
  transform: scale(0.95);
}

/* Navigation */
.vf4c-nav {
  display: flex;
  align-items: center;
}

.vf4c-nav-list {
  display: flex;
  list-style: none;
  gap: 8px;
  align-items: center;
}

.vf4c-nav-item {
  position: relative;
}

.vf4c-nav-link {
  display: block;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  transition: var(--vf4c-transition);
  white-space: nowrap;
}

.vf4c-nav-link:hover,
.vf4c-nav-link.vf4c-active {
  background: rgba(255, 149, 0, 0.15);
  color: var(--vf4c-primary);
}

/* Mobile Menu */
.vf4c-mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 280px;
  height: 100%;
  background: linear-gradient(180deg, #1a1a1a 0%, #0a0a0a 100%);
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.5);
  z-index: 9999;
  transition: right 0.3s ease-in-out;
  overflow-y: auto;
  padding: 80px 0 100px;
}

.vf4c-mobile-menu.vf4c-active {
  right: 0;
}

.vf4c-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: var(--vf4c-transition);
}

.vf4c-menu-overlay.vf4c-active {
  opacity: 1;
  visibility: visible;
}

.vf4c-mobile-menu-list {
  list-style: none;
  padding: 0 20px;
}

.vf4c-mobile-menu-item {
  border-bottom: 1px solid rgba(255, 149, 0, 0.1);
}

.vf4c-mobile-menu-link {
  display: block;
  padding: 16px 12px;
  font-size: 15px;
  font-weight: 500;
  transition: var(--vf4c-transition);
  color: #ffffff;
}

.vf4c-mobile-menu-link:hover,
.vf4c-mobile-menu-link.vf4c-active {
  color: var(--vf4c-primary);
  padding-left: 20px;
}

/* Buttons */
.vf4c-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: var(--vf4c-border-radius);
  font-size: 14px;
  font-weight: 600;
  transition: var(--vf4c-transition);
  cursor: pointer;
  border: none;
  outline: none;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.vf4c-btn-primary {
  background: var(--vf4c-gradient);
  color: var(--vf4c-dark);
  box-shadow: var(--vf4c-shadow);
}

.vf4c-btn-primary:hover {
  box-shadow: var(--vf4c-shadow-lg);
  transform: translateY(-2px);
}

.vf4c-btn-primary:active {
  transform: translateY(0);
}

.vf4c-btn-secondary {
  background: rgba(255, 149, 0, 0.1);
  color: var(--vf4c-primary);
  border: 1px solid var(--vf4c-primary);
}

.vf4c-btn-secondary:hover {
  background: rgba(255, 149, 0, 0.2);
}

/* Carousel */
.vf4c-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: var(--vf4c-border-radius);
  box-shadow: var(--vf4c-shadow-lg);
  margin: 80px 0 24px;
}

.vf4c-carousel-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.vf4c-carousel-slide {
  min-width: 100%;
  position: relative;
}

.vf4c-carousel-slide img {
  width: 100%;
  height: auto;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.vf4c-carousel-prev,
.vf4c-carousel-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background: rgba(20, 20, 20, 0.8);
  color: var(--vf4c-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  z-index: 10;
  cursor: pointer;
  transition: var(--vf4c-transition);
}

.vf4c-carousel-prev {
  left: 16px;
}

.vf4c-carousel-next {
  right: 16px;
}

.vf4c-carousel-prev:hover,
.vf4c-carousel-next:hover {
  background: rgba(255, 149, 0, 0.9);
  color: var(--vf4c-dark);
}

.vf4c-carousel-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.vf4c-carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: var(--vf4c-transition);
}

.vf4c-carousel-dot.vf4c-active {
  background: var(--vf4c-primary);
  width: 28px;
  border-radius: 5px;
}

/* Section */
.vf4c-section {
  padding: 32px 0;
}

.vf4c-section-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 20px;
  background: var(--vf4c-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

/* Game Grid */
.vf4c-game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
}

.vf4c-game-card {
  position: relative;
  border-radius: var(--vf4c-border-radius);
  overflow: hidden;
  cursor: pointer;
  transition: var(--vf4c-transition);
  background: rgba(255, 149, 0, 0.05);
  border: 1px solid rgba(255, 149, 0, 0.1);
}

.vf4c-game-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--vf4c-shadow-lg);
  border-color: var(--vf4c-primary);
}

.vf4c-game-image {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  transition: var(--vf4c-transition);
}

.vf4c-game-card:hover .vf4c-game-image {
  transform: scale(1.05);
}

.vf4c-game-name {
  padding: 12px;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  background: linear-gradient(180deg, transparent 0%, rgba(20, 20, 20, 0.9) 100%);
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
}

/* Content Section */
.vf4c-content-section {
  background: rgba(255, 149, 0, 0.03);
  border-radius: var(--vf4c-border-radius);
  padding: 24px;
  margin: 24px 0;
  border-left: 4px solid var(--vf4c-primary);
}

.vf4c-content-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--vf4c-primary);
}

.vf4c-content-text {
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.9);
}

.vf4c-content-text p {
  margin-bottom: 12px;
}

.vf4c-content-text ul,
.vf4c-content-text ol {
  margin: 12px 0;
  padding-left: 24px;
}

.vf4c-content-text li {
  margin-bottom: 8px;
}

.vf4c-content-text a {
  color: var(--vf4c-secondary);
  text-decoration: underline;
}

.vf4c-content-text a:hover {
  color: var(--vf4c-primary);
}

/* Card */
.vf4c-card {
  background: rgba(255, 149, 0, 0.05);
  border-radius: var(--vf4c-border-radius);
  padding: 20px;
  border: 1px solid rgba(255, 149, 0, 0.1);
}

/* Bottom Navigation */
.vf4c-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(180deg, rgba(20, 20, 20, 0.95) 0%, rgba(20, 20, 20, 0.98) 100%);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255, 149, 0, 0.2);
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 8px 0;
  z-index: 1000;
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.3);
  height: 60px;
}

.vf4c-nav-button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 60px;
  min-height: 60px;
  padding: 6px;
  color: rgba(255, 255, 255, 0.7);
  transition: var(--vf4c-transition);
  cursor: pointer;
  border-radius: 8px;
}

.vf4c-nav-button:hover,
.vf4c-nav-button.vf4c-active {
  color: var(--vf4c-primary);
  background: rgba(255, 149, 0, 0.1);
}

.vf4c-nav-icon {
  font-size: 24px;
  line-height: 1;
}

.vf4c-nav-text {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

/* Footer */
.vf4c-footer {
  background: linear-gradient(180deg, #1a1a1a 0%, #0a0a0a 100%);
  border-top: 1px solid rgba(255, 149, 0, 0.2);
  padding: 40px 0 20px;
  margin-top: auto;
}

.vf4c-partners {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
  align-items: center;
}

.vf4c-partner-logo {
  height: 40px;
  object-fit: contain;
  opacity: 0.7;
  transition: var(--vf4c-transition);
  filter: grayscale(1);
}

.vf4c-partner-logo:hover {
  opacity: 1;
  filter: grayscale(0);
}

.vf4c-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-bottom: 24px;
}

.vf4c-footer-link {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  transition: var(--vf4c-transition);
}

.vf4c-footer-link:hover {
  color: var(--vf4c-primary);
}

.vf4c-copyright {
  text-align: center;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  padding-top: 20px;
  border-top: 1px solid rgba(255, 149, 0, 0.1);
}

/* Utilities */
.vf4c-highlight {
  color: var(--vf4c-primary);
  font-weight: 600;
}

.vf4c-animate {
  animation: vf4c-fadeInUp 0.6s ease-out;
}

@keyframes vf4c-fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.vf4c-ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 149, 0, 0.5);
  width: 20px;
  height: 20px;
  transform: translate(-50%, -50%);
  pointer-events: none;
  animation: vf4c-ripple-effect 0.6s ease-out;
}

@keyframes vf4c-ripple-effect {
  to {
    transform: translate(-50%, -50%) scale(10);
    opacity: 0;
  }
}

.vf4c-scroll-top {
  position: fixed;
  bottom: 80px;
  right: 20px;
  width: 50px;
  height: 50px;
  background: var(--vf4c-gradient);
  color: var(--vf4c-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  box-shadow: var(--vf4c-shadow-lg);
  opacity: 0;
  visibility: hidden;
  transition: var(--vf4c-transition);
  z-index: 999;
  cursor: pointer;
}

.vf4c-scroll-top.vf4c-visible {
  opacity: 1;
  visibility: visible;
}

.vf4c-scroll-top:hover {
  transform: translateY(-4px);
}

/* Responsive */
@media (max-width: 768px) {
  .vf4c-bottom-nav {
    display: flex;
  }

  main {
    padding-bottom: 80px;
  }

  .vf4c-menu-toggle {
    display: flex;
  }

  .vf4c-nav {
    display: none;
  }

  .vf4c-game-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
  }

  .vf4c-section-title {
    font-size: 20px;
  }

  .vf4c-content-section {
    padding: 16px;
  }
}

@media (min-width: 769px) {
  .vf4c-bottom-nav {
    display: none;
  }

  main {
    padding-bottom: 0;
  }
}
