/**
 * TA77 Casino - Main Stylesheet
 * All classes use prefix "v513-" for namespace isolation
 * Color palette: #AFEEEE | #000080 | #6495ED | #0D1117
 * Mobile-first responsive design, max-width 430px
 */

/* === CSS Variables === */
:root {
  --v513-primary: #6495ED;
  --v513-secondary: #AFEEEE;
  --v513-bg-dark: #0D1117;
  --v513-bg-navy: #000080;
  --v513-text-light: #AFEEEE;
  --v513-text-white: #FFFFFF;
  --v513-accent: #6495ED;
  --v513-accent-glow: rgba(100, 149, 237, 0.3);
  --v513-card-bg: #161B22;
  --v513-border: rgba(175, 238, 238, 0.15);
  --v513-gradient-start: #000080;
  --v513-gradient-end: #0D1117;
  --v513-radius: 12px;
  --v513-radius-sm: 8px;
  --v513-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  font-size: 62.5%;
}

/* === Reset & Base === */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, sans-serif;
  background: var(--v513-bg-dark);
  color: var(--v513-text-light);
  line-height: 1.5rem;
  font-size: 1.6rem;
  max-width: 430px;
  margin: 0 auto;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--v513-accent);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--v513-secondary);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* === Header === */
.v513-header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  background: linear-gradient(135deg, var(--v513-bg-navy), #0a0a3e);
  border-bottom: 1px solid var(--v513-border);
  z-index: 1000;
  padding: 0 1.2rem;
  backdrop-filter: blur(12px);
}

.v513-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}

.v513-logo-area {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.v513-logo-area img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
}

.v513-logo-area span {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--v513-text-white);
  letter-spacing: 0.5px;
}

.v513-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.v513-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  border: none;
  border-radius: var(--v513-radius-sm);
  font-size: 1.3rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  min-height: 36px;
}

.v513-btn-register {
  background: linear-gradient(135deg, #6495ED, #4a7bd4);
  color: var(--v513-text-white);
  box-shadow: 0 2px 10px rgba(100, 149, 237, 0.4);
}

.v513-btn-register:hover {
  background: linear-gradient(135deg, #7ba5f0, #5a8bde);
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(100, 149, 237, 0.6);
}

.v513-btn-login {
  background: transparent;
  color: var(--v513-secondary);
  border: 1px solid var(--v513-secondary);
}

.v513-btn-login:hover {
  background: rgba(175, 238, 238, 0.1);
}

.v513-menu-toggle {
  background: none;
  border: none;
  color: var(--v513-text-light);
  font-size: 2.4rem;
  cursor: pointer;
  padding: 4px 8px;
  line-height: 1;
}

/* === Mobile Menu === */
.v513-mobile-menu {
  position: fixed;
  top: 56px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  background: rgba(13, 17, 23, 0.98);
  backdrop-filter: blur(16px);
  z-index: 9999;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
  border-bottom: 1px solid var(--v513-border);
}

.v513-menu-active {
  max-height: 500px;
}

.v513-mobile-menu ul {
  list-style: none;
  padding: 1rem 0;
}

.v513-mobile-menu li a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 1.2rem 2rem;
  color: var(--v513-text-light);
  font-size: 1.5rem;
  transition: background 0.2s, color 0.2s;
}

.v513-mobile-menu li a:hover {
  background: rgba(100, 149, 237, 0.1);
  color: var(--v513-accent);
}

.v513-mobile-menu li a i,
.v513-mobile-menu li a span.material-symbols-outlined {
  font-size: 20px;
  width: 24px;
  text-align: center;
}

/* === Carousel === */
.v513-carousel {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  margin-top: 56px;
}

.v513-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.6s ease;
  cursor: pointer;
}

.v513-slide-active {
  opacity: 1;
}

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

/* === Main Content === */
.v513-container {
  padding: 0 1.2rem;
  width: 100%;
}

.v513-section {
  padding: 2rem 0;
}

