/* PHSpin CSS Styles with v2d2 prefix - Mobile First Design */
/* Color Scheme: #AD1457 (Pink), #2C2C2C (Dark Gray), #FFB3BA (Light Pink), #FF5722 (Orange) */

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 62.5%; /* 10px = 1rem */
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  font-size: 1.4rem;
  line-height: 1.5;
  color: #FFB3BA;
  background: linear-gradient(135deg, #2C2C2C 0%, #1a1a1a 100%);
  min-height: 100vh;
  overflow-x: hidden;
}

/* CSS Variables */
:root {
  --v2d2-primary: #AD1457;
  --v2d2-secondary: #FF5722;
  --v2d2-bg: #2C2C2C;
  --v2d2-bg-light: #3a3a3a;
  --v2d2-text: #FFB3BA;
  --v2d2-text-dark: #e0e0e0;
  --v2d2-accent: #FFB3BA;
  --v2d2-border: #4a4a4a;
  --v2d2-shadow: rgba(173, 20, 87, 0.2);
  --v2d2-radius: 0.8rem;
  --v2d2-transition: all 0.3s ease;
}

/* Container and Layout */
.v2d2-container {
  max-width: 43rem;
  margin: 0 auto;
  padding: 0 1.6rem;
  width: 100%;
}

.v2d2-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.v2d2-main {
  flex: 1;
  padding-top: 7rem;
  padding-bottom: 8rem;
}

/* Header Styles */
.v2d2-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, var(--v2d2-primary) 0%, #8e1144 100%);
  box-shadow: 0 0.2rem 1rem var(--v2d2-shadow);
  z-index: 1000;
  height: 6rem;
}

.v2d2-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 0 1.6rem;
}

.v2d2-logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  color: white;
  font-weight: 700;
  font-size: 1.8rem;
}

.v2d2-logo-img {
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 0.4rem;
}

.v2d2-nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.v2d2-btn {
  padding: 0.8rem 1.6rem;
  border: none;
  border-radius: var(--v2d2-radius);
  font-size: 1.3rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  transition: var(--v2d2-transition);
  cursor: pointer;
  min-height: 4.4rem;
  justify-content: center;
}

.v2d2-btn-primary {
  background: var(--v2d2-secondary);
  color: white;
  box-shadow: 0 0.2rem 0.8rem rgba(255, 87, 34, 0.3);
}

.v2d2-btn-primary:hover,
.v2d2-btn-primary:focus {
  background: #e64a19;
  transform: translateY(-0.1rem);
  box-shadow: 0 0.4rem 1.2rem rgba(255, 87, 34, 0.4);
}

.v2d2-btn-outline {
  background: transparent;
  color: white;
  border: 0.2rem solid rgba(255, 255, 255, 0.3);
}

.v2d2-btn-outline:hover,
.v2d2-btn-outline:focus {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
}

.v2d2-hamburger {
  width: 2.4rem;
  height: 2.4rem;
  cursor: pointer;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  background: none;
  border: none;
  padding: 0.4rem;
}

.v2d2-hamburger-line {
  width: 100%;
  height: 0.2rem;
  background: white;
  transition: var(--v2d2-transition);
  border-radius: 0.1rem;
}

.v2d2-hamburger-active .v2d2-hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(0.5rem, 0.5rem);
}

.v2d2-hamburger-active .v2d2-hamburger-line:nth-child(2) {
  opacity: 0;
}

.v2d2-hamburger-active .v2d2-hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(0.5rem, -0.5rem);
}

/* Mobile Menu */
.v2d2-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1001;
  opacity: 0;
  visibility: hidden;
  transition: var(--v2d2-transition);
}

.v2d2-overlay-active {
  opacity: 1;
  visibility: visible;
}

.v2d2-mobile-menu {
  position: fixed;
  top: 6rem;
  right: -30rem;
  width: 28rem;
  height: calc(100vh - 6rem);
  background: linear-gradient(135deg, var(--v2d2-bg) 0%, #1a1a1a 100%);
  box-shadow: -0.4rem 0 2rem rgba(0, 0, 0, 0.3);
  z-index: 1002;
  transition: var(--v2d2-transition);
  overflow-y: auto;
}

.v2d2-menu-active {
  right: 0;
}

.v2d2-menu-list {
  list-style: none;
  padding: 2rem 0;
}

.v2d2-menu-item {
  border-bottom: 0.1rem solid var(--v2d2-border);
}

.v2d2-menu-link {
  display: block;
  padding: 1.6rem 2rem;
  color: var(--v2d2-text);
  text-decoration: none;
  transition: var(--v2d2-transition);
  font-weight: 500;
}

.v2d2-menu-link:hover {
  background: var(--v2d2-bg-light);
  color: var(--v2d2-primary);
}

/* Carousel Styles */
.v2d2-carousel {
  position: relative;
  height: 20rem;
  overflow: hidden;
  border-radius: var(--v2d2-radius);
  margin: 2rem 0;
  box-shadow: 0 0.4rem 2rem rgba(0, 0, 0, 0.3);
}

.v2d2-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transition: transform 0.5s ease;
  cursor: pointer;
}

