/* Phwin 51 Styles - All classes use prefix 'v95f-' */

/* CSS Variables */
:root {
  /* Color Palette */
  --v95f-primary: #BC8F8F;
  --v95f-secondary: #8B7355;
  --v95f-bg-dark: #2D2D2D;
  --v95f-bg-light: #F8F8FF;
  --v95f-text: #F8F8FF;
  --v95f-text-dark: #2D2D2D;
  --v95f-accent: #BC8F8F;
  --v95f-success: #28a745;
  --v95f-warning: #ffc107;
  --v95f-danger: #dc3545;

  /* Spacing */
  --v95f-spacing-xs: 0.5rem;
  --v95f-spacing-sm: 1rem;
  --v95f-spacing-md: 1.5rem;
  --v95f-spacing-lg: 2rem;
  --v95f-spacing-xl: 3rem;

  /* Typography */
  --v95f-font-size-xs: 1.2rem;
  --v95f-font-size-sm: 1.4rem;
  --v95f-font-size-base: 1.6rem;
  --v95f-font-size-lg: 1.8rem;
  --v95f-font-size-xl: 2.4rem;
  --v95f-font-size-xxl: 3.2rem;

  /* Layout */
  --v95f-max-width: 430px;
  --v95f-header-height: 64px;
  --v95f-bottom-nav-height: 64px;
  --v95f-border-radius: 8px;
  --v95f-border-radius-lg: 12px;

  /* Transitions */
  --v95f-transition: all 0.3s ease;
}

/* 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, Oxygen, Ubuntu, Cantarell, sans-serif;
  font-size: var(--v95f-font-size-base);
  line-height: 1.5;
  color: var(--v95f-text);
  background-color: var(--v95f-bg-dark);
  max-width: var(--v95f-max-width);
  margin: 0 auto;
  overflow-x: hidden;
}

/* Utility Classes */
.v95f-container {
  width: 100%;
  max-width: var(--v95f-max-width);
  margin: 0 auto;
  padding: 0 var(--v95f-spacing-sm);
}

.v95f-wrapper {
  width: 100%;
  padding-bottom: var(--v95f-bottom-nav-height);
}

.v95f-text-center {
  text-align: center;
}

.v95f-text-primary {
  color: var(--v95f-primary);
}

.v95f-text-secondary {
  color: var(--v95f-secondary);
}

.v95f-text-accent {
  color: var(--v95f-accent);
}

/* Header */
.v95f-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--v95f-header-height);
  background: linear-gradient(135deg, var(--v95f-bg-dark) 0%, #1a1a1a 100%);
  border-bottom: 1px solid rgba(188, 143, 143, 0.2);
  z-index: 1000;
  backdrop-filter: blur(10px);
}

.v95f-header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 0 var(--v95f-spacing-sm);
}

.v95f-logo {
  display: flex;
  align-items: center;
  gap: var(--v95f-spacing-xs);
  text-decoration: none;
  color: var(--v95f-text);
}

.v95f-logo img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
}

.v95f-logo-text {
  font-size: var(--v95f-font-size-lg);
  font-weight: 700;
  color: var(--v95f-primary);
}

.v95f-header-actions {
  display: flex;
  align-items: center;
  gap: var(--v95f-spacing-sm);
}

.v95f-btn {
  padding: var(--v95f-spacing-xs) var(--v95f-spacing-sm);
  border: none;
  border-radius: var(--v95f-border-radius);
  font-size: var(--v95f-font-size-sm);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: var(--v95f-transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  white-space: nowrap;
}

.v95f-btn-primary {
  background: linear-gradient(135deg, var(--v95f-primary) 0%, var(--v95f-secondary) 100%);
  color: var(--v95f-text);
  box-shadow: 0 2px 8px rgba(188, 143, 143, 0.3);
}

.v95f-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(188, 143, 143, 0.4);
}

.v95f-btn-outline {
  background: transparent;
  color: var(--v95f-primary);
  border: 2px solid var(--v95f-primary);
}

.v95f-btn-outline:hover {
  background: var(--v95f-primary);
  color: var(--v95f-text);
}

.v95f-menu-toggle {
  background: none;
  border: none;
  color: var(--v95f-primary);
  font-size: 2.4rem;
  cursor: pointer;
  padding: var(--v95f-spacing-xs);
}

