/* Phil168 Bond Gaming Platform CSS
   Mobile-first responsive design for casino gaming experience
   Color palette: #CD5C5C (coral), #1A1A1A (dark), #FF8A80 (light coral), #FFDFBA (peach), #FFB6C1 (light pink)
*/

/* CSS Variables and Base Setup */
:root {
  --vbd6-primary: #CD5C5C;
  --vbd6-dark: #1A1A1A;
  --vbd6-light-coral: #FF8A80;
  --vbd6-peach: #FFDFBA;
  --vbd6-light-pink: #FFB6C1;
  --vbd6-white: #FFFFFF;
  --vbd6-shadow: 0 2px 10px rgba(0,0,0,0.1);
  --vbd6-shadow-lg: 0 4px 20px rgba(0,0,0,0.15);
  --vbd6-border-radius: 8px;
  --vbd6-transition: all 0.3s ease;
  --vbd6-gradient-primary: linear-gradient(135deg, var(--vbd6-primary), var(--vbd6-light-coral));
  --vbd6-gradient-secondary: linear-gradient(135deg, var(--vbd6-peach), var(--vbd6-light-pink));
}

/* 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, sans-serif;
  font-size: 1.4rem;
  line-height: 1.5;
  color: var(--vbd6-dark);
  background-color: #F8F9FA;
  max-width: 430px;
  margin: 0 auto;
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--vbd6-dark);
}

h1 { font-size: 2.4rem; }
h2 { font-size: 2.0rem; }
h3 { font-size: 1.8rem; }
h4 { font-size: 1.6rem; }

p {
  margin-bottom: 1rem;
  line-height: 1.6;
}

a {
  color: var(--vbd6-primary);
  text-decoration: none;
  transition: var(--vbd6-transition);
}

a:hover {
  color: var(--vbd6-light-coral);
  text-decoration: underline;
}

/* Layout Components */
.vbd6-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-bottom: 64px;
}

.vbd6-container {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.vbd6-main {
  flex: 1;
  padding-top: 70px;
}

.vbd6-section {
  padding: 2rem 0;
}

.vbd6-card {
  background: var(--vbd6-white);
  border-radius: var(--vbd6-border-radius);
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: var(--vbd6-shadow);
  border: 1px solid rgba(205, 92, 92, 0.1);
}

.vbd6-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

/* Header and Navigation */
.vbd6-header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  background: var(--vbd6-white);
  box-shadow: var(--vbd6-shadow);
  z-index: 1000;
  border-bottom: 2px solid var(--vbd6-primary);
}

.vbd6-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  height: 60px;
}

.vbd6-logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--vbd6-primary);
  text-decoration: none;
}

.vbd6-logo img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
}

.vbd6-nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.vbd6-hamburger {
  display: flex;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  gap: 0.3rem;
}

.vbd6-hamburger span {
  width: 20px;
  height: 2px;
  background: var(--vbd6-primary);
  transition: var(--vbd6-transition);
}

.vbd6-hamburger-active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.vbd6-hamburger-active span:nth-child(2) {
  opacity: 0;
}

.vbd6-hamburger-active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* Mobile Menu */
.vbd6-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: var(--vbd6-transition);
}

.vbd6-menu-active {
  opacity: 1;
  visibility: visible;
}

.vbd6-mobile-menu {
  position: fixed;
  top: 60px;
  left: 50%;
  transform: translateX(-50%) translateY(-100%);
  width: 100%;
  max-width: 430px;
  background: var(--vbd6-white);
  z-index: 999;
  box-shadow: var(--vbd6-shadow-lg);
  transition: var(--vbd6-transition);
  max-height: calc(100vh - 60px);
  overflow-y: auto;
}

.vbd6-menu-show {
  transform: translateX(-50%) translateY(0);
}

.vbd6-menu-list {
  list-style: none;
  padding: 0;
}

.vbd6-menu-list li {
  border-bottom: 1px solid rgba(205, 92, 92, 0.1);
}

.vbd6-nav-link {
  display: block;
  padding: 1.5rem;
  color: var(--vbd6-dark);
  font-weight: 500;
  transition: var(--vbd6-transition);
}

.vbd6-nav-link:hover,
.vbd6-nav-link.vbd6-active {
  background: linear-gradient(90deg, var(--vbd6-primary), var(--vbd6-light-coral));
  color: var(--vbd6-white);
  text-decoration: none;
}

.vbd6-nav-link i {
  margin-right: 1rem;
  width: 20px;
}

.vbd6-menu-actions {
  padding: 1.5rem;
  border-top: 1px solid rgba(205, 92, 92, 0.1);
}

/* Buttons */
.vbd6-btn, .vbd6-promo-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  font-size: 1.4rem;
  font-weight: 600;
  border: none;
  border-radius: var(--vbd6-border-radius);
  cursor: pointer;
  transition: var(--vbd6-transition);
  text-decoration: none;
  text-align: center;
  min-height: 44px;
  position: relative;
  overflow: hidden;
}

.vbd6-promo-btn {
  background: var(--vbd6-gradient-primary);
  color: var(--vbd6-white);
  box-shadow: var(--vbd6-shadow);
}

.vbd6-promo-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--vbd6-shadow-lg);
  color: var(--vbd6-white);
  text-decoration: none;
}

.vbd6-btn {
  background: var(--vbd6-white);
  color: var(--vbd6-primary);
  border: 2px solid var(--vbd6-primary);
}

