/* bdjobs style.css - All classes use v501- prefix */
/* Color palette: #8B0000 (accent) | #2D2D2D (bg) | #ADB5BD (text) */

:root {
  --v501-primary: #8B0000;
  --v501-bg: #2D2D2D;
  --v501-bg-light: #3a3a3a;
  --v501-bg-card: #333333;
  --v501-text: #ADB5BD;
  --v501-text-light: #d4d8dc;
  --v501-text-white: #ffffff;
  --v501-accent: #8B0000;
  --v501-accent-hover: #a50000;
  --v501-border: #444444;
  --v501-gold: #c9a84c;
  --v501-radius: 8px;
  --v501-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

/* Reset and base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 62.5%; scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--v501-bg);
  color: var(--v501-text);
  line-height: 1.5rem;
  font-size: 1.4rem;
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--v501-accent); text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

/* Container */
.v501-container { width: 100%; max-width: 430px; margin: 0 auto; padding: 0 1.2rem; }

/* Header */
.v501-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: linear-gradient(135deg, #1a0000 0%, #2D2D2D 100%);
  border-bottom: 2px solid var(--v501-primary);
  max-width: 430px; margin: 0 auto;
  padding: 0 1rem; height: 52px;
  display: flex; align-items: center; justify-content: space-between;
}
.v501-header-left { display: flex; align-items: center; gap: 0.6rem; }
.v501-logo { width: 28px; height: 28px; border-radius: 4px; }
.v501-site-name { color: var(--v501-text-white); font-size: 1.6rem; font-weight: 700; }
.v501-header-right { display: flex; align-items: center; gap: 0.5rem; }
.v501-btn-reg, .v501-btn-login {
  padding: 0.5rem 1rem; border-radius: 20px; font-size: 1.2rem;
  font-weight: 600; cursor: pointer; border: none;
  transition: transform 0.15s, box-shadow 0.15s;
  min-height: 32px; min-width: 60px;
}
.v501-btn-reg {
  background: linear-gradient(135deg, var(--v501-primary), #cc0000);
  color: #fff;
}
.v501-btn-login {
  background: transparent; color: var(--v501-text);
  border: 1px solid var(--v501-border);
}
.v501-btn-reg:hover, .v501-btn-login:hover { transform: scale(1.05); }
.v501-menu-toggle {
  background: none; border: none; color: var(--v501-text);
  font-size: 2rem; cursor: pointer; padding: 0.4rem;
}

/* Mobile menu */
.v501-mobile-menu {
  position: fixed; top: 0; left: 0; bottom: 0; width: 75%;
  max-width: 300px; z-index: 9999;
  background: #1a1a1a; transform: translateX(-100%);
  transition: transform 0.3s ease; padding: 2rem 1.5rem;
  overflow-y: auto;
}
.v501-mobile-menu.v501-menu-open { transform: translateX(0); }
.v501-menu-header { display: flex; align-items: center; gap: 0.8rem; margin-bottom: 2rem; padding-bottom: 1rem; border-bottom: 1px solid var(--v501-border); }
.v501-menu-header img { width: 32px; height: 32px; border-radius: 4px; }
.v501-menu-header span { color: var(--v501-text-white); font-size: 1.8rem; font-weight: 700; }
.v501-menu-close { position: absolute; top: 1rem; right: 1rem; background: none; border: none; color: var(--v501-text); font-size: 2rem; cursor: pointer; }
.v501-menu-list { list-style: none; }
.v501-menu-list li { border-bottom: 1px solid var(--v501-border); }
.v501-menu-list a {
  display: block; padding: 1.2rem 0.5rem; color: var(--v501-text-light);
  font-size: 1.4rem; transition: color 0.2s, padding-left 0.2s;
}
.v501-menu-list a:hover { color: var(--v501-primary); padding-left: 1rem; }
.v501-overlay {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.6); z-index: 9998; display: none;
}

/* Carousel */
.v501-carousel { position: relative; width: 100%; aspect-ratio: 16/7; overflow: hidden; margin-top: 52px; }
.v501-slide {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  opacity: 0; transition: opacity 0.6s ease; cursor: pointer;
}
.v501-slide img { width: 100%; height: 100%; object-fit: cover; }
.v501-slide:first-child { opacity: 1; }

/* Section titles */
.v501-section-title {
  font-size: 1.8rem; font-weight: 700; color: var(--v501-text-white);
  margin: 2rem 0 1rem; padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--v501-primary);
  display: flex; align-items: center; gap: 0.6rem;
}
.v501-section-title i, .v501-section-title .material-icons { color: var(--v501-primary); font-size: 2rem; }