/* Mobile Menu */
.v95f-mobile-menu {
  position: fixed;
  top: var(--v95f-header-height);
  right: -100%;
  width: 80%;
  max-width: 300px;
  height: calc(100vh - var(--v95f-header-height));
  background: var(--v95f-bg-dark);
  border-left: 1px solid rgba(188, 143, 143, 0.2);
  transition: right 0.3s ease;
  z-index: 9999;
  overflow-y: auto;
}

.v95f-mobile-menu.active {
  right: 0;
}

.v95f-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  opacity: 0;
  visibility: hidden;
  transition: var(--v95f-transition);
  z-index: 9998;
}

.v95f-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

.v95f-nav-list {
  list-style: none;
  padding: var(--v95f-spacing-md) 0;
}

.v95f-nav-item {
  border-bottom: 1px solid rgba(188, 143, 143, 0.1);
}

.v95f-nav-link {
  display: block;
  padding: var(--v95f-spacing-sm) var(--v95f-spacing-md);
  color: var(--v95f-text);
  text-decoration: none;
  transition: var(--v95f-transition);
  font-size: var(--v95f-font-size-base);
}

.v95f-nav-link:hover {
  background: rgba(188, 143, 143, 0.1);
  color: var(--v95f-primary);
}

/* Main Content */
.v95f-main {
  padding-top: var(--v95f-header-height);
  min-height: 100vh;
}

/* Hero Section */
.v95f-hero {
  position: relative;
  overflow: hidden;
  border-radius: var(--v95f-border-radius-lg);
  margin: var(--v95f-spacing-sm);
}

.v95f-carousel {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.v95f-carousel-track {
  display: flex;
  transition: transform 0.5s ease;
  height: 100%;
}

.v95f-carousel-slide {
  min-width: 100%;
  height: 100%;
  position: relative;
  cursor: pointer;
}

.v95f-carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.v95f-carousel-controls {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 var(--v95f-spacing-sm);
  pointer-events: none;
}

.v95f-carousel-btn {
  background: rgba(45, 45, 45, 0.8);
  color: var(--v95f-primary);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  font-size: var(--v95f-font-size-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: all;
  transition: var(--v95f-transition);
}

.v95f-carousel-btn:hover {
  background: var(--v95f-primary);
  color: var(--v95f-text);
}

.v95f-carousel-indicators {
  position: absolute;
  bottom: var(--v95f-spacing-sm);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: var(--v95f-spacing-xs);
}

.v95f-carousel-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(248, 248, 255, 0.3);
  cursor: pointer;
  transition: var(--v95f-transition);
}

.v95f-carousel-indicator.active {
  background: var(--v95f-primary);
  transform: scale(1.2);
}

/* Games Section */
.v95f-section {
  padding: var(--v95f-spacing-lg) 0;
}

.v95f-section-title {
  font-size: var(--v95f-font-size-xl);
  font-weight: 700;
  margin-bottom: var(--v95f-spacing-md);
  color: var(--v95f-primary);
  text-align: center;
}

.v95f-games-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--v95f-spacing-xs);
  margin-bottom: var(--v95f-spacing-lg);
}

.v95f-game-card {
  position: relative;
  background: var(--v95f-bg-dark);
  border-radius: var(--v95f-border-radius);
  overflow: hidden;
  transition: var(--v95f-transition);
  cursor: pointer;
}

.v95f-game-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(188, 143, 143, 0.3);
}

.v95f-game-image {
  width: 100%;
  height: 80px;
  object-fit: cover;
}

.v95f-game-name {
  padding: var(--v95f-spacing-xs);
  font-size: var(--v95f-font-size-xs);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--v95f-text);
}

/* Content Modules */
.v95f-content-module {
  background: rgba(248, 248, 255, 0.05);
  border-radius: var(--v95f-border-radius-lg);
  padding: var(--v95f-spacing-md);
  margin-bottom: var(--v95f-spacing-md);
}

.v95f-content-title {
  font-size: var(--v95f-font-size-lg);
  font-weight: 600;
  margin-bottom: var(--v95f-spacing-sm);
  color: var(--v95f-primary);
}

.v95f-content-text {
  font-size: var(--v95f-font-size-sm);
  line-height: 1.6;
  margin-bottom: var(--v95f-spacing-sm);
  color: var(--v95f-text);
}

.v95f-content-link {
  color: var(--v95f-accent);
  text-decoration: none;
  font-weight: 600;
  transition: var(--v95f-transition);
}

.v95f-content-link:hover {
  color: var(--v95f-primary);
  text-decoration: underline;
}

