

/* style.css */

/* -----------------------------------------------
   General Reset and Body Styling
   ----------------------------------------------- */
/* -----------------------------------------------
   Reset Body Styling
   ----------------------------------------------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: 'Roboto', sans-serif;
  background: #5d5db1;
  color: #E6E6E6;
  overflow-x: hidden;
}

/* -----------------------------------------------
   Container หลัก
   ----------------------------------------------- */
.container {
  max-width: 800px;
  margin: 30px auto;
  padding: 0 20px;
  text-align: center;
}

/* -----------------------------------------------
   Profile Section
   ----------------------------------------------- */
.profile-section {
  margin-bottom: 20px;
}
.profile-img {
  width: 750px;
  height: 300px;
  border-radius: 50%;
  
  object-fit: cover;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.profile-img:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
}

/* -----------------------------------------------
   Links Section 
   ----------------------------------------------- */
.links-center {
  display: inline-flex;
  gap: 16px;              /* เว้นระยะระหว่างปุ่ม */
  margin-bottom: 30px;
  justify-content: center;
}

/* กำหนดขนาดปุ่มตายตัว */
.link-btn {
  display: inline-block;
  width: 270px;      /* ปรับตามต้องการ */
  height: 80px;      /* ปรับตามต้องการ */
  border: 2px solid #E6B800;
  border-radius: 8px;
  overflow: hidden;  /* ตัดส่วนเกินของรูปออก */
  background: #00000075;
  transition: background 0.3s ease, transform 0.3s ease;
  text-decoration: none;
}

.link-btn:hover {
  background: #162c5a;
  transform: translateY(-2px);
}

/* ให้รูปในปุ่มขยายเต็มปุ่ม */
.link-btn .link-icon {
  width: 100%;
  height: 100%;
  object-fit: cover; /* หรือใช้ contain ถ้าต้องการรักษาสัดส่วนโดยไม่ถูกตัด */
  display: block;
}


/* -----------------------------------------------
   Promotion Section
   ----------------------------------------------- */
.promo-section {
  margin-bottom: 40px;
}
.promo-img {
  width: 100%;
  max-width: 1040px;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.7);
  transition: transform 0.3s ease;
}
.promo-img:hover {
  transform: scale(1.02);
}

/* -----------------------------------------------
   Responsive
   ----------------------------------------------- */
@media (max-width: 768px) {
  .container { padding: 0 15px; }
  .profile-img {
    width: 200px;
    height: 200px;
  }
  .links-center {
    gap: 12px;
  }
  .link-btn {
    width: 140px;
    height: 45px;
  }
  .link-icon {
    width: 20px;
    height: 20px;
  }
  .promo-img {
    border-radius: 8px;
  }
}


/* -----------------------------------------------
   
   ----------------------------------------------- */
.withdrawals-container {
  max-width: 680px;
  width: 100%;
  margin: 0 auto 40px;
}

.withdrawals-header {
  background: #1f3a73; 
  border: 2px solid #E6B800;
  border-radius: 8px 8px 0 0;
  padding: 15px 20px;
  text-align: center;
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  font-weight: 700;
  color: #E6B800;
  text-shadow: 0 0 4px rgba(230, 184, 0, 0.6);
  margin-bottom: -2px;
}

.withdrawal-card {
  display: flex;
  align-items: center;
  background: linear-gradient(145deg, rgba(31, 58, 115, 0.9), rgba(26, 47, 75, 0.9));
  border-left: 2px solid #E6B800;
  border-right: 2px solid #E6B800;
  border-bottom: 2px solid #E6B800;
  padding: 12px 16px;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.7);
  margin-top: 4px;
  opacity: 0;
  transform: translateY(10px);
  animation: slideInFade 0.6s ease forwards;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.withdrawal-card:hover {
  transform: translateY(0) scale(1.02);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.8), 0 0 12px rgba(230, 184, 0, 0.3);
}

.withdrawal-card .icon {
  width: 40px;
  height: 40px;
  margin-right: 12px;
  border-radius: 6px;
  border: 1px solid #C0C0C0;
  background: rgba(255, 255, 255, 0.1);
  object-fit: cover;
  flex-shrink: 0;
}

.withdrawal-card .withdrawal-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.withdrawal-card .withdrawal-info .user {
  font-size: 18px;
  font-weight: 500;
  color: #FFFFFF;
  margin-bottom: 2px;
}

.withdrawal-card .withdrawal-info .amount {
  font-size: 16px;
  font-weight: 600;
  color: #E6B800;
  margin-bottom: 2px;
}

.withdrawal-card .withdrawal-info .date {
  font-size: 14px;
  font-weight: 400;
  color: #D4D4D4;
  margin-bottom: 4px;
}

