/**
 * Phlwin Link CSS Layout
 * All classes use v0a9- prefix for namespace isolation
 */

/* CSS Variables - Color Palette */
:root {
  --v0a9-primary: #95A5A6;
  --v0a9-secondary: #BC8F8F;
  --v0a9-accent: #CED4DA;
  --v0a9-light: #F5F5F5;
  --v0a9-dark: #708090;
  --v0a9-darker: #1A1A2E;
  --v0a9-white: #ffffff;
  --v0a9-black: #000000;
  --v0a9-gray: #6c757d;
  --v0a9-success: #28a745;
  --v0a9-warning: #ffc107;
  --v0a9-danger: #dc3545;
  --v0a9-info: #17a2b8;
  --v0a9-shadow: rgba(0, 0, 0, 0.1);
  --v0a9-shadow-hover: rgba(0, 0, 0, 0.15);
  --v0a9-transition: all 0.3s ease;
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--v0a9-dark);
  background-color: var(--v0a9-light);
  overflow-x: hidden;
}

/* Typography */
.v0a9-h1, .v0a9-h2, .v0a9-h3, .v0a9-h4, .v0a9-h5, .v0a9-h6 {
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--v0a9-darker);
}

.v0a9-h1 { font-size: 2.5rem; }
.v0a9-h2 { font-size: 2rem; }
.v0a9-h3 { font-size: 1.75rem; }
.v0a9-h4 { font-size: 1.5rem; }
.v0a9-h5 { font-size: 1.25rem; }
.v0a9-h6 { font-size: 1rem; }

.v0a9-text-center { text-align: center; }
.v0a9-text-left { text-align: left; }
.v0a9-text-right { text-align: right; }

/* Layout Containers */
.v0a9-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.v0a9-container-fluid {
  width: 100%;
  padding: 0 1rem;
}

/* Header */
.v0a9-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, var(--v0a9-darker) 0%, var(--v0a9-dark) 100%);
  backdrop-filter: blur(10px);
  z-index: 1000;
  padding: 0.75rem 0;
  transition: var(--v0a9-transition);
  box-shadow: 0 2px 20px var(--v0a9-shadow);
}

.v0a9-header.scrolled {
  background: rgba(26, 26, 46, 0.95);
  box-shadow: 0 4px 30px var(--v0a9-shadow-hover);
}

.v0a9-header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.v0a9-logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--v0a9-white);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.v0a9-logo i {
  color: var(--v0a9-secondary);
  font-size: 1.75rem;
}

.v0a9-nav-desktop {
  display: none;
}

.v0a9-nav-mobile {
  display: flex;
  gap: 0.5rem;
}

.v0a9-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: var(--v0a9-transition);
  gap: 0.5rem;
}

.v0a9-btn-primary {
  background: linear-gradient(135deg, var(--v0a9-secondary) 0%, var(--v0a9-primary) 100%);
  color: var(--v0a9-white);
  box-shadow: 0 4px 15px rgba(188, 143, 143, 0.3);
}

.v0a9-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(188, 143, 143, 0.4);
}

.v0a9-btn-outline {
  background: transparent;
  color: var(--v0a9-white);
  border: 2px solid var(--v0a9-white);
}

.v0a9-btn-outline:hover {
  background: var(--v0a9-white);
  color: var(--v0a9-darker);
}

.v0a9-menu-toggle {
  background: none;
  border: none;
  color: var(--v0a9-white);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 4px;
  transition: var(--v0a9-transition);
}

.v0a9-menu-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Mobile Menu */
.v0a9-mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 320px;
  height: 100vh;
  background: var(--v0a9-darker);
  z-index: 9999;
  transition: right 0.3s ease;
  overflow-y: auto;
}

.v0a9-mobile-menu.active {
  right: 0;
}

.v0a9-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: var(--v0a9-transition);
}

.v0a9-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