/* FAQ Accordion */
.v95f-faq-item {
  background: rgba(248, 248, 255, 0.05);
  border-radius: var(--v95f-border-radius);
  margin-bottom: var(--v95f-spacing-sm);
  overflow: hidden;
}

.v95f-faq-question {
  padding: var(--v95f-spacing-sm);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  transition: var(--v95f-transition);
}

.v95f-faq-question:hover {
  background: rgba(188, 143, 143, 0.1);
}

.v95f-faq-question.active {
  background: var(--v95f-primary);
  color: var(--v95f-text);
}

.v95f-faq-icon {
  font-size: var(--v95f-font-size-lg);
  transition: var(--v95f-transition);
}

.v95f-faq-answer {
  padding: 0 var(--v95f-spacing-sm);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  font-size: var(--v95f-font-size-sm);
  line-height: 1.6;
}

.v95f-faq-answer.active {
  padding: var(--v95f-spacing-sm);
  max-height: 500px;
}

/* Bottom Navigation */
.v95f-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--v95f-bottom-nav-height);
  background: linear-gradient(135deg, var(--v95f-bg-dark) 0%, #1a1a1a 100%);
  border-top: 1px solid rgba(188, 143, 143, 0.2);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  backdrop-filter: blur(10px);
}

.v95f-bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 60px;
  padding: var(--v95f-spacing-xs);
  text-decoration: none;
  color: var(--v95f-text);
  transition: var(--v95f-transition);
  cursor: pointer;
}

.v95f-bottom-nav-item:hover {
  color: var(--v95f-primary);
  transform: scale(1.1);
}

.v95f-bottom-nav-item.active {
  color: var(--v95f-primary);
}

.v95f-bottom-nav-icon {
  font-size: 2.4rem;
  margin-bottom: 2px;
}

.v95f-bottom-nav-text {
  font-size: 1rem;
  font-weight: 500;
  white-space: nowrap;
}

/* Footer */
.v95f-footer {
  background: var(--v95f-bg-dark);
  padding: var(--v95f-spacing-lg) 0 var(--v95f-bottom-nav-height);
  border-top: 1px solid rgba(188, 143, 143, 0.2);
}

.v95f-footer-content {
  padding: 0 var(--v95f-spacing-sm);
}

.v95f-partners {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--v95f-spacing-sm);
  margin-bottom: var(--v95f-spacing-md);
}

.v95f-partner-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
  opacity: 0.7;
  transition: var(--v95f-transition);
}

.v95f-partner-logo:hover {
  opacity: 1;
}

.v95f-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--v95f-spacing-sm);
  margin-bottom: var(--v95f-spacing-md);
}

.v95f-footer-link {
  color: var(--v95f-text);
  text-decoration: none;
  font-size: var(--v95f-font-size-xs);
  transition: var(--v95f-transition);
}

.v95f-footer-link:hover {
  color: var(--v95f-primary);
}

.v95f-copyright {
  text-align: center;
  font-size: var(--v95f-font-size-xs);
  color: rgba(248, 248, 255, 0.6);
}

/* Scroll to Top Button */
.v95f-scroll-top {
  position: fixed;
  bottom: 80px;
  right: var(--v95f-spacing-sm);
  background: var(--v95f-primary);
  color: var(--v95f-text);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--v95f-font-size-lg);
  box-shadow: 0 4px 12px rgba(188, 143, 143, 0.4);
  opacity: 0;
  visibility: hidden;
  transition: var(--v95f-transition);
  z-index: 999;
}

.v95f-scroll-top.visible {
  opacity: 1;
  visibility: visible;
}

.v95f-scroll-top:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(188, 143, 143, 0.5);
}

/* Responsive Design */
@media (min-width: 769px) {
  .v95f-bottom-nav {
    display: none;
  }

  .v95f-wrapper {
    padding-bottom: 0;
  }

  .v95f-footer {
    padding-bottom: var(--v95f-spacing-lg);
  }
}

@media (max-width: 768px) {
  .v95f-main {
    padding-bottom: var(--v95f-bottom-nav-height);
  }
}

/* Animations */
@keyframes v95f-fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.v95f-fade-in {
  animation: v95f-fadeIn 0.6s ease forwards;
}

/* Loading State */
.v95f-loading {
  position: relative;
  overflow: hidden;
}

.v95f-loading::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(188, 143, 143, 0.3), transparent);
  animation: v95f-loading 1.5s infinite;
}

@keyframes v95f-loading {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}