.vbd6-btn:hover {
  background: var(--vbd6-primary);
  color: var(--vbd6-white);
  text-decoration: none;
}

.vbd6-btn-sm {
  padding: 0.8rem 1.5rem;
  font-size: 1.2rem;
}

.vbd6-btn-outline {
  background: transparent;
  border: 2px solid var(--vbd6-primary);
  color: var(--vbd6-primary);
}

/* Carousel/Slider */
.vbd6-carousel {
  position: relative;
  width: 100%;
  height: 200px;
  margin-bottom: 2rem;
  border-radius: var(--vbd6-border-radius);
  overflow: hidden;
  box-shadow: var(--vbd6-shadow);
}

.vbd6-carousel-slide {
  position: absolute;
  width: 100%;
  height: 100%;
  display: none;
}

.vbd6-carousel-slide:first-child {
  display: block;
}

.vbd6-carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vbd6-carousel-indicators {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
}

.vbd6-carousel-indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: var(--vbd6-transition);
}

.vbd6-carousel-indicator.vbd6-active {
  background: var(--vbd6-white);
  transform: scale(1.2);
}

/* Game Grid */
.vbd6-games-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin: 2rem 0;
}

.vbd6-game-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem;
  background: var(--vbd6-white);
  border-radius: var(--vbd6-border-radius);
  box-shadow: var(--vbd6-shadow);
  transition: var(--vbd6-transition);
  cursor: pointer;
  border: 1px solid rgba(205, 92, 92, 0.1);
}

.vbd6-game-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--vbd6-shadow-lg);
  border-color: var(--vbd6-primary);
}

.vbd6-game-item img {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  margin-bottom: 0.5rem;
}

.vbd6-game-name {
  font-size: 1.1rem;
  font-weight: 500;
  text-align: center;
  color: var(--vbd6-dark);
  line-height: 1.2;
}

.vbd6-category-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 2rem 0 1rem 0;
  padding: 0 0.5rem;
}

.vbd6-category-icon {
  width: 32px;
  height: 32px;
  background: var(--vbd6-gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--vbd6-white);
  font-size: 1.6rem;
}

.vbd6-category-header h3 {
  color: var(--vbd6-primary);
  font-size: 1.8rem;
  margin: 0;
}

/* Bottom Navigation */
.vbd6-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  background: var(--vbd6-white);
  border-top: 2px solid var(--vbd6-primary);
  box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
  z-index: 100;
}

.vbd6-bottom-nav-container {
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 0.8rem 0;
  height: 64px;
}

.vbd6-bottom-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  color: #666;
  font-size: 1.0rem;
  font-weight: 500;
  transition: var(--vbd6-transition);
  padding: 0.5rem;
  border-radius: 6px;
  min-width: 60px;
  text-decoration: none;
}

.vbd6-bottom-nav a:hover,
.vbd6-bottom-nav a.vbd6-active {
  color: var(--vbd6-primary);
  background: rgba(205, 92, 92, 0.1);
  text-decoration: none;
}

.vbd6-bottom-nav i {
  font-size: 2.0rem;
}

.vbd6-bottom-nav span {
  font-size: 1.0rem;
  line-height: 1;
}

/* Footer */
.vbd6-footer {
  background: var(--vbd6-dark);
  color: var(--vbd6-white);
  padding: 3rem 0 8rem 0;
  margin-top: 3rem;
}

.vbd6-footer-content {
  text-align: center;
}

.vbd6-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2rem;
}

.vbd6-footer-link {
  color: var(--vbd6-peach);
  font-size: 1.3rem;
  font-weight: 500;
}

.vbd6-footer-link:hover {
  color: var(--vbd6-light-coral);
}

.vbd6-partners {
  margin: 2rem 0;
}

.vbd6-partners h4 {
  color: var(--vbd6-white);
  margin-bottom: 1rem;
}

.vbd6-partners-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  justify-items: center;
}

.vbd6-partner-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
  opacity: 0.7;
  transition: var(--vbd6-transition);
}

.vbd6-partner-logo:hover {
  opacity: 1;
}

.vbd6-copyright {
  font-size: 1.2rem;
  color: #999;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid #333;
}

/* Loader */
.vbd6-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--vbd6-white);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.vbd6-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(205, 92, 92, 0.1);
  border-left: 4px solid var(--vbd6-primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* Utility Classes */
.vbd6-text-center { text-align: center; }
.vbd6-text-left { text-align: left; }
.vbd6-text-right { text-align: right; }

.vbd6-mb-1 { margin-bottom: 1rem; }
.vbd6-mb-2 { margin-bottom: 2rem; }
.vbd6-mb-3 { margin-bottom: 3rem; }

.vbd6-mt-1 { margin-top: 1rem; }
.vbd6-mt-2 { margin-top: 2rem; }
.vbd6-mt-3 { margin-top: 3rem; }

.vbd6-flex {
  display: flex;
  gap: 1rem;
}

.vbd6-flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.vbd6-flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Animations */
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes ripple {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.vbd6-fade-in {
  animation: fadeInUp 0.6s ease-out;
}

/* Responsive Design */
@media (max-width: 430px) {
  .vbd6-games-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .vbd6-partners-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .vbd6-footer-links {
    gap: 1rem;
  }
}

@media (max-width: 320px) {
  html {
    font-size: 58%;
  }
  
  .vbd6-games-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .vbd6-carousel {
    height: 160px;
  }
}