.v513-section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--v513-text-white);
  margin-bottom: 1.5rem;
  padding-bottom: 0.8rem;
  border-bottom: 2px solid var(--v513-accent);
  display: flex;
  align-items: center;
  gap: 8px;
}

.v513-section-title i {
  color: var(--v513-accent);
}

/* === Game Grid === */
.v513-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.v513-game-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: transform 0.2s;
  border-radius: var(--v513-radius-sm);
  padding: 6px;
}

.v513-game-item:hover {
  transform: scale(1.05);
  background: rgba(100, 149, 237, 0.08);
}

.v513-game-item img {
  width: 72px;
  height: 72px;
  border-radius: var(--v513-radius-sm);
  object-fit: cover;
  border: 2px solid var(--v513-border);
  transition: border-color 0.2s;
}

.v513-game-item:hover img {
  border-color: var(--v513-accent);
}

.v513-game-item span {
  font-size: 1.1rem;
  color: var(--v513-text-light);
  text-align: center;
  margin-top: 4px;
  line-height: 1.3rem;
  max-width: 80px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* === Category Header === */
.v513-cat-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 2rem 0 1rem;
  padding-left: 0.5rem;
}

.v513-cat-header h3 {
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--v513-secondary);
}

.v513-cat-header i {
  font-size: 2rem;
  color: var(--v513-accent);
}

/* === Content Cards === */
.v513-card {
  background: var(--v513-card-bg);
  border-radius: var(--v513-radius);
  padding: 1.5rem;
  margin-bottom: 1.2rem;
  border: 1px solid var(--v513-border);
  transition: border-color 0.2s;
}

.v513-card:hover {
  border-color: rgba(100, 149, 237, 0.3);
}

.v513-card h2 {
  font-size: 1.8rem;
  color: var(--v513-text-white);
  margin-bottom: 1rem;
}

.v513-card h3 {
  font-size: 1.6rem;
  color: var(--v513-secondary);
  margin-bottom: 0.8rem;
}

.v513-card p {
  color: rgba(175, 238, 238, 0.85);
  margin-bottom: 1rem;
  line-height: 1.6;
}

/* === Promo Buttons === */
.v513-promo-btn {
  display: inline-block;
  background: linear-gradient(135deg, #000080, #6495ED);
  color: var(--v513-text-white);
  padding: 12px 28px;
  border-radius: 50px;
  font-size: 1.5rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 4px 15px rgba(100, 149, 237, 0.4);
}

.v513-promo-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(100, 149, 237, 0.6);
}

/* === Footer === */
.v513-footer {
  background: linear-gradient(180deg, var(--v513-bg-dark), #000010);
  border-top: 1px solid var(--v513-border);
  padding: 2.5rem 1.2rem 8rem;
  margin-top: 2rem;
}

.v513-footer-brand {
  text-align: center;
  margin-bottom: 2rem;
}

.v513-footer-brand p {
  color: rgba(175, 238, 238, 0.7);
  font-size: 1.3rem;
  line-height: 1.5;
}

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

.v513-footer-links a {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(100, 149, 237, 0.1);
  border: 1px solid var(--v513-border);
  border-radius: 20px;
  color: var(--v513-text-light);
  font-size: 1.2rem;
  transition: all 0.2s;
}

.v513-footer-links a:hover {
  background: rgba(100, 149, 237, 0.2);
  color: var(--v513-accent);
  border-color: var(--v513-accent);
}

.v513-footer-partners {
  text-align: center;
  margin-bottom: 2rem;
}

.v513-footer-partners img {
  display: inline-block;
  height: 28px;
  margin: 4px 6px;
  opacity: 0.7;
  filter: grayscale(0.5);
}

.v513-copyright {
  text-align: center;
  color: rgba(175, 238, 238, 0.4);
  font-size: 1.2rem;
  border-top: 1px solid var(--v513-border);
  padding-top: 1.5rem;
}

/* === Bottom Navigation === */
.v513-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: 60px;
  background: linear-gradient(135deg, #0a0a3e, var(--v513-bg-navy));
  border-top: 1px solid var(--v513-border);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
}

.v513-bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 60px;
  cursor: pointer;
  transition: all 0.25s ease;
  color: rgba(175, 238, 238, 0.6);
  position: relative;
  border: none;
  background: none;
}