.v2d2-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.v2d2-slide-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
  padding: 2rem;
  color: white;
}

.v2d2-slide-title {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
}

.v2d2-slide-desc {
  font-size: 1.4rem;
  opacity: 0.9;
}

.v2d2-carousel-indicators {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.8rem;
}

.v2d2-indicator {
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: var(--v2d2-transition);
}

.v2d2-indicator-active {
  background: white;
  transform: scale(1.2);
}

/* Game Grid */
.v2d2-games-section {
  margin: 3rem 0;
}

.v2d2-section-title {
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--v2d2-primary);
  margin-bottom: 1rem;
  text-align: center;
}

.v2d2-section-subtitle {
  font-size: 1.6rem;
  color: var(--v2d2-text-dark);
  text-align: center;
  margin-bottom: 2rem;
}

.v2d2-game-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.v2d2-filter-btn {
  padding: 0.8rem 1.6rem;
  background: var(--v2d2-bg-light);
  color: var(--v2d2-text);
  border: 0.1rem solid var(--v2d2-border);
  border-radius: var(--v2d2-radius);
  font-size: 1.3rem;
  cursor: pointer;
  transition: var(--v2d2-transition);
}

.v2d2-filter-btn:hover,
.v2d2-filter-active {
  background: var(--v2d2-primary);
  color: white;
  border-color: var(--v2d2-primary);
}

.v2d2-games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(8rem, 1fr));
  gap: 1.2rem;
  margin-bottom: 2rem;
}

.v2d2-game-card {
  background: var(--v2d2-bg-light);
  border-radius: var(--v2d2-radius);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: var(--v2d2-transition);
  cursor: pointer;
  border: 0.1rem solid var(--v2d2-border);
}

.v2d2-game-card:hover {
  transform: translateY(-0.2rem);
  box-shadow: 0 0.8rem 2rem rgba(173, 20, 87, 0.3);
  border-color: var(--v2d2-primary);
}

.v2d2-game-img {
  width: 100%;
  height: 8rem;
  object-fit: cover;
}

.v2d2-game-name {
  padding: 0.8rem;
  font-size: 1.2rem;
  font-weight: 600;
  text-align: center;
  line-height: 1.3;
  min-height: 4rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Content Sections */
.v2d2-content-section {
  margin: 4rem 0;
  padding: 2rem;
  background: var(--v2d2-bg-light);
  border-radius: var(--v2d2-radius);
  border: 0.1rem solid var(--v2d2-border);
}

.v2d2-content-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--v2d2-primary);
  margin-bottom: 1.5rem;
}

.v2d2-content-text {
  font-size: 1.4rem;
  line-height: 1.6;
  color: var(--v2d2-text-dark);
  margin-bottom: 1.5rem;
}

.v2d2-content-list {
  list-style: none;
  margin: 1.5rem 0;
}

.v2d2-content-list li {
  padding: 0.8rem 0;
  border-bottom: 0.1rem solid var(--v2d2-border);
  position: relative;
  padding-left: 2rem;
}

.v2d2-content-list li:before {
  content: '•';
  color: var(--v2d2-primary);
  font-weight: bold;
  position: absolute;
  left: 0;
}

/* FAQ Styles */
.v2d2-faq-item {
  background: var(--v2d2-bg-light);
  border: 0.1rem solid var(--v2d2-border);
  border-radius: var(--v2d2-radius);
  margin-bottom: 1rem;
  overflow: hidden;
}

.v2d2-faq-question {
  width: 100%;
  padding: 1.5rem;
  background: none;
  border: none;
  color: var(--v2d2-text);
  font-size: 1.5rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--v2d2-transition);
}

.v2d2-faq-question:hover {
  background: rgba(173, 20, 87, 0.1);
}

.v2d2-faq-icon {
  font-size: 1.8rem;
  color: var(--v2d2-primary);
  transition: var(--v2d2-transition);
}

.v2d2-faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.v2d2-faq-answer-content {
  padding: 0 1.5rem 1.5rem;
  color: var(--v2d2-text-dark);
  line-height: 1.6;
}

