/* PHSKY COM - Master Stylesheet with v9fb- prefix */
/* Color Palette: #E65100 (Deep Orange), #BAE1FF (Light Blue), #495057 (Dark Gray),
   #FFCCCB (Light Coral), #0C0C0C (Almost Black), #FFBF00 (Amber) */

/* CSS Variables for consistent theming */
:root {
  --v9fb-primary: #E65100;
  --v9fb-accent: #BAE1FF;
  --v9fb-dark-bg: #0C0C0C;
  --v9fb-gray-bg: #495057;
  --v9fb-coral: #FFCCCB;
  --v9fb-amber: #FFBF00;
  --v9fb-text-light: #FFFFFF;
  --v9fb-text-dark: #1A1A1A;
  --v9fb-border: #2d2d2d;
  --v9fb-shadow: rgba(0, 0, 0, 0.3);
  --v9fb-transition: all 0.3s ease;
}

/* 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, Oxygen, Ubuntu, Cantarell, sans-serif;
  font-size: 1.6rem;
  line-height: 1.5;
  color: var(--v9fb-text-light);
  background: linear-gradient(135deg, var(--v9fb-dark-bg) 0%, #1a1a2e 50%, var(--v9fb-gray-bg) 100%);
  min-height: 100vh;
  overflow-x: hidden;
}

/* Typography */
h1 {
  font-size: 2.8rem;
  font-weight: 700;
  margin: 2rem 0 1rem;
  color: var(--v9fb-amber);
  text-shadow: 2px 2px 4px var(--v9fb-shadow);
}

h2 {
  font-size: 2.2rem;
  font-weight: 600;
  margin: 2rem 0 1rem;
  color: var(--v9fb-accent);
}

h3 {
  font-size: 1.8rem;
  font-weight: 600;
  margin: 1.5rem 0 0.8rem;
  color: var(--v9fb-coral);
}

p {
  margin-bottom: 1rem;
  line-height: 1.6;
}

a {
  color: var(--v9fb-amber);
  text-decoration: none;
  transition: var(--v9fb-transition);
  cursor: pointer;
}

a:hover {
  color: var(--v9fb-accent);
  text-decoration: underline;
}

/* Container and layout */
.v9fb-container {
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1rem;
  width: 100%;
}

.v9fb-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
  padding-top: 70px;
  padding-bottom: 80px;
  position: relative;
}

/* Header styles */
.v9fb-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 70px;
  background: linear-gradient(90deg, var(--v9fb-dark-bg) 0%, #2d2d2d 100%);
  border-bottom: 3px solid var(--v9fb-primary);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
  box-shadow: 0 4px 12px var(--v9fb-shadow);
}

.v9fb-header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
}

.v9fb-logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex: 1;
}

.v9fb-logo img {
  width: 32px;
  height: 32px;
  border-radius: 6px;
}

.v9fb-logo-text {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--v9fb-amber);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.v9fb-header-buttons {
  display: flex;
  gap: 0.8rem;
  align-items: center;
}

.v9fb-header-btn {
  padding: 0.6rem 1rem;
  border: 2px solid var(--v9fb-primary);
  background: transparent;
  color: var(--v9fb-primary);
  border-radius: 6px;
  cursor: pointer;
  font-size: 1.3rem;
  font-weight: 600;
  transition: var(--v9fb-transition);
  white-space: nowrap;
}

.v9fb-header-btn:hover {
  background: var(--v9fb-primary);
  color: var(--v9fb-text-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(230, 81, 0, 0.4);
}

.v9fb-header-btn.v9fb-register {
  background: var(--v9fb-primary);
  color: var(--v9fb-text-light);
}

.v9fb-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--v9fb-amber);
  font-size: 1.8rem;
  cursor: pointer;
  padding: 0.5rem;
  transition: var(--v9fb-transition);
}

.v9fb-menu-toggle:hover {
  color: var(--v9fb-coral);
}

/* Mobile menu */
.v9fb-mobile-menu {
  display: none;
  position: fixed;
  top: 70px;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, #1a1a2e 0%, var(--v9fb-dark-bg) 100%);
  flex-direction: column;
  overflow-y: auto;
  z-index: 999;
  animation: slideDown 0.3s ease;
  border-top: 2px solid var(--v9fb-primary);
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.v9fb-mobile-menu.v9fb-active {
  display: flex;
}

.v9fb-mobile-menu a {
  padding: 1.2rem 1.5rem;
  border-bottom: 1px solid var(--v9fb-border);
  color: var(--v9fb-text-light);
  font-size: 1.5rem;
  font-weight: 500;
  transition: var(--v9fb-transition);
}

.v9fb-mobile-menu a:hover {
  background: rgba(230, 81, 0, 0.1);
  color: var(--v9fb-amber);
  padding-left: 2rem;
}

.v9fb-mobile-menu a.v9fb-promo-link {
  background: rgba(230, 81, 0, 0.2);
  color: var(--v9fb-coral);
  font-weight: 600;
}

/* Carousel */
.v9fb-carousel {
  position: relative;
  width: 100%;
  aspect-ratio: 2.4 / 1;
  border-radius: 12px;
  overflow: hidden;
  margin: 2rem 0;
  box-shadow: 0 8px 24px var(--v9fb-shadow);
}

.v9fb-carousel-container {
  display: flex;
  height: 100%;
  transition: transform 0.5s ease;
}

.v9fb-carousel-slide {
  min-width: 100%;
  height: 100%;
  position: relative;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.v9fb-carousel-slide.v9fb-active {
  opacity: 1;
}

.v9fb-carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.v9fb-carousel-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(230, 81, 0, 0.3) 0%, rgba(186, 225, 255, 0.2) 100%);
}