.v513-bottom-nav-item:hover,
.v513-bottom-nav-item.v513-nav-active {
  color: var(--v513-accent);
}

.v513-bottom-nav-item.v513-nav-active::after {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 3px;
  background: var(--v513-accent);
  border-radius: 0 0 4px 4px;
}

.v513-bottom-nav-item i,
.v513-bottom-nav-item span.material-symbols-outlined,
.v513-bottom-nav-item ion-icon {
  font-size: 22px;
  margin-bottom: 2px;
}

.v513-bottom-nav-item span.v513-nav-label {
  font-size: 1rem;
  letter-spacing: 0.3px;
}

/* === Utility Classes === */
.v513-text-center { text-align: center; }
.v513-text-accent { color: var(--v513-accent); }
.v513-text-secondary { color: var(--v513-secondary); }
.v513-mt-1 { margin-top: 1rem; }
.v513-mb-1 { margin-bottom: 1rem; }
.v513-mt-2 { margin-top: 2rem; }
.v513-mb-2 { margin-bottom: 2rem; }

.v513-promo-text {
  color: var(--v513-accent);
  font-weight: 600;
  cursor: pointer;
  transition: color 0.2s;
}

.v513-promo-text:hover {
  color: var(--v513-secondary);
  text-decoration: underline;
}

/* === Responsive === */
@media (max-width: 768px) {
  main {
    padding-bottom: 80px;
  }
}

@media (min-width: 769px) {
  .v513-bottom-nav {
    display: none;
  }
  body {
    max-width: 430px;
  }
}

/* === FAQ Accordion === */
.v513-faq-item {
  border-bottom: 1px solid var(--v513-border);
  padding: 1.2rem 0;
}

.v513-faq-item summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--v513-secondary);
  font-size: 1.4rem;
  padding: 0.5rem 0;
}

.v513-faq-item p {
  padding: 0.8rem 0;
  color: rgba(175, 238, 238, 0.8);
  font-size: 1.3rem;
}

/* === Winners Marquee === */
.v513-winners-bar {
  background: rgba(100, 149, 237, 0.08);
  border: 1px solid var(--v513-border);
  border-radius: var(--v513-radius-sm);
  padding: 1rem;
  overflow: hidden;
}

.v513-winner-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  font-size: 1.3rem;
}

.v513-winner-name {
  color: var(--v513-secondary);
  font-weight: 600;
}

.v513-winner-amount {
  color: var(--v513-accent);
  font-weight: 700;
}

/* === Payment Icons === */
.v513-payment-row {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 1rem 0;
}

.v513-payment-icon {
  width: 48px;
  height: 32px;
  background: var(--v513-card-bg);
  border-radius: 6px;
  border: 1px solid var(--v513-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--v513-text-light);
}

/* === Review Stars === */
.v513-stars {
  color: #FFD700;
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

/* === Testimonial === */
.v513-testimonial {
  background: var(--v513-card-bg);
  border-radius: var(--v513-radius);
  padding: 1.2rem;
  margin-bottom: 1rem;
  border-left: 3px solid var(--v513-accent);
}

.v513-testimonial p {
  font-style: italic;
  color: rgba(175, 238, 238, 0.8);
  font-size: 1.3rem;
}

.v513-testimonial cite {
  display: block;
  margin-top: 0.5rem;
  color: var(--v513-accent);
  font-size: 1.2rem;
}

/* === Achievement Badge === */
.v513-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 1.1rem;
  font-weight: 600;
}

.v513-badge-gold {
  background: rgba(255, 215, 0, 0.15);
  color: #FFD700;
  border: 1px solid rgba(255, 215, 0, 0.3);
}

.v513-badge-blue {
  background: rgba(100, 149, 237, 0.15);
  color: var(--v513-accent);
  border: 1px solid rgba(100, 149, 237, 0.3);
}
