/* Reset and base styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', sans-serif;
}

body {
  background-color: #f2f2f7;
  color: #333;
  padding-bottom: 80px;
}

/* Top Bar */
.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background-color: #ffffff;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.login-btn {
  background-color: #ff001f71;
  color: white;
  padding: 8px 16px;
  border: none;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
}

.login-btn:hover {
    background-color: darkgrey;
    color: black;
}

.notify-icon {
  display: inline-block;
  position: relative;
}

.notify-icon img {
  width: 30px;
  height: 30px;
  object-fit: contain;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.notify-icon.clicked img {
  animation: bellClick 0.3s ease;
}

@keyframes bellClick {
  0% { transform: scale(1); }
  40% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

.notify-icon .dot {
  position: absolute;
  top: 0;
  right: 0;
  width: 10px;
  height: 10px;
  background: red;
  border-radius: 50%;
  display: none; /* Hidden by default */
}

/* Slider */
.slider {
  width: 90%;
  max-width: 800px;
  height: 200px;
  margin: 16px auto;
  overflow: hidden;
  border-radius: 12px;
  position: relative;
}

.slider-inner {
  width: 100%;
  height: 100%;
  position: relative;
}

.slide {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity 1s ease;
}

.slide.active {
  opacity: 1;
  z-index: 1;
}

/* Features */
.features {
  display: flex;
  justify-content: space-around;
  padding: 12px 16px;
  background-color: #ffffff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  border-radius: 8px;
  margin: 0px 16px 16px;
}

.feature-row {
    text-decoration: none;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12px 8px;
  background-color: #f2f2f7;
  width: 70px;
  height: 70px;
  transition: all 0.2s ease;
  border-radius: 5px;
}

.feature-item img {
  width: 30px;
  height: 30px;
  margin-bottom: 6px;
}

.feature-item span {
  font-size: 10px;
  text-align: center;
  color: #333;
  white-space: nowrap;
}

/* Game Grid */
.game-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  padding: 0 16px;
}

.game-grid a {
  text-decoration: none;
}

.game-grid img {
  border-radius: 12px;
}

.game-item {
  background-color: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  text-align: center;
  padding: 12px 8px;
  transition: transform 0.15s ease;
  cursor: pointer;
  position: relative;
}

.game-item:hover {
  transform: scale(1.02);
}

.game-item img {
  width: 64px;
  height: 64px;
  margin-bottom: 6px;
}

.game-item p {
  font-size: 14px;
  font-weight: 500;
  color: #222;
}

/* Bottom Nav */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: #ffffff;
  display: flex;
  justify-content: space-around;
  padding: 6px 0;
  box-shadow: 0 -2px 6px rgba(0,0,0,0.05);
  border-top: 1px solid #e4e4e4;
  z-index: 100;
}

.nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #888;
  font-size: 10px;
  width: 60px;
}

.nav-bar {
    text-decoration: none;
}

.nav-btn img {
  width: 22px;
  height: 22px;
  margin-bottom: 4px;
}

.nav-btn.active {
  color: #007bff;
}

/* Custom Alert Popup */
.custom-popup {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: #1e90ff;
  color: white;
  padding: 12px 22px;
  border-radius: 25px;
  font-size: 14px;
  font-weight: 600;
  display: none;
  z-index: 9999;
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
  animation: fadeInOut 3s ease-in-out forwards;
}

@keyframes fadeInOut {
  0% { opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { opacity: 0; }
}

/* Remove mobile tap highlight and focus ring */
* {
  -webkit-tap-highlight-color: transparent;
  outline: none;
}

/* Animation for all clickable items */
.feature-item,
.game-item,
.nav-btn {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-item:active,
.game-item:active,
.nav-btn:active {
  transform: scale(0.95);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}


.badge {
  position: absolute;
  top: 4px;
  right: 4px;
  font-size: 8px;
  font-weight: bold;
  padding: 2px 6px;
  border-radius: 6px;
  color: white;
  background: gray;
  z-index: 10;
}

#trending {
  background: linear-gradient(45deg, #00c6ff, #007bff); /* blue-green */
  animation: pulseBadge 1.8s infinite ease-in-out;
}

#hot {
  background: linear-gradient(45deg, #fddb3a, #ff2e63); /* yellow-red */
  animation: pulseBadge 1.8s infinite ease-in-out;
}

#new {
  background: linear-gradient(45deg, #7f7fd5, #86a8e7, #91eae4); /* blue-violet */
  animation: pulseBadge 1.8s infinite ease-in-out;
}

@keyframes pulseBadge {
  0% {
    transform: scale(1);
    box-shadow: 0 0 6px rgba(255, 255, 255, 0.2);
  }
  50% {
    transform: scale(1.1);
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.4);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 6px rgba(255, 255, 255, 0.2);
  }
}

.footer {
  background: #f8f9fa;
  text-align: center;
  padding: 30px 15px;
  margin-top: 40px;
  border-top: 1px solid #ddd;
  font-family: 'Segoe UI', sans-serif;
}

.footer h4 {
  margin-bottom: 15px;
  font-size: 16px;
  color: #333;
}

.social-buttons {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-bottom: 15px;
  flex-wrap: wrap;
}

.social-btn {
  width: 40px;
  height: 40px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 5px rgba(0,0,0,0.1);
  transition: transform 0.2s;
}

.social-btn:hover {
  transform: scale(1.1);
}

.social-btn img {
  width: 22px;
  height: 22px;
}

.contact-info {
  font-size: 14px;
  color: #555;
  margin-bottom: 12px;
  line-height: 1.6;
}

.email-link {
  color: #007bff;
  text-decoration: none;
}

.email-link:hover {
  text-decoration: underline;
}

.footer p {
  font-size: 13px;
  color: #888;
  margin-top: 10px;
}

/* Popup Styles */
.popup-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.6);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 999;
  color: white;
}

.popup-overlay.active {
  display: flex;
}

.popup-content {
  background: white;
  padding: 20px;
  border-radius: 10px;
  width: 90%;
  max-width: 400px;
  text-align: center;
  animation: fadeIn 0.3s ease;
}

.close-btn {
  background: none;
  border: none;
  font-size: 28px;
  color: red;
  float: right;
  cursor: pointer;
}

.social-buttons-popup {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 15px;
}

.btn {
  padding: 12px;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background 0.2s;
}

.btn.whatsapp { background: #25D366; }
.btn.facebook { background: #3b5998; }
.btn.instagram { background: #E1306C; }
.btn.youtube { background: tomato; }
.btn.whatsapp-group { background: #128C7E; }

.btn:hover { opacity: 0.9; }

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}


.popup-content {
  background: rgba(255, 255, 255, 0.15); /* Semi-transparent white */
  backdrop-filter: blur(12px); /* Blur effect */
  -webkit-backdrop-filter: blur(12px); /* Safari support */
  border-radius: 15px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.3); /* Subtle border */
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2); /* Soft shadow */
}


.social-buttons-popup a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px;
  background: #f4f4f4;
  border-radius: 8px;
  text-decoration: none;
  color: #ffffff;
  font-weight: 500;
  margin: 5px 0;
}

.social-buttons-popup a img {
  width: 20px;
  height: 20px;
}

#loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.spinner {
  width: 60px;
  height: 60px;
  border: 6px solid #ddd;
  border-top: 6px solid #3498db; /* change to your theme color */
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}