/* Game grid */
.v9fb-games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}

.v9fb-game-item {
  text-align: center;
  cursor: pointer;
  transition: var(--v9fb-transition);
}

.v9fb-game-icon {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  overflow: hidden;
  margin: 0 auto;
  box-shadow: 0 4px 12px var(--v9fb-shadow);
  transition: var(--v9fb-transition);
  border: 2px solid transparent;
}

.v9fb-game-item:hover .v9fb-game-icon {
  transform: scale(1.08) rotate(-2deg);
  border-color: var(--v9fb-amber);
  box-shadow: 0 6px 20px rgba(255, 191, 0, 0.4);
}

.v9fb-game-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.v9fb-game-name {
  font-size: 1.1rem;
  font-weight: 500;
  margin-top: 0.5rem;
  color: var(--v9fb-text-light);
  line-height: 1.3;
  min-height: 2.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--v9fb-transition);
}

.v9fb-game-item:hover .v9fb-game-name {
  color: var(--v9fb-amber);
}

/* Section styling */
.v9fb-section {
  margin: 2.5rem 0;
  padding: 2rem;
  background: linear-gradient(135deg, rgba(45, 45, 45, 0.5) 0%, rgba(73, 80, 87, 0.3) 100%);
  border-radius: 12px;
  border-left: 4px solid var(--v9fb-primary);
  backdrop-filter: blur(5px);
}

.v9fb-section h2 {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.v9fb-section i {
  font-size: 2.4rem;
  color: var(--v9fb-coral);
}

/* Button styles */
.v9fb-btn {
  display: inline-block;
  padding: 1rem 1.8rem;
  background: linear-gradient(135deg, var(--v9fb-primary) 0%, #d84600 100%);
  color: var(--v9fb-text-light);
  border: none;
  border-radius: 8px;
  font-size: 1.4rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--v9fb-transition);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 12px rgba(230, 81, 0, 0.3);
  margin: 0.8rem 0.4rem 0.8rem 0;
}

.v9fb-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(230, 81, 0, 0.5);
  background: linear-gradient(135deg, #d84600 0%, var(--v9fb-primary) 100%);
}

.v9fb-btn.v9fb-secondary {
  background: linear-gradient(135deg, var(--v9fb-accent) 0%, #99d0f0 100%);
  color: var(--v9fb-text-dark);
}

.v9fb-btn.v9fb-secondary:hover {
  box-shadow: 0 6px 20px rgba(186, 225, 255, 0.5);
}

/* Card layout */
.v9fb-card {
  background: rgba(45, 45, 45, 0.6);
  border-radius: 10px;
  padding: 1.5rem;
  margin: 1rem 0;
  border: 1px solid var(--v9fb-border);
  transition: var(--v9fb-transition);
}

.v9fb-card:hover {
  background: rgba(60, 60, 60, 0.8);
  transform: translateX(4px);
  box-shadow: 0 4px 12px var(--v9fb-shadow);
}

/* FAQ accordion */
.v9fb-faq-item {
  margin: 1rem 0;
  border: 1px solid var(--v9fb-border);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(45, 45, 45, 0.5);
}

.v9fb-faq-question {
  padding: 1.5rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--v9fb-transition);
  user-select: none;
  font-weight: 600;
}

.v9fb-faq-question:hover {
  background: rgba(230, 81, 0, 0.1);
  color: var(--v9fb-amber);
}

.v9fb-faq-icon {
  font-size: 1.8rem;
  transition: transform 0.3s ease;
  color: var(--v9fb-primary);
}

.v9fb-faq-item.v9fb-expanded .v9fb-faq-icon {
  transform: rotate(180deg);
}

.v9fb-faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding: 0 1.5rem;
  color: var(--v9fb-text-light);
  line-height: 1.6;
}

.v9fb-faq-item.v9fb-expanded .v9fb-faq-answer {
  padding: 1.5rem;
}

/* Bottom navigation */
.v9fb-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: linear-gradient(180deg, #1a1a2e 0%, var(--v9fb-dark-bg) 100%);
  border-top: 3px solid var(--v9fb-primary);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 -4px 12px var(--v9fb-shadow);
}