/* Game grid */
.v501-game-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem; padding: 0.5rem 0;
}
.v501-game-item { text-align: center; cursor: pointer; transition: transform 0.2s; }
.v501-game-item:hover { transform: scale(1.05); }
.v501-game-item img {
  width: 100%; aspect-ratio: 1; border-radius: var(--v501-radius);
  border: 1px solid var(--v501-border); object-fit: cover;
}
.v501-game-name {
  font-size: 1.1rem; color: var(--v501-text); margin-top: 0.3rem;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* Content sections */
.v501-content-block {
  background: var(--v501-bg-card); border-radius: var(--v501-radius);
  padding: 1.5rem; margin: 1rem 0; border: 1px solid var(--v501-border);
}
.v501-content-block h2 { font-size: 1.6rem; color: var(--v501-text-white); margin-bottom: 0.8rem; }
.v501-content-block h3 { font-size: 1.4rem; color: var(--v501-accent); margin: 0.8rem 0 0.4rem; }
.v501-content-block p { font-size: 1.3rem; line-height: 1.6; color: var(--v501-text); margin-bottom: 0.6rem; }
.v501-content-block ul { padding-left: 1.5rem; margin: 0.5rem 0; }
.v501-content-block li { font-size: 1.3rem; line-height: 1.6; color: var(--v501-text); margin-bottom: 0.3rem; }

/* Promo link button */
.v501-promo-btn {
  display: inline-block; padding: 0.8rem 2rem; border-radius: 24px;
  background: linear-gradient(135deg, var(--v501-primary), #cc0000);
  color: #fff; font-size: 1.4rem; font-weight: 600; cursor: pointer;
  border: none; text-align: center; transition: transform 0.15s, box-shadow 0.15s;
  min-height: 44px;
}
.v501-promo-btn:hover { transform: scale(1.05); box-shadow: 0 4px 12px rgba(139,0,0,0.4); }
.v501-promo-link { color: var(--v501-accent); font-weight: 600; cursor: pointer; text-decoration: underline; }

/* Footer */
.v501-footer {
  background: #1a1a1a; padding: 2rem 1.2rem 1rem; margin-top: 2rem;
  border-top: 2px solid var(--v501-primary);
}
.v501-footer-brand { color: var(--v501-text); font-size: 1.2rem; line-height: 1.6; margin-bottom: 1.2rem; }
.v501-footer-links { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 1.2rem; }
.v501-footer-links a {
  display: inline-block; padding: 0.4rem 1rem; border-radius: 16px;
  background: var(--v501-bg-light); color: var(--v501-text-light);
  font-size: 1.1rem; border: 1px solid var(--v501-border);
  transition: background 0.2s;
}
.v501-footer-links a:hover { background: var(--v501-primary); color: #fff; }
.v501-copyright { text-align: center; color: #666; font-size: 1.1rem; padding-top: 1rem; border-top: 1px solid var(--v501-border); }

/* Bottom navigation */
.v501-bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000;
  background: linear-gradient(180deg, #1a0000 0%, #222 100%);
  border-top: 1px solid var(--v501-primary);
  display: flex; justify-content: space-around; align-items: center;
  height: 60px; max-width: 430px; margin: 0 auto;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.5);
}
.v501-nav-btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-width: 60px; min-height: 52px; background: none; border: none;
  color: var(--v501-text); cursor: pointer; transition: color 0.2s, transform 0.15s;
  padding: 0.3rem;
}
.v501-nav-btn:hover, .v501-nav-btn.v501-nav-active { color: var(--v501-primary); transform: scale(1.1); }
.v501-nav-btn i, .v501-nav-btn .material-icons { font-size: 22px; margin-bottom: 0.2rem; }
.v501-nav-btn span { font-size: 1rem; }

/* Utility */
.v501-text-center { text-align: center; }
.v501-mt-1 { margin-top: 1rem; }
.v501-mt-2 { margin-top: 2rem; }
.v501-mb-1 { margin-top: 1rem; }
.v501-hidden { display: none; }

/* Main padding for fixed header + bottom nav */
main { padding-top: 52px; }
@media (max-width: 768px) {
  main { padding-bottom: 72px; }
}
/* Hide bottom nav on desktop */
@media (min-width: 769px) {
  .v501-bottom-nav { display: none; }
}

/* Winner ticker */
.v501-winner-ticker {
  background: var(--v501-bg-card); border-radius: var(--v501-radius);
  padding: 0.8rem 1rem; margin: 0.8rem 0;
  border: 1px solid var(--v501-border); overflow: hidden;
}
.v501-winner-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.4rem 0; font-size: 1.2rem; color: var(--v501-text);
  border-bottom: 1px solid #3a3a3a;
}
.v501-winner-item:last-child { border-bottom: none; }
.v501-winner-amount { color: var(--v501-gold); font-weight: 600; }

/* Payment icons row */
.v501-payment-row { display: flex; gap: 1rem; align-items: center; justify-content: center; flex-wrap: wrap; padding: 1rem 0; }
.v501-payment-item { background: var(--v501-bg-light); border-radius: var(--v501-radius); padding: 0.6rem 1rem; font-size: 1.2rem; color: var(--v501-text-light); border: 1px solid var(--v501-border); }

/* FAQ accordion */
.v501-faq-item { border-bottom: 1px solid var(--v501-border); padding: 1rem 0; }
.v501-faq-q { font-size: 1.4rem; color: var(--v501-text-white); font-weight: 600; cursor: pointer; }
.v501-faq-a { font-size: 1.2rem; color: var(--v501-text); margin-top: 0.5rem; line-height: 1.6; }

/* Testimonial card */
.v501-testimonial {
  background: var(--v501-bg-light); border-radius: var(--v501-radius);
  padding: 1rem 1.2rem; margin: 0.6rem 0; border-left: 3px solid var(--v501-primary);
}
.v501-testimonial p { font-size: 1.2rem; font-style: italic; color: var(--v501-text); margin-bottom: 0.4rem; }
.v501-testimonial cite { font-size: 1.1rem; color: var(--v501-gold); font-style: normal; }

/* CTA banner */
.v501-cta-banner {
  background: linear-gradient(135deg, var(--v501-primary) 0%, #4a0000 100%);
  border-radius: var(--v501-radius); padding: 1.5rem; text-align: center;
  margin: 1.5rem 0;
}
.v501-cta-banner h3 { color: #fff; font-size: 1.6rem; margin-bottom: 0.6rem; }
.v501-cta-banner p { color: #ddd; font-size: 1.2rem; margin-bottom: 1rem; }

/* App download */
.v501-app-box {
  display: flex; align-items: center; gap: 1rem;
  background: var(--v501-bg-card); border-radius: var(--v501-radius);
  padding: 1rem; margin: 1rem 0; border: 1px solid var(--v501-border);
}
.v501-app-icon { font-size: 3rem; color: var(--v501-primary); }
.v501-app-info h4 { color: var(--v501-text-white); font-size: 1.3rem; }
.v501-app-info p { color: var(--v501-text); font-size: 1.1rem; }