/* Bottom Navigation */
.v2d2-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, var(--v2d2-primary) 0%, #8e1144 100%);
  box-shadow: 0 -0.2rem 1rem var(--v2d2-shadow);
  z-index: 999;
  height: 6.4rem;
}

.v2d2-bottom-nav-container {
  display: flex;
  align-items: center;
  justify-content: space-around;
  height: 100%;
  max-width: 43rem;
  margin: 0 auto;
  padding: 0 1rem;
}

.v2d2-bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.7);
  transition: var(--v2d2-transition);
  padding: 0.5rem;
  border-radius: 0.4rem;
  min-width: 4.4rem;
}

.v2d2-bottom-nav-item:hover,
.v2d2-nav-active {
  color: white;
  background: rgba(255, 255, 255, 0.1);
}

.v2d2-nav-icon {
  font-size: 2.4rem;
  margin-bottom: 0.2rem;
}

.v2d2-nav-text {
  font-size: 1rem;
  font-weight: 500;
}

/* Footer */
.v2d2-footer {
  background: var(--v2d2-bg);
  border-top: 0.1rem solid var(--v2d2-border);
  padding: 3rem 0 10rem;
  margin-top: 4rem;
}

.v2d2-footer-content {
  text-align: center;
}

.v2d2-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2rem;
}

.v2d2-footer-link {
  color: var(--v2d2-text);
  text-decoration: none;
  font-size: 1.3rem;
  transition: var(--v2d2-transition);
}

.v2d2-footer-link:hover {
  color: var(--v2d2-primary);
}

.v2d2-partners {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin: 2rem 0;
}

.v2d2-partner-img {
  width: 4rem;
  height: 4rem;
  object-fit: contain;
  filter: grayscale(100%) opacity(0.7);
  transition: var(--v2d2-transition);
}

.v2d2-partner-img:hover {
  filter: grayscale(0%) opacity(1);
}

.v2d2-copyright {
  color: rgba(255, 179, 186, 0.6);
  font-size: 1.2rem;
  margin-top: 2rem;
}

/* Utility Classes */
.v2d2-text-center {
  text-align: center;
}

.v2d2-text-primary {
  color: var(--v2d2-primary);
}

.v2d2-text-secondary {
  color: var(--v2d2-secondary);
}

.v2d2-mb-2 {
  margin-bottom: 2rem;
}

.v2d2-mt-2 {
  margin-top: 2rem;
}

.v2d2-promo-link {
  color: var(--v2d2-secondary);
  font-weight: 600;
  text-decoration: none;
  transition: var(--v2d2-transition);
}

.v2d2-promo-link:hover {
  color: var(--v2d2-primary);
  text-decoration: underline;
}

/* Touch Feedback */
.v2d2-touch-active {
  transform: scale(0.95);
  opacity: 0.8;
}

/* Scroll to Top Button */
.v2d2-scroll-top {
  position: fixed;
  bottom: 8rem;
  right: 2rem;
  width: 5rem;
  height: 5rem;
  background: var(--v2d2-primary);
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 2rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(2rem);
  transition: var(--v2d2-transition);
  box-shadow: 0 0.4rem 1.2rem var(--v2d2-shadow);
  z-index: 500;
}

.v2d2-scroll-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Responsive Design */
@media (min-width: 480px) {
  .v2d2-games-grid {
    grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr));
  }
  
  .v2d2-game-img {
    height: 10rem;
  }
}

@media (min-width: 768px) {
  .v2d2-container {
    max-width: 76.8rem;
  }
  
  .v2d2-games-grid {
    grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr));
  }
  
  .v2d2-game-img {
    height: 12rem;
  }
  
  .v2d2-carousel {
    height: 25rem;
  }
  
  .v2d2-bottom-nav {
    display: none;
  }
  
  .v2d2-main {
    padding-bottom: 2rem;
  }
  
  .v2d2-footer {
    padding-bottom: 3rem;
  }
}

/* Loading Animation */
@keyframes v2d2-fadeIn {
  from {
    opacity: 0;
    transform: translateY(2rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.v2d2-fade-in {
  animation: v2d2-fadeIn 0.6s ease;
}

/* Error States */
.v2d2-input-error {
  border-color: #f44336 !important;
  box-shadow: 0 0 0 0.2rem rgba(244, 67, 54, 0.2) !important;
}

/* Dark Mode Adjustments */
@media (prefers-color-scheme: dark) {
  :root {
    --v2d2-text: #FFB3BA;
    --v2d2-text-dark: #e0e0e0;
  }
}