.v0a9-menu-header {
  padding: 1.5rem;
  background: linear-gradient(135deg, var(--v0a9-secondary) 0%, var(--v0a9-primary) 100%);
  color: var(--v0a9-white);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.v0a9-menu-close {
  background: none;
  border: none;
  color: var(--v0a9-white);
  font-size: 1.5rem;
  cursor: pointer;
}

.v0a9-menu-nav {
  padding: 1rem 0;
}

.v0a9-menu-nav a {
  display: block;
  padding: 1rem 1.5rem;
  color: var(--v0a9-white);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: var(--v0a9-transition);
}

.v0a9-menu-nav a:hover {
  background: rgba(255, 255, 255, 0.05);
  padding-left: 2rem;
}

/* Main Content */
.v0a9-main {
  padding-top: 80px;
  min-height: 100vh;
}

/* Carousel */
.v0a9-carousel {
  position: relative;
  width: 100%;
  height: 300px;
  overflow: hidden;
  border-radius: 12px;
  margin-bottom: 2rem;
  box-shadow: 0 10px 30px var(--v0a9-shadow-hover);
}

.v0a9-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.v0a9-slide.active {
  opacity: 1;
}

.v0a9-slide-content {
  text-align: center;
  color: var(--v0a9-white);
  background: rgba(0, 0, 0, 0.6);
  padding: 2rem;
  border-radius: 8px;
  backdrop-filter: blur(10px);
}

.v0a9-slide-content h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--v0a9-white);
}

.v0a9-carousel-nav {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
}

.v0a9-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: var(--v0a9-transition);
}

.v0a9-dot.active {
  background: var(--v0a9-secondary);
  transform: scale(1.2);
}

.v0a9-carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: var(--v0a9-white);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  transition: var(--v0a9-transition);
}

.v0a9-carousel-btn:hover {
  background: rgba(0, 0, 0, 0.7);
}

.v0a9-prev { left: 1rem; }
.v0a9-next { right: 1rem; }

/* Game Sections */
.v0a9-section {
  margin-bottom: 3rem;
}

.v0a9-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.v0a9-section-title {
  font-size: 1.5rem;
  color: var(--v0a9-darker);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.v0a9-filter-buttons {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.v0a9-filter-btn {
  padding: 0.5rem 1rem;
  border: 2px solid var(--v0a9-accent);
  background: var(--v0a9-white);
  color: var(--v0a9-dark);
  border-radius: 20px;
  cursor: pointer;
  transition: var(--v0a9-transition);
  font-size: 0.85rem;
  font-weight: 500;
}

.v0a9-filter-btn:hover,
.v0a9-filter-btn.active {
  background: var(--v0a9-secondary);
  color: var(--v0a9-white);
  border-color: var(--v0a9-secondary);
}

/* Game Grid */
.v0a9-game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1rem;
}

.v0a9-game-card {
  background: var(--v0a9-white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px var(--v0a9-shadow);
  transition: var(--v0a9-transition);
  cursor: pointer;
}

.v0a9-game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px var(--v0a9-shadow-hover);
}

.v0a9-game-image {
  width: 100%;
  height: 120px;
  object-fit: cover;
  background: linear-gradient(135deg, var(--v0a9-accent) 0%, var(--v0a9-primary) 100%);
}

.v0a9-game-info {
  padding: 1rem;
}

.v0a9-game-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--v0a9-darker);
  margin-bottom: 0.5rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.v0a9-game-type {
  font-size: 0.75rem;
  color: var(--v0a9-gray);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Content Modules */
.v0a9-content-module {
  background: var(--v0a9-white);
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 4px 15px var(--v0a9-shadow);
}

.v0a9-content-module h2 {
  color: var(--v0a9-darker);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.v0a9-content-module h2 i {
  color: var(--v0a9-secondary);
}

.v0a9-content-module p {
  margin-bottom: 1rem;
  line-height: 1.7;
}

.v0a9-content-module ul {
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

.v0a9-content-module li {
  margin-bottom: 0.5rem;
}

/* Bottom Navigation */
.v0a9-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--v0a9-darker);
  backdrop-filter: blur(10px);
  z-index: 1000;
  padding: 0.5rem 0;
  box-shadow: 0 -4px 20px var(--v0a9-shadow-hover);
}

.v0a9-bottom-nav-content {
  display: flex;
  justify-content: space-around;
  align-items: center;
  max-width: 430px;
  margin: 0 auto;
}

.v0a9-bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 60px;
  min-height: 60px;
  padding: 0.5rem;
  color: var(--v0a9-gray);
  text-decoration: none;
  border-radius: 12px;
  transition: var(--v0a9-transition);
  cursor: pointer;
}