.v9fb-bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  min-width: 60px;
  min-height: 60px;
  cursor: pointer;
  transition: var(--v9fb-transition);
  color: var(--v9fb-text-light);
  font-size: 0.9rem;
  font-weight: 500;
  text-align: center;
  padding: 0.5rem;
}

.v9fb-bottom-nav-item:hover,
.v9fb-bottom-nav-item.v9fb-active {
  color: var(--v9fb-amber);
  transform: scale(1.1);
}

.v9fb-bottom-nav-item i {
  font-size: 24px;
  line-height: 1;
}

/* Footer */
.v9fb-footer {
  background: linear-gradient(180deg, #1a1a2e 0%, var(--v9fb-dark-bg) 100%);
  border-top: 2px solid var(--v9fb-primary);
  padding: 2rem 1rem 1rem;
  margin-top: 2rem;
  color: var(--v9fb-text-light);
}

.v9fb-footer-content {
  max-width: 430px;
  margin: 0 auto;
}

.v9fb-footer-section {
  margin-bottom: 2rem;
}

.v9fb-footer-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--v9fb-amber);
  margin-bottom: 1rem;
}

.v9fb-footer-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1rem;
}

.v9fb-footer-link {
  color: var(--v9fb-text-light);
  font-size: 1.3rem;
  padding: 0.5rem;
  border-radius: 4px;
  transition: var(--v9fb-transition);
}

.v9fb-footer-link:hover {
  color: var(--v9fb-amber);
  background: rgba(230, 81, 0, 0.1);
  padding-left: 1rem;
}

.v9fb-partners {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(50px, 1fr));
  gap: 0.8rem;
  margin: 1.5rem 0;
  max-height: 60px;
  overflow: hidden;
}

.v9fb-partner-logo {
  width: 50px;
  height: 50px;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 8px var(--v9fb-shadow);
  transition: var(--v9fb-transition);
}

.v9fb-partner-logo:hover {
  transform: scale(1.05);
}

.v9fb-partner-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.v9fb-footer-bottom {
  border-top: 1px solid var(--v9fb-border);
  padding-top: 1.5rem;
  text-align: center;
  font-size: 1.2rem;
  color: #aaa;
}

/* Text utilities */
.v9fb-text-center {
  text-align: center;
}

.v9fb-text-left {
  text-align: left;
}

.v9fb-text-right {
  text-align: right;
}

.v9fb-mt {
  margin-top: 1rem;
}

.v9fb-mb {
  margin-bottom: 1rem;
}

.v9fb-py {
  padding: 1rem 0;
}

.v9fb-highlight {
  color: var(--v9fb-amber);
  font-weight: 600;
}

/* Responsive design */
@media (max-width: 768px) {
  html {
    font-size: 60%;
  }

  .v9fb-header-buttons {
    display: none;
  }

  .v9fb-menu-toggle {
    display: block;
    order: 3;
  }

  .v9fb-logo {
    flex: 1;
  }

  .v9fb-bottom-nav {
    display: flex;
  }

  main {
    padding-bottom: 90px;
  }

  h1 {
    font-size: 2.4rem;
  }

  h2 {
    font-size: 1.9rem;
  }

  .v9fb-section {
    padding: 1.5rem;
    margin: 1.5rem 0;
  }

  .v9fb-games-grid {
    grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
    gap: 0.8rem;
  }

  .v9fb-game-icon {
    width: 70px;
    height: 70px;
  }

  .v9fb-game-name {
    font-size: 1rem;
  }

  .v9fb-carousel {
    aspect-ratio: 2 / 1;
    margin: 1.5rem 0;
  }
}

@media (max-width: 480px) {
  .v9fb-container {
    padding: 0 0.8rem;
  }

  .v9fb-header {
    height: 65px;
    padding: 0 0.8rem;
  }

  .v9fb-logo-text {
    font-size: 1.6rem;
  }

  .v9fb-header-btn {
    padding: 0.5rem 0.8rem;
    font-size: 1.1rem;
  }

  .v9fb-games-grid {
    grid-template-columns: repeat(auto-fill, minmax(65px, 1fr));
    gap: 0.6rem;
  }

  .v9fb-game-icon {
    width: 65px;
    height: 65px;
  }

  .v9fb-btn {
    padding: 0.8rem 1.5rem;
    font-size: 1.2rem;
    margin: 0.6rem 0.3rem 0.6rem 0;
  }

  .v9fb-footer-links {
    grid-template-columns: repeat(2, 1fr);
  }

  .v9fb-faq-question {
    padding: 1.2rem;
  }
}

/* Animation keyframes */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.v9fb-fade-in {
  animation: fadeIn 0.5s ease;
}

.v9fb-slide-in {
  animation: slideInLeft 0.5s ease;
}

/* Print styles */
@media print {
  .v9fb-header,
  .v9fb-bottom-nav,
  .v9fb-menu-toggle {
    display: none;
  }

  main {
    padding: 0;
  }

  body {
    background: white;
    color: black;
  }
}