.withdrawal-card .withdrawal-info .status {
  font-size: 14px;
  font-weight: 500;
  color: #FFFFFF;
  padding: 4px 8px;
  border-radius: 6px;
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.withdrawal-card .withdrawal-info .status.success {
  background-color: #27ae60; /* Green */
}

withdrawal-card .withdrawal-info .status.pending {
  background-color: #f39c12; /* Orange */
}

withdrawal-card .withdrawal-info .status.failed {
  background-color: #c0392b; /* Red */
}

/* -----------------------------------------------
   Animation Keyframes
   ----------------------------------------------- */
@keyframes slideInFade {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeOut {
  0% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateY(-10px);
  }
}

/* -----------------------------------------------
  
   ----------------------------------------------- */
@media (max-width: 768px) {
  .container {
    padding: 0 15px;
  }

  .profile-img {
    width: 200px;
    height: 200px;
  }

  .links-section {
    flex-direction: column;
    gap: 15px;
  }

  .link-btn {
    padding: 10px 15px;
    font-size: 14px;
  }

  .promo-img {
    max-width: 100%;
    border-radius: 8px;
  }

  .withdrawals-container {
    margin-top: 30px;
  }

  .withdrawal-card {
    padding: 10px 12px;
    margin-top: 3px;
  }

  .withdrawal-card .icon {
    width: 36px;
    height: 36px;
    margin-right: 10px;
  }

  .withdrawal-card .withdrawal-info .user {
    font-size: 16px;
  }

  .withdrawal-card .withdrawal-info .amount {
    font-size: 14px;
  }

  .withdrawal-card .withdrawal-info .date {
    font-size: 12px;
  }

  .withdrawal-card .withdrawal-info .status {
    font-size: 12px;
    padding: 3px 6px;
  }
  
}

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

html, body {
  background: #0a0f19;           
  color: #E6E6E6;                
  font-family: 'Roboto', sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

/* -----------------------------------------------
   
   ----------------------------------------------- */
.container {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* -----------------------------------------------
   
   ----------------------------------------------- */
.header {
  text-align: center;
}

.header h2 {
  font-size: 28px;
  color: #00FF00;                        
  text-shadow: 0 0 6px rgba(0, 255, 0, 0.6);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.header h2 .icon-flash {
  font-size: 32px;
  color: #FFD700;                        
}

/* -----------------------------------------------
   
   ----------------------------------------------- */
.cards-wrapper {
  display: grid;
  grid-template-columns: repeat(2, 1fr); 
  gap: 16px;                              
  justify-items: center;
  align-items: start;
}

/* -----------------------------------------------
   
   ----------------------------------------------- */
.card {
  position: relative;
  background-color: #161616;
  border: 1px solid #E6B800;            
  border-radius: 8px;
  overflow: hidden;
  width: 100%;          
  max-width: 350px;     
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.8),
              0 0 8px rgba(0, 255, 0, 0.4);
}


.card img.game-img {
  display: block;
  width: 100%;
  height: 120px;
  object-fit: cover;
}


.badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background-color: #00FF00;
  color: #000000;
  font-size: 12px;
  font-weight: bold;
  text-transform: uppercase;
  padding: 4px 6px;
  border-radius: 4px;
  box-shadow: 0 0 6px rgba(0, 255, 0, 0.5);
}


.info {
  background-color: #1f1f1f;
  padding: 12px 8px;
  text-align: center;
}

.info span {
  display: block;
  font-size: 14px;
  font-weight: bold;
  color: #FFFFFF;
  margin-bottom: 4px;
}

.info .online-count {
  font-size: 16px;
  font-weight: 700;
  color: #00FF00;
  transition: opacity 0.2s ease;
}

/* -----------------------------------------------
   6. Responsive Breakpoints
   ----------------------------------------------- */


@media (max-width: 480px) {
  .cards-wrapper {
    
    grid-template-columns: repeat(2, 1fr);
  }

  
  .card img.game-img {
    height: 100px;
  }
  .badge {
    font-size: 11px;
    padding: 3px 5px;
  }
  .info span {
    font-size: 13px;
  }
  .info .online-count {
    font-size: 15px;
  }
}



@media (min-width: 481px) and (max-width: 767px) {
  .card img.game-img {
    height: 100px;
  }
  .badge {
    font-size: 11px;
    padding: 3px 5px;
  }
  .info span {
    font-size: 13px;
  }
  .info .online-count {
    font-size: 15px;
  }
}

.promo-slider {
  position: relative;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 8px;
}


.promo-slider {
  position: relative;
  width: 100%;
  max-width: px;     
  margin: 0 auto;
  overflow: hidden;
  border-radius: 8px;
}


.promo-slider .slides {
  display: flex;
  transition: transform 1s ease;
}


.promo-slider .slide {
  position: relative;
  flex: 0 0 100%;       
  padding-top: 100%;  
}


.promo-slider .slide img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ครอบคลุมให้วิดีโอเป็น Background */
#bg-video {
  position: fixed;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translate(-50%, -50%);
  z-index: -1;       /* ดันลงหลังเนื้อหา */
}

/* ปรับ body/container ให้อยู่เหนือวิดีโอ */
body, .container {
  position: relative;
  z-index: 1;
}
#bg-video {
  position: fixed;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translate(-50%, -50%) scale(1.1); /* ขยายให้เกินขอบ เผื่อเบลอแล้วขอบไม่หลุด */
  filter: blur(3px);                               /* ระดับความเบลอ ปรับได้ตามชอบ */
  z-index: -1;

}