.v0a9-bottom-nav-item:hover,
.v0a9-bottom-nav-item.active {
  color: var(--v0a9-secondary);
  background: rgba(188, 143, 143, 0.1);
  transform: translateY(-2px);
}

.v0a9-bottom-nav-item i {
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
}

.v0a9-bottom-nav-item span {
  font-size: 0.7rem;
  font-weight: 500;
}

/* Footer */
.v0a9-footer {
  background: var(--v0a9-darker);
  color: var(--v0a9-white);
  padding: 3rem 0 2rem;
  margin-top: 4rem;
}

.v0a9-footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.v0a9-footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.v0a9-footer-section h3 {
  color: var(--v0a9-secondary);
  margin-bottom: 1rem;
}

.v0a9-footer-section a {
  color: var(--v0a9-accent);
  text-decoration: none;
  display: block;
  margin-bottom: 0.5rem;
  transition: var(--v0a9-transition);
}

.v0a9-footer-section a:hover {
  color: var(--v0a9-secondary);
}

.v0a9-footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--v0a9-gray);
}

/* Responsive Design */
@media (min-width: 769px) {
  .v0a9-bottom-nav {
    display: none;
  }

  .v0a9-main {
    padding-bottom: 0;
  }

  .v0a9-nav-desktop {
    display: flex;
    gap: 1rem;
  }

  .v0a9-nav-mobile {
    display: none;
  }

  .v0a9-game-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }

  .v0a9-carousel {
    height: 400px;
  }
}

@media (max-width: 768px) {
  .v0a9-main {
    padding-bottom: 80px;
  }

  .v0a9-h1 { font-size: 2rem; }
  .v0a9-h2 { font-size: 1.5rem; }
  .v0a9-h3 { font-size: 1.25rem; }

  .v0a9-section-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .v0a9-filter-buttons {
    width: 100%;
    justify-content: flex-start;
  }

  .v0a9-content-module {
    padding: 1.5rem;
  }

  .v0a9-slide-content h2 {
    font-size: 1.5rem;
  }
}

@media (max-width: 430px) {
  .v0a9-container {
    padding: 0 0.5rem;
  }

  .v0a9-game-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  .v0a9-carousel {
    height: 250px;
    border-radius: 8px;
  }

  .v0a9-btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.85rem;
  }

  .v0a9-section-title {
    font-size: 1.25rem;
  }
}

/* Utility Classes */
.v0a9-mb-1 { margin-bottom: 0.5rem; }
.v0a9-mb-2 { margin-bottom: 1rem; }
.v0a9-mb-3 { margin-bottom: 1.5rem; }
.v0a9-mb-4 { margin-bottom: 2rem; }

.v0a9-mt-1 { margin-top: 0.5rem; }
.v0a9-mt-2 { margin-top: 1rem; }
.v0a9-mt-3 { margin-top: 1.5rem; }
.v0a9-mt-4 { margin-top: 2rem; }

.v0a9-p-1 { padding: 0.5rem; }
.v0a9-p-2 { padding: 1rem; }
.v0a9-p-3 { padding: 1.5rem; }
.v0a9-p-4 { padding: 2rem; }

.v0a9-d-none { display: none; }
.v0a9-d-block { display: block; }
.v0a9-d-flex { display: flex; }
.v0a9-d-inline-flex { display: inline-flex; }

.v0a9-flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.v0a9-flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Animations */
@keyframes v0a9-fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.v0a9-fade-in {
  animation: v0a9-fadeIn 0.6s ease forwards;
}

@keyframes v0a9-slideInRight {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

.v0a9-slide-in-right {
  animation: v0a9-slideInRight 0.3s ease forwards;
}

/* Loading States */
.v0a9-loading {
  position: relative;
  overflow: hidden;
}

.v0a9-loading::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% { left: -100%; }
  100% { left: 100%; }
}