/* ==========================================
   MODERN HOMEPAGE CSS - ELEGANT & RESPONSIVE
   ========================================== */

/* === ROOT VARIABLES === */
:root {
  --primary: #e11d48;
  --primary-dark: #be123c;
  --primary-light: #fb7185;
  --accent: #fbbf24;
  --dark: #1a1a1a;
  --dark-card: #262626;
  --dark-hover: #333333;
  --text-primary: #ffffff;
  --text-secondary: #a3a3a3;
  --border-radius: 16px;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.2);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* === GLOBAL RESETS === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: linear-gradient(135deg, #0f0f0f 0%, #1a1a1a 100%);
  color: var(--text-primary);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

/* === CONTAINER === */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
}

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

/* === ALERT VERIFIKASI === */
.alert-verifikasi {
  width: 100%;
  padding: 0 24px;
  margin-bottom: 24px;
}

.alert-box {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border: none;
  border-radius: var(--border-radius);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.alert-box::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 4px;
  background: var(--accent);
}

.alert-box:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.alert-icon-text {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.alert-icon {
  width: 24px;
  height: 24px;
  color: #d97706;
  flex-shrink: 0;
}

.alert-text {
  color: #78350f;
  font-size: 14px;
  line-height: 1.5;
}

.alert-text strong {
  font-weight: 700;
  display: block;
  margin-bottom: 2px;
}

@media (max-width: 640px) {
  .alert-verifikasi {
    padding: 0 16px;
  }

  .alert-box {
    padding: 14px 16px;
    font-size: 13px;
  }
}

/* === BANNER SECTION === */
section.relative {
  background: linear-gradient(180deg, rgba(26, 26, 26, 0) 0%, #1a1a1a 100%);
  padding: 32px 16px;
  margin-bottom: 48px;
  position: relative;
  overflow: hidden;
}

.swiper-slide {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
}

.swiper-slide:hover {
  transform: scale(1.02);
}

.swiper-slide img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 20px;
}

/* === ANIMATED BACKGROUND === */
.area {
  position: absolute;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.circles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  list-style: none;
}

.circles li {
  position: absolute;
  display: block;
  width: 20px;
  height: 20px;
  background: rgba(225, 29, 72, 0.1);
  animation: animate 25s linear infinite;
  bottom: -150px;
  border-radius: 50%;
}

.circles li:nth-child(1) {
  left: 25%;
  width: 80px;
  height: 80px;
  animation-delay: 0s;
}
.circles li:nth-child(2) {
  left: 10%;
  width: 20px;
  height: 20px;
  animation-delay: 2s;
  animation-duration: 12s;
}
.circles li:nth-child(3) {
  left: 70%;
  width: 40px;
  height: 40px;
  animation-delay: 4s;
}
.circles li:nth-child(4) {
  left: 40%;
  width: 60px;
  height: 60px;
  animation-delay: 0s;
  animation-duration: 18s;
}
.circles li:nth-child(5) {
  left: 65%;
  width: 20px;
  height: 20px;
  animation-delay: 0s;
}
.circles li:nth-child(6) {
  left: 75%;
  width: 110px;
  height: 110px;
  animation-delay: 3s;
}
.circles li:nth-child(7) {
  left: 35%;
  width: 150px;
  height: 150px;
  animation-delay: 7s;
}
.circles li:nth-child(8) {
  left: 50%;
  width: 25px;
  height: 25px;
  animation-delay: 15s;
  animation-duration: 45s;
}
.circles li:nth-child(9) {
  left: 20%;
  width: 15px;
  height: 15px;
  animation-delay: 2s;
  animation-duration: 35s;
}
.circles li:nth-child(10) {
  left: 85%;
  width: 150px;
  height: 150px;
  animation-delay: 0s;
  animation-duration: 11s;
}

@keyframes animate {
  0% {
    transform: translateY(0) rotate(0deg);
    opacity: 0.3;
  }
  50% {
    opacity: 0.5;
  }
  100% {
    transform: translateY(-1000px) rotate(720deg);
    opacity: 0;
  }
}

/* === SECTION HEADERS === */
.wrapper h3 {
  font-size: 24px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-primary);
}

.wrapper h3 i {
  font-size: 28px;
}

/* === GAME CARDS - POPULER === */
.bg-featured-game-card {
  background: var(--dark-card);
  border-radius: var(--border-radius);
  overflow: hidden;
  transition: var(--transition);
  position: relative;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.bg-featured-game-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(225, 29, 72, 0.1) 0%,
    transparent 100%
  );
  opacity: 0;
  transition: var(--transition);
  pointer-events: none;
}

.bg-featured-game-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(225, 29, 72, 0.3);
  border-color: var(--primary);
}

.bg-featured-game-card:hover::before {
  opacity: 1;
}

.bg-featured-game-card .flex {
  padding: 16px;
  gap: 16px;
}

.bg-featured-game-card img {
  width: 96px;
  height: 96px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: var(--shadow-sm);
}

.bg-featured-game-card p {
  margin: 0;
  color: var(--text-primary);
  font-weight: 600;
  font-size: 15px;
}

.bg-featured-game-card .text-warning {
  color: var(--accent);
  font-size: 13px;
  font-weight: 400;
  margin-top: 4px;
  opacity: 0.9;
}

