/* style/slot-center.css */

/* Variables */
:root {
  --primary: #FFD700;
  --secondary: #C41E3A;
  --dark: #0A0E17;
  --light: #f8f9fa;
  --gray: #6c757d;
  --success: #28a745;
  
  --font-main: 'Roboto', 'Arial', sans-serif;
  --font-title: 'Montserrat', 'Arial', sans-serif;
}

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

body {
  font-family: var(--font-main);
  color: var(--light);
  background-color: var(--dark);
  line-height: 1.6;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 30px;
  text-align: center;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), #ffc107);
  color: var(--dark);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
}

.btn-secondary {
  background-color: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-secondary:hover {
  background-color: var(--primary);
  color: var(--dark);
}

.btn-play {
  background-color: var(--secondary);
  color: white;
  width: 100%;
  margin-top: 15px;
}

.btn-play:hover {
  background-color: #a3162a;
}

.btn-jackpot {
  background: linear-gradient(135deg, var(--secondary), #e63757);
  color: white;
  width: 100%;
  margin-top: 15px;
}

.btn-jackpot:hover {
  transform: scale(1.05);
}

.section {
  padding: 80px 0;
}

.section-title {
  font-family: var(--font-title);
  text-align: center;
  margin-bottom: 50px;
  font-size: 2.5rem;
}

.section-title span {
  display: block;
  font-size: 1.2rem;
  color: var(--primary);
  margin-top: 10px;
}

/* Header */
.header {
  background-color: rgba(10, 14, 23, 0.9);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  padding: 15px 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: var(--font-title);
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
}

.navbar ul {
  display: flex;
  list-style: none;
}

.navbar ul li {
  margin: 0 15px;
}

.navbar ul li a {
  color: var(--light);
  text-decoration: none;
  font-weight: 500;
  padding: 5px 0;
  position: relative;
}

.navbar ul li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary);
  transition: width 0.3s ease;
}

.navbar ul li a:hover::after,
.navbar ul li.active a::after {
  width: 100%;
}

.navbar ul li.active a {
  color: var(--primary);
}

/* Hero Section */
.hero {
  background: linear-gradient(rgba(10, 14, 23, 0.8), rgba(10, 14, 23, 0.9)), 
              url('https://via.placeholder.com/1920x800?text=Slot+Center') center/cover no-repeat;
  padding: 180px 0 100px;
  margin-top: 70px;
}

.hero .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hero-content {
  max-width: 600px;
}

.hero-content h1 {
  font-size: 3rem;
  margin-bottom: 20px;
  line-height: 1.2;
  font-family: var(--font-title);
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 30px;
}

.hero-buttons {
  display: flex;
  gap: 20px;
}

.hero-animation {
  width: 300px;
}

.slot-machine {
  position: relative;
  width: 250px;
  height: 200px;
  background: rgba(196, 30, 58, 0.3);
  border-radius: 15px;
  border: 3px solid var(--primary);
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 20px;
  overflow: hidden;
}

.reel {
  width: 60px;
  height: 60px;
  background: rgba(255, 215, 0, 0.1);
  border: 2px solid var(--primary);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 2.5rem;
  animation: spin 2s infinite ease-in-out;
}

.reel:nth-child(2) {
  animation-delay: 0.1s;
}

.reel:nth-child(3) {
  animation-delay: 0.2s;
}

.lever {
  position: absolute;
  right: -20px;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 80px;
  background-color: var(--primary);
  border-radius: 10px 0 0 10px;
  cursor: pointer;
}

/* Games Section */
.games-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.game-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.game-card:hover {
  transform: translateY(-10px);
}

.game-thumb {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.game-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.game-card:hover .game-thumb img {
  transform: scale(1.05);
}

.rtp-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background-color: var(--success);
  color: white;
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
}

.game-card h3 {
  padding: 15px 15px 5px;
  font-size: 1.2rem;
}

.game-card p {
  padding: 0 15px;
  font-size: 0.9rem;
  color: var(--gray);
}

/* Jackpot Section */
.section-jackpot {
  background: linear-gradient(rgba(196, 30, 58, 0.1), rgba(10, 14, 23, 0.9)), 
              url('https://via.placeholder.com/1920x800?text=Jackpot+Zone') center/cover no-repeat;
}

.jackpot-counter {
  display: flex;
  justify-content: space-between;
  background: rgba(0, 0, 0, 0.5);
  padding: 20px;
  border-radius: 15px;
  margin-bottom: 40px;
}

.jackpot-amount, .jackpot-timer {
  text-align: center;
}

.jackpot-amount .label, .jackpot-timer .label {
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.jackpot-amount .amount {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
}

.jackpot-timer .timer {
  font-size: 2rem;
  font-weight: 700;
  font-family: monospace;
}

.jackpot-games {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 20px;
}

.jackpot-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  overflow: hidden;
  position: relative;
  transition: transform 0.3s ease;
}

.jackpot-card:hover {
  transform: translateY(-5px);
}

.jackpot-card.featured {
  grid-row: span 2;
}

.jackpot-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.jackpot-card.featured img {
  height: 420px;
}

.jackpot-card h3 {
  padding: 15px 15px 5px;
  font-size: 1.3rem;
}

.jackpot-card p {
  padding: 0 15px;
  font-size: 0.9rem;
  color: var(--gray);
}

.jackpot-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  background-color: var(--secondary);
  color: white;
  padding: 5px 15px;
  border-radius: 20px;
  font-weight: 700;
  text-transform: uppercase;
}

