/* ============================================
   RIN STORE OFFICIAL - Premium Golden Theme
   ============================================ */

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

/* Brightened background with warm cream/beige tones instead of dark */
body {
  background: linear-gradient(135deg, #1c1814 0%, #252019 50%, #1c1814 100%);
  color: #f5f0e8;
  padding-bottom: 80px;
  min-height: 100vh;
}

/* Top Bar - Lighter warm header */
.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  /* Lighter header background */
  background: linear-gradient(135deg, #2a231c 0%, #352c22 100%);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2), 0 1px 0 rgba(201, 162, 39, 0.3);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(201, 162, 39, 0.4);
}

/* Golden login button */
.login-btn {
  background: linear-gradient(135deg, #c9a227 0%, #e8c252 50%, #c9a227 100%);
  color: #1a1510;
  padding: 10px 20px;
  border: none;
  border-radius: 10px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(201, 162, 39, 0.5);
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.login-btn:hover {
  background: linear-gradient(135deg, #e8c252 0%, #f5d76e 50%, #e8c252 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(201, 162, 39, 0.6);
}

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

.notify-icon img {
  width: 30px;
  height: 30px;
  object-fit: contain;
  cursor: pointer;
  transition: transform 0.2s ease;
  filter: drop-shadow(0 0 8px rgba(201, 162, 39, 0.5));
}

.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: #c9a227;
  border-radius: 50%;
  display: none;
  box-shadow: 0 0 10px rgba(201, 162, 39, 0.8);
}

/* Slider - Premium golden border */
.slider {
  width: 92%;
  max-width: 800px;
  height: 200px;
  margin: 16px auto;
  overflow: hidden;
  border-radius: 16px;
  position: relative;
  border: 2px solid rgba(201, 162, 39, 0.5);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 0 20px rgba(201, 162, 39, 0.2);
}

.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 - Lighter card with golden accents */
.features {
  display: flex;
  justify-content: space-around;
  padding: 12px 16px;
  background: linear-gradient(135deg, #2a231c 0%, #352c22 100%);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  border-radius: 14px;
  margin: 0px 16px 16px;
  border: 1px solid rgba(201, 162, 39, 0.35);
}

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

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12px 8px;
  /* Lighter feature items */
  background: linear-gradient(145deg, #352c22 0%, #2a231c 100%);
  width: 70px;
  height: 70px;
  transition: all 0.3s ease;
  border-radius: 12px;
  border: 1px solid rgba(201, 162, 39, 0.3);
}

.feature-item:hover {
  border-color: rgba(201, 162, 39, 0.6);
  box-shadow: 0 4px 20px rgba(201, 162, 39, 0.25);
  transform: translateY(-2px);
  background: linear-gradient(145deg, #3d3228 0%, #352c22 100%);
}

.feature-item img {
  width: 30px;
  height: 30px;
  margin-bottom: 6px;
  filter: drop-shadow(0 0 4px rgba(201, 162, 39, 0.4));
}

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

/* Game Grid - Lighter cards */
.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;
  border: 2px solid rgba(201, 162, 39, 0.4);
}

.game-item {
  background: linear-gradient(145deg, #2a231c 0%, #352c22 100%);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  text-align: center;
  padding: 16px 10px;
  transition: all 0.25s ease;
  cursor: pointer;
  position: relative;
  border: 1px solid rgba(201, 162, 39, 0.3);
}

.game-item:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35), 0 0 20px rgba(201, 162, 39, 0.25);
  border-color: rgba(201, 162, 39, 0.6);
  background: linear-gradient(145deg, #352c22 0%, #3d3228 100%);
}

.game-item img {
  width: 68px;
  height: 68px;
  margin-bottom: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.game-item p {
  font-size: 14px;
  font-weight: 600;
  color: #f5f0e8;
  margin: 0;
}

/* Bottom Nav - Lighter navigation */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(0deg, #2a231c 0%, #352c22 100%);
  display: flex;
  justify-content: space-around;
  padding: 8px 0 6px;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
  border-top: 1px solid rgba(201, 162, 39, 0.4);
}

.nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #a99275;
  font-size: 10px;
  width: 60px;
  transition: all 0.2s ease;
}

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

.nav-btn img {
  width: 24px;
  height: 24px;
  margin-bottom: 4px;
  opacity: 0.7;
  transition: all 0.2s ease;
}

.nav-btn.active {
  color: #e8c252;
}

.nav-btn.active img {
  opacity: 1;
  filter: drop-shadow(0 0 8px rgba(201, 162, 39, 0.6));
}

.nav-btn:hover {
  color: #f5d76e;
}

.nav-btn:hover img {
  opacity: 1;
  transform: translateY(-2px);
}

/* Custom Alert Popup - Golden alert */
.custom-popup {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #c9a227 0%, #e8c252 100%);
  color: #1a1510;
  padding: 14px 28px;
  border-radius: 25px;
  font-size: 14px;
  font-weight: 700;
  display: none;
  z-index: 9999;
  box-shadow: 0 4px 20px rgba(201, 162, 39, 0.5);
  animation: fadeInOut 3s ease-in-out forwards;
}

@keyframes fadeInOut {
  0% {
    opacity: 0;
    transform: translateX(-50%) translateY(-10px);
  }
  10% {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
  90% {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateX(-50%) translateY(-10px);
  }
}

/* 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 10px rgba(201, 162, 39, 0.3);
}

/* Badges - Premium golden badges */
.badge {
  position: absolute;
  top: 6px;
  right: 6px;
  font-size: 9px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 8px;
  color: #1a1510;
  background: #c9a227;
  z-index: 10;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

#trending {
  background: linear-gradient(135deg, #c9a227, #f5d76e);
  animation: pulseBadge 2s infinite ease-in-out;
  box-shadow: 0 2px 10px rgba(201, 162, 39, 0.5);
}

#hot {
  background: linear-gradient(135deg, #ff6b35, #f7931e);
  animation: pulseBadge 2s infinite ease-in-out;
  box-shadow: 0 2px 10px rgba(247, 147, 30, 0.5);
}

#new {
  background: linear-gradient(135deg, #c0c0c0, #e8e8e8);
  animation: pulseBadge 2s infinite ease-in-out;
  box-shadow: 0 2px 10px rgba(192, 192, 192, 0.5);
}

@keyframes pulseBadge {
  0% {
    transform: scale(1);
    box-shadow: 0 0 8px rgba(201, 162, 39, 0.3);
  }
  50% {
    transform: scale(1.08);
    box-shadow: 0 0 16px rgba(201, 162, 39, 0.6);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 8px rgba(201, 162, 39, 0.3);
  }
}

/* Footer - Lighter footer */
.footer {
  background: linear-gradient(135deg, #2a231c 0%, #352c22 100%);
  text-align: center;
  padding: 35px 20px;
  margin-top: 40px;
  border-top: 2px solid rgba(201, 162, 39, 0.4);
  font-family: "Segoe UI", sans-serif;
}

.footer h4 {
  margin-bottom: 18px;
  font-size: 18px;
  color: #e8c252;
  font-weight: 700;
}

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

.social-btn {
  width: 46px;
  height: 46px;
  background: linear-gradient(145deg, #352c22 0%, #2a231c 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  border: 1px solid rgba(201, 162, 39, 0.35);
}

.social-btn:hover {
  transform: translateY(-3px) scale(1.1);
  border-color: rgba(201, 162, 39, 0.7);
  box-shadow: 0 6px 20px rgba(201, 162, 39, 0.35);
}

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

.contact-info {
  font-size: 14px;
  color: #a99275;
  margin-bottom: 14px;
  line-height: 1.8;
}

.email-link {
  color: #e8c252;
  text-decoration: none;
  transition: color 0.2s ease;
}

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

.footer p {
  font-size: 13px;
  color: #8a7560;
  margin-top: 12px;
}

.copyright {
  color: #8a7560;
}

/* Popup Styles - Lighter glassmorphism */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(20, 17, 14, 0.8);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 999;
  backdrop-filter: blur(8px);
}

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

.popup-content {
  background: linear-gradient(145deg, #3d3228 0%, #2a231c 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 28px;
  border-radius: 20px;
  width: 90%;
  max-width: 400px;
  text-align: center;
  animation: fadeIn 0.3s ease;
  border: 1px solid rgba(201, 162, 39, 0.4);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 30px rgba(201, 162, 39, 0.15);
}

.close-btn {
  background: none;
  border: none;
  font-size: 32px;
  color: #e8c252;
  float: right;
  cursor: pointer;
  transition: all 0.2s ease;
}

.close-btn:hover {
  color: #f5d76e;
  transform: rotate(90deg);
}

.popup-content h2 {
  color: #e8c252;
  margin-bottom: 8px;
}

.popup-content p {
  color: #a99275;
}

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

.btn {
  padding: 14px 16px;
  color: white;
  text-decoration: none;
  border-radius: 12px;
  font-weight: 700;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
}

.btn.whatsapp {
  background: linear-gradient(135deg, #25d366, #128c7e);
}
.btn.facebook {
  background: linear-gradient(135deg, #4267b2, #3b5998);
}
.btn.instagram {
  background: linear-gradient(135deg, #e1306c, #c13584);
}
.btn.youtube {
  background: linear-gradient(135deg, #ff0000, #cc0000);
}
.btn.whatsapp-group {
  background: linear-gradient(135deg, #128c7e, #075e54);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

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

.social-buttons-popup a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: linear-gradient(145deg, #352c22 0%, #2a231c 100%);
  border-radius: 12px;
  text-decoration: none;
  color: #f5f0e8;
  font-weight: 600;
  margin: 4px 0;
  border: 1px solid rgba(201, 162, 39, 0.3);
  transition: all 0.3s ease;
}

.social-buttons-popup a:hover {
  border-color: rgba(201, 162, 39, 0.6);
  transform: translateX(4px);
}

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

/* Loader - Brighter golden spinner */
#loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(28, 24, 20, 0.95);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.spinner {
  width: 60px;
  height: 60px;
  border: 4px solid rgba(201, 162, 39, 0.3);
  border-top: 4px solid #e8c252;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  box-shadow: 0 0 20px rgba(201, 162, 39, 0.4);
}

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

/* Redeem modal - Lighter modal */
#redeemModal {
  position: fixed;
  inset: 0;
  background: rgba(20, 17, 14, 0.8);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
  padding: 16px;
  backdrop-filter: blur(8px);
}

.redeem-card {
  background: linear-gradient(145deg, #3d3228 0%, #2a231c 100%);
  color: #f5f0e8;
  border-radius: 20px;
  padding: 28px;
  width: min(380px, 100%);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 30px rgba(201, 162, 39, 0.15);
  border: 1px solid rgba(201, 162, 39, 0.4);
}

.redeem-card h3 {
  margin: 0 0 8px;
  color: #e8c252;
  font-size: 22px;
}

.redeem-card p {
  margin: 0 0 16px;
  color: #a99275;
}

.redeem-card input {
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(201, 162, 39, 0.4);
  background: rgba(28, 24, 20, 0.6);
  color: #f5f0e8;
  font-size: 16px;
  transition: all 0.3s ease;
}

.redeem-card input:focus {
  border-color: #e8c252;
  box-shadow: 0 0 15px rgba(201, 162, 39, 0.3);
}

.redeem-card input::placeholder {
  color: #8a7560;
}

.redeem-actions {
  display: flex;
  gap: 12px;
  margin-top: 18px;
}

.redeem-actions button {
  flex: 1;
  padding: 14px;
  border: none;
  border-radius: 12px;
  font-weight: 700;
  cursor: pointer;
  font-size: 15px;
  transition: all 0.3s ease;
}

.redeem-confirm {
  background: linear-gradient(135deg, #c9a227, #e8c252);
  color: #1a1510;
}

.redeem-confirm:hover {
  background: linear-gradient(135deg, #e8c252, #f5d76e);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(201, 162, 39, 0.5);
}

.redeem-cancel {
  background: rgba(138, 117, 96, 0.3);
  color: #a99275;
  border: 1px solid rgba(201, 162, 39, 0.3);
}

.redeem-cancel:hover {
  background: rgba(138, 117, 96, 0.5);
}

/* Wallet top styling */
.wallet-top img {
  width: 30px;
  height: 30px;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(201, 162, 39, 0.5));
}

#walletTopAmount {
  color: #e8c252;
  font-weight: 800;
  font-size: 16px;
  text-shadow: 0 0 10px rgba(201, 162, 39, 0.5);
}

/* ============================================
   RESPONSIVE DESIGN - Mobile First
   ============================================ */

/* Small phones */
@media (max-width: 360px) {
  .feature-item {
    width: 60px;
    height: 60px;
    padding: 8px 6px;
  }

  .feature-item img {
    width: 26px;
    height: 26px;
  }

  .feature-item span {
    font-size: 9px;
  }

  .game-item {
    padding: 12px 8px;
  }

  .game-item img {
    width: 56px;
    height: 56px;
  }

  .game-item p {
    font-size: 12px;
  }
}

/* Tablets and larger phones */
@media (min-width: 480px) {
  .slider {
    height: 220px;
  }

  .game-grid {
    gap: 18px;
    padding: 0 20px;
  }

  .game-item {
    padding: 20px 14px;
  }

  .game-item img {
    width: 80px;
    height: 80px;
  }

  .feature-item {
    width: 80px;
    height: 80px;
  }

  .feature-item img {
    width: 34px;
    height: 34px;
  }

  .feature-item span {
    font-size: 11px;
  }
}

/* Tablets */
@media (min-width: 768px) {
  body {
    padding-bottom: 100px;
  }

  .slider {
    height: 280px;
  }

  .game-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 24px;
  }

  .features {
    max-width: 600px;
    margin: 0 auto 20px;
    padding: 16px 24px;
  }

  .feature-item {
    width: 90px;
    height: 90px;
  }

  .footer {
    padding: 50px 40px;
  }

  .bottom-nav {
    padding: 12px 0;
  }

  .nav-btn {
    width: 80px;
    font-size: 12px;
  }

  .nav-btn img {
    width: 28px;
    height: 28px;
  }
}

/* Desktop */
@media (min-width: 1024px) {
  .slider {
    height: 320px;
    max-width: 900px;
  }

  .game-grid {
    grid-template-columns: repeat(4, 1fr);
    max-width: 1100px;
  }

  .game-item:hover {
    transform: translateY(-6px) scale(1.03);
  }

  .features {
    max-width: 700px;
  }

  .bottom-nav {
    max-width: 800px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 20px 20px 0 0;
    border-left: 1px solid rgba(201, 162, 39, 0.4);
    border-right: 1px solid rgba(201, 162, 39, 0.4);
  }
}