/* === TABS === */
.nav-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 40px 0 32px;
  padding: 0;
  list-style: none;
}

.nav-pills .nav-item {
  list-style: none;
}

.tab-btn {
  background: var(--dark-card);
  color: var(--text-secondary);
  border: 2px solid transparent;
  border-radius: 12px;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.tab-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(225, 29, 72, 0.3),
    transparent
  );
  transition: left 0.5s;
}

.tab-btn:hover::before {
  left: 100%;
}

.tab-btn:hover {
  background: var(--dark-hover);
  color: var(--text-primary);
  border-color: var(--primary);
  transform: translateY(-2px);
}

.tab-btn.active,
.tab-btn:focus {
  background: linear-gradient(
    135deg,
    var(--primary) 0%,
    var(--primary-dark) 100%
  );
  color: var(--text-primary);
  border-color: var(--primary-light);
  box-shadow: 0 4px 20px rgba(225, 29, 72, 0.4);
}

.tab-btn.disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

@media (max-width: 640px) {
  .nav-pills {
    gap: 8px;
  }

  .tab-btn {
    padding: 10px 18px;
    font-size: 13px;
  }
}

/* === GAME GRID === */
.featured-game-card {
  background: var(--dark-card);
  border-radius: var(--border-radius);
  overflow: hidden;
  transition: var(--transition);
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
}

.featured-game-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.7) 100%);
  opacity: 0;
  transition: var(--transition);
  pointer-events: none;
}

.featured-game-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 16px 48px rgba(225, 29, 72, 0.3);
  border-color: var(--primary);
}

.featured-game-card:hover::after {
  opacity: 1;
}

.featured-game-card .relative {
  height: 180px;
  overflow: hidden;
}

.featured-game-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.featured-game-card:hover img {
  transform: scale(1.1);
}

.featured-game-card .p-2 {
  padding: 14px;
  position: relative;
  z-index: 1;
}

.featured-game-card p {
  margin: 0;
  line-height: 1.4;
}

.featured-game-card .font-semibold {
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
}

.featured-game-card .text-warning {
  color: var(--accent);
  font-size: 12px;
  opacity: 0.9;
}

/* === GRID LAYOUTS === */
.grid {
  display: grid;
  gap: 20px;
}

.grid-cols-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-cols-3 {
  grid-template-columns: repeat(3, 1fr);
}

@media (min-width: 640px) {
  .sm\:grid-cols-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 768px) {
  .md\:grid-cols-5 {
    grid-template-columns: repeat(5, 1fr);
  }

  .lg\:grid-cols-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .lg\:grid-cols-6,
  .xl\:grid-cols-6 {
    grid-template-columns: repeat(6, 1fr);
  }
}

@media (max-width: 640px) {
  .grid {
    gap: 16px;
  }

  .featured-game-card .relative {
    height: 140px;
  }

  .featured-game-card .p-2 {
    padding: 12px;
  }

  .featured-game-card .font-semibold {
    font-size: 13px;
  }
}

/* === TAB CONTENT === */
.tab-pane-content {
  animation: fadeIn 0.4s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* === MODAL === */
.modal-content {
  background: var(--dark-card) !important;
  border-radius: 20px !important;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow-lg);
}

.modal-body {
  padding: 24px;
}

.modal-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-body img {
  border-radius: 12px;
  margin-bottom: 16px;
}

.form-check {
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.form-check-input {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.form-check-label {
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 14px;
}

/* === BUTTONS === */
.btn-primary {
  background: linear-gradient(
    135deg,
    var(--primary) 0%,
    var(--primary-dark) 100%
  );
  color: white;
  border: none;
  border-radius: 10px;
  padding: 10px 24px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 12px rgba(225, 29, 72, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(225, 29, 72, 0.4);
}

/* === UTILITY CLASSES === */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* === LOADING STATE === */
.load {
  background: linear-gradient(
    90deg,
    var(--dark-card) 0%,
    #333 50%,
    var(--dark-card) 100%
  );
  background-size: 200% 100%;
  animation: loading 1.5s ease-in-out infinite;
}

@keyframes loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* === SCROLLBAR === */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--dark);
}

::-webkit-scrollbar-thumb {
  background: var(--dark-hover);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* === RESPONSIVE IMPROVEMENTS === */
@media (max-width: 1024px) {
  .wrapper h3 {
    font-size: 20px;
  }
}

@media (max-width: 768px) {
  section.relative {
    padding: 24px 12px;
    margin-bottom: 32px;
  }

  .wrapper h3 {
    font-size: 18px;
    margin-bottom: 24px;
  }
}

@media (max-width: 480px) {
  .bg-featured-game-card img {
    width: 80px;
    height: 80px;
  }

  .bg-featured-game-card p {
    font-size: 13px;
  }

  .bg-featured-game-card .text-warning {
    font-size: 11px;
  }
}

.area,
.circles,
.circles li,
section.relative .absolute {
  pointer-events: none;
}

.navbar, 
.navbar-fixed-top, 
header {
  position: sticky; /* atau fixed kalau navbar kamu fixed */
  top: 0;
  z-index: 9999;
}