/* Thần Tài Section */
.section-thantai {
  background-color: rgba(196, 30, 58, 0.05);
}

.thantai-intro {
  display: flex;
  gap: 40px;
  margin-bottom: 50px;
}

.thantai-content {
  flex: 1;
}

.thantai-content h3 {
  font-size: 1.8rem;
  margin-bottom: 20px;
  color: var(--primary);
}

.thantai-content ul {
  list-style: none;
  margin-top: 20px;
}

.thantai-content ul li {
  margin-bottom: 10px;
  position: relative;
  padding-left: 25px;
}

.thantai-content ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary);
}

.thantai-animation {
  width: 300px;
  position: relative;
}

.thantai-character {
  font-size: 10rem;
  text-align: center;
  animation: float 3s infinite ease-in-out;
}

.coins {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}

.coin {
  font-size: 2rem;
  position: absolute;
  animation: coin-spin 5s infinite linear;
}

.coin:nth-child(1) {
  left: -30px;
  animation-delay: 0s;
}

.coin:nth-child(2) {
  animation-delay: 1s;
}

.coin:nth-child(3) {
  left: 30px;
  animation-delay: 2s;
}

/* Mechanics Section */
.mechanics-container {
  display: flex;
  gap: 40px;
}

.mechanics-animation {
  flex: 1;
  height: 400px;
  background: rgba(255, 215, 0, 0.05);
  border-radius: 15px;
  border: 2px dashed var(--primary);
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.mechanics-content {
  flex: 1;
}

.mechanic {
  display: none;
}

.mechanic.active {
  display: block;
}

.mechanic h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: var(--primary);
}

.mechanic p {
  margin-bottom: 30px;
}

.mechanic-buttons {
  display: flex;
  gap: 15px;
}

.btn-mechanic {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--dark);
  border: 2px solid var(--primary);
  color: var(--primary);
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-mechanic.active {
  background-color: var(--primary);
  color: var(--dark);
}

/* CTA Section */
.section-cta {
  background: linear-gradient(135deg, var(--secondary), #8a1538);
}

.cta-box {
  max-width: 800px;
  margin: 0 auto;
  background: rgba(10, 14, 23, 0.8);
  border-radius: 20px;
  padding: 40px;
  text-align: center;
}

.cta-box h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: var(--primary);
}

.cta-box p {
  font-size: 1.1rem;
  margin-bottom: 20px;
}

.cta-box ul {
  list-style: none;
  text-align: left;
  max-width: 500px;
  margin: 30px auto;
}

.cta-box ul li {
  margin-bottom: 10px;
  position: relative;
  padding-left: 30px;
}

.cta-box ul li::before {
  content: '★';
  position: absolute;
  left: 0;
  color: var(--primary);
}

.register-form {
  max-width: 500px;
  margin: 30px auto 0;
}

.form-group {
  margin-bottom: 15px;
}

.form-group input {
  width: 100%;
  padding: 15px;
  border-radius: 30px;
  border: none;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  font-size: 1rem;
}

.form-group input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.btn-cta {
  background: linear-gradient(135deg, var(--primary), #ffcc00);
  color: var(--dark);
  font-weight: 700;
  font-size: 1.1rem;
  padding: 15px;
  width: 100%;
  margin-top: 20px;
}

.cta-note {
  margin-top: 20px;
  font-size: 0.9rem;
  opacity: 0.8;
}

/* Footer */
.footer {
  background-color: #05080f;
  padding: 60px 0 30px;
}

.footer .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.footer-brand {
  grid-column: span 1;
}

.footer-links {
  margin-bottom: 30px;
}

.footer-links h4 {
  color: var(--primary);
  margin-bottom: 20px;
  font-size: 1.2rem;
}

.footer-links ul {
  list-style: none;
}

.footer-links ul li {
  margin-bottom: 10px;
}

.footer-links ul li a {
  color: var(--gray);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links ul li a:hover {
  color: var(--primary);
}

.certificate-images {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
}

.certificate-images img {
  border-radius: 5px;
}

.app-download {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.btn-download {
  display: block;
  padding: 10px 15px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 5px;
  color: white;
  text-decoration: none;
  font-size: 0.9rem;
  transition: background-color 0.3s ease;
}

.btn-download:hover {
  background-color: rgba(255, 215, 0, 0.2);
}

/* Animations */
@keyframes spin {
  0% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
  100% { transform: translateY(0); }
}

@keyframes float {
  0% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
  100% { transform: translateY(0); }
}

@keyframes coin-spin {
  0% { transform: rotateY(0); }
  100% { transform: rotateY(360deg); }
}

/* Responsive */
@media (max-width: 992px) {
  .games-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .thantai-intro {
    flex-direction: column;
  }
  
  .thantai-animation {
    width: 100%;
    height: 200px;
  }
}

@media (max-width: 768px) {
  .games-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .hero .container {
    flex-direction: column;
    text-align: center;
  }
  
  .hero-buttons {
    justify-content: center;
  }
  
  .hero-animation {
    margin-top: 40px;
  }
  
  .jackpot-games {
    grid-template-columns: 1fr;
  }
  
  .jackpot-card.featured {
    grid-row: span 1;
  }
  
  .mechanics-container {
    flex-direction: column;
  }
  
  .footer .container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .games-grid {
    grid-template-columns: 1fr;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .hero-content h1 {
    font-size: 2.2rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    gap: 10px;
  }
  
  .jackpot-counter {
    flex-direction: column;
    gap: 20px;
  }
  
  .footer .container {
    grid-template-columns: 1fr;
  }
}