/* ===========================
   Reset & Base
=========================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
}

body {
  background: linear-gradient(180deg, #e0e4ff 0%, #d4d8ff 100%);
  font-size: 16px;
  line-height: 1.6;
  position: relative;
  color: #222;
}

body::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 20% 30%, rgba(58,12,163,0.05), transparent 60%),
              radial-gradient(circle at 80% 70%, rgba(100,143,227,0.05), transparent 60%);
  pointer-events: none;
  z-index: 0;
}

/* ===========================
   Header
=========================== */
.header {
  /* Updated to match requested palette: #3A0CA3, #6591E3, #4865C2 */
  background: linear-gradient(135deg, #3A0CA3 0%, #6591E3 50%, #4865C2 100%);
  color: #fff;
  padding: 2rem 1rem;
  text-align: center;
  border-bottom-left-radius: 20px;
  border-bottom-right-radius: 20px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
  position: relative;
  z-index: 1;
}

.header h1 {
  font-size: 2rem;
  font-weight: 700;
}

.header p {
  font-size: 1rem;
  margin-top: 6px;
  opacity: 0.95;
}

.header::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: #FFD700;
  margin: 10px auto 0;
  border-radius: 2px;
}

/* Header row and drawer */
.header-row { display:flex; align-items:center; gap:12px; justify-content:flex-start; max-width:1100px; margin:0 auto; }
.menu-btn { background: transparent; color: #fff; border: none; font-size: 1.6rem; padding: 8px; cursor: pointer; border-radius:8px; }
.menu-btn:focus { outline: 2px solid rgba(255,255,255,0.2); }
/* place the menu button on the right side of the header */
.header { position: relative; }
.menu-btn { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); z-index: 220; }
.brand { display:flex; flex-direction:column; }
.brand h1 { font-size:1.25rem; margin:0; }
.brand .tag { font-size:0.85rem; margin-top:4px; opacity:0.95; }

/* Site logo in header */
.site-logo { width:46px; height:46px; object-fit:contain; border-radius:8px; margin-left:8px; }

/* Footer logo */
.footer-logo { width:120px; height:auto; display:block; margin: 8px auto 10px; }

.nav-drawer {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(0.95);
  width: 92%;
  max-width: 380px;
  height: auto;
  max-height: 80vh;
  background: linear-gradient(180deg,#fff,#f8faff);
  box-shadow: 0 12px 40px rgba(0,0,0,0.18);
  border-radius: 12px;
  transition: opacity 0.22s ease, transform 0.22s ease;
  opacity: 0;
  z-index: 300;
  padding: 18px;
  overflow: auto;
}
.nav-drawer.open { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.close-drawer { background:transparent; border:none; font-size:1.2rem; cursor:pointer; }
.drawer-list { list-style:none; margin-top:10px; padding:6px 6px 18px 6px; display:flex; flex-direction:column; gap:10px; }
.drawer-list a { text-decoration:none; color:#1a237e; font-weight:700; padding:12px 14px; border-radius:8px; display:block; }
.drawer-list a:hover { background: rgba(58,12,163,0.06); }

/* overlay when drawer open */
.drawer-overlay { position:fixed; top:0; left:0; right:0; bottom:0; background:rgba(0,0,0,0.35); display:none; z-index:150; }
.drawer-overlay.show { display:block; }

/* ===========================
   Top Banner
=========================== */
.top-banner {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 15px 0 25px;
  padding: 10px 0;
}

.top-banner img {
  width: 100%;
  max-width: 1000px;
  height: 200px;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: 0 8px 28px rgba(0,0,0,0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.top-banner img:hover {
  transform: scale(1.02);
  box-shadow: 0 12px 32px rgba(0,0,0,0.25);
}


/* ===========================
   Moving Scroll Banner (13.jpg)
=========================== */
.scroll-banner {
  width: 100%;
  overflow: hidden;
  display: flex;
  justify-content: center;
  padding: 10px 0 18px;
}

.scroll-track {
  display: flex;
  gap: 18px;
  align-items: center;
  /* width large enough to allow smooth continuous scroll */
  animation: scroll-left 18s linear infinite;
}

.scroll-item {
  height: 140px;
  width: auto;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.scroll-banner:hover .scroll-track {
  animation-play-state: paused;
}

@keyframes scroll-left {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@media (max-width: 700px) {
  .scroll-item { height: 110px; }
}

/* ===========================
   Search & Filter
=========================== */
.search-filter-container {
  width: 90%;
  max-width: 1000px;
  margin: 20px auto 25px;
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

#searchInput {
  flex: 1;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid #ccc;
  font-size: 1rem;
  background: #fff;
  transition: all 0.3s ease;
}

#searchInput:focus {
  border-color: #3A0CA3;
  outline: none;
  box-shadow: 0 0 10px rgba(58,12,163,0.25);
}

#filterSelect {
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid #ccc;
  font-size: 1rem;
  cursor: pointer;
}

#filterSelect:focus {
  border-color: #3A0CA3;
  outline: none;
  box-shadow: 0 0 10px rgba(58,12,163,0.25);
}

/* ===========================
   Section Titles
=========================== */
.section-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: #3A0CA3;
  margin: 25px 0 15px;
  padding-left: 10px;
}

/* ===========================
   Offers Section
=========================== */
.offers-section {
  width: 90%;
  max-width: 1000px;
  margin: 25px auto 60px;
}

.offers-container {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.loading-text {
  text-align: center;
  font-size: 1rem;
  color: #555;
  padding: 15px 0;
}

/* ===========================
   Offer Item
=========================== */
.offer-item {
  background: linear-gradient(145deg, #eef0ff, #dde0ff);
  border-radius: 16px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  transition: all 0.3s ease;
  cursor: pointer;
  height: auto;
  min-width: 100%;
}

/* allow absolute positioning of claim button when centered */
.offer-item {
  position: relative;
}

.offer-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.18);
}

.offer-left {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
  min-width: 0;
}

.offer-left img {
  width: 55px;
  height: 55px;
  border-radius: 12px;
  object-fit: cover;
}

/* ===========================
   Offer Info
=========================== */
.offer-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;
  min-width: 0;
}

.offer-info h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: #3A0CA3;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.offer-info p {
  font-size: 0.95rem;
  color: #1A237E;
  line-height: 1.2;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ===========================
   Reward Tag & Claim Button
=========================== */
.reward-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 60px;       /* readable minimum on very small screens */
  max-width: 40%;        /* allow it to grow but not overflow large cards */
  height: 32px;
  padding: 0 8px;       /* let content breathe instead of fixed width */
  border-radius: 16px;
  font-weight: 700;
  font-size: clamp(0.7rem, 1.6vw, 0.95rem);
  background: linear-gradient(135deg, #c3a5ff, #836fff);
  color: #fff;
  flex-shrink: 0;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.claim-btn {
  background: #4865C2;
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: 16px;
  font-weight: 900;
  font-size: 0.85rem;
  flex-shrink: 0;
  white-space: nowrap;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 2px 6px rgba(0,0,0,0.12);
}

.claim-btn:hover {
  background: #3A0CA3;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Heavy watermark behind claim button label */
.claim-btn {
  position: relative; /* for pseudo-element positioning */
  overflow: visible;
}
.claim-btn::before {
  /* watermark removed: keep pseudo-element but hide content so the rupee watermark no longer displays */
  content: "";
  display: none;
}
.claim-btn .claim-label { position: relative; z-index: 1; }

/* ===========================
   Footer
=========================== */
.footer {
  text-align: center;
  padding: 18px 0 8px;
  font-size: 1rem;
  color: #fff;
  border-top: 1px solid rgba(255,255,255,0.04);
  box-shadow: 0 -6px 20px rgba(0,0,0,0.25);
  background: linear-gradient(180deg, #4865C2 0%, #6591E3 50%, #3A0CA3 100%);
}

.footer .footer-top { padding: 18px 12px 8px; }
.important-notice { max-width: 1100px; margin: 18px auto; padding: 14px; border-radius: 10px; border: 2px solid #d9534f; background: #fff; }
.important-notice .notice-inner { display:flex; gap:12px; align-items:flex-start; }
.notice-icon { font-size: 1.6rem; background: linear-gradient(180deg,#fff7e6,#fff); padding:8px; border-radius:8px; }
.notice-content h3 { margin:0 0 6px; color:#d9534f; font-size:1.05rem; }
.notice-content p { margin:0; color:#222; line-height:1.4; }
.important-notice a { color:#1a237e; font-weight:700; text-decoration:underline; }
.footer-buttons { display:flex; gap:10px; flex-wrap:wrap; justify-content:center; align-items:center; }
.f-btn { background: transparent; border: 1px solid rgba(255,255,255,0.14); color: #fff; padding: 8px 12px; border-radius: 8px; text-decoration:none; font-weight:700; }
.f-btn:hover { background: rgba(255,255,255,0.04); }
.f-btn svg { vertical-align: middle; margin-right: 8px; }
.footer-bottom { padding: 12px 8px 22px; border-top: 1px solid rgba(255,255,255,0.03); margin-top: 8px; }
.copyright { color: rgba(255,255,255,0.85); font-weight:600; }

/* Compact footer buttons for small screens */
@media (max-width: 480px) {
  .f-btn { padding: 8px 10px; font-size: 0.9rem; }
  .site-logo { width:40px; height:40px; }
  .footer-logo { width:100px; }
}

/* ===========================
   Offer detail page
   Styles for `offer.html` (offer-container and Start Offer button)
=========================== */
.offer-container {
  width: 90%;
  max-width: 1000px;
  margin: 26px auto 60px;
  background: linear-gradient(180deg, rgba(255,255,255,0.65), rgba(230,235,255,0.6));
  padding: 34px 28px 48px;
  border-radius: 18px;
  box-shadow: 0 20px 60px rgba(58,12,163,0.08);
}

.offer-container h2 {
  font-size: 1.6rem;
  color: #1a237e;
  margin-bottom: 8px;
}

.offer-container p {
  color: #24325f;
  line-height: 1.45;
  margin-bottom: 12px;
}

.steps {
  margin: 10px 0 18px 18px;
  color: #1a237e;
}

.download-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 26px auto 0;
  padding: 16px 40px;
  background: linear-gradient(135deg, #5B72E8 0%, #3A0CA3 100%);
  color: #fff;
  border: none;
  border-radius: 999px;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.2px;
  box-shadow: 0 14px 36px rgba(58,12,163,0.22), inset 0 -2px 6px rgba(0,0,0,0.06);
  cursor: pointer;
  transition: transform 0.14s ease, box-shadow 0.14s ease, filter 0.14s ease;
  text-align: center;
}

.download-btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 14px 36px rgba(58,12,163,0.22);
}

.download-btn:active {
  transform: translateY(0) scale(0.995);
  filter: brightness(0.98);
}

.download-btn:focus {
  outline: none;
  box-shadow: 0 0 0 4px rgba(74,59,195,0.12), 0 10px 30px rgba(58,12,163,0.18);
}

/* icon + label styles */
.download-btn .btn-label { position: relative; top: 1px; }
.download-btn .btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255,255,255,0.15), rgba(255,255,255,0.05));
  box-shadow: inset 0 2px 6px rgba(0,0,0,0.08), 0 3px 8px rgba(58,12,163,0.25);
}
.download-btn .btn-icon svg { color: #fff; }

/* gentle pulse glow behind the button */
.download-btn::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: calc(100% + 36px);
  height: calc(100% + 36px);
  border-radius: 999px;
  background: radial-gradient(circle at center, rgba(58,12,163,0.16), transparent 42%);
  z-index: -1;
  filter: blur(8px);
  opacity: 0.9;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.download-btn:hover::after { transform: translate(-50%, -50%) scale(1.04); opacity: 1; }

/* subtle breathing animation */
@keyframes pulseGlow {
  0% { transform: translate(-50%, -50%) scale(0.98); opacity: 0.85; }
  50% { transform: translate(-50%, -50%) scale(1.06); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(0.98); opacity: 0.85; }
}
.download-btn { position: relative; }
.download-btn::after { animation: pulseGlow 3.6s ease-in-out infinite; }

@media (max-width: 700px) {
  .offer-container { padding: 18px; }
  .download-btn { padding: 10px 20px; font-size: 0.95rem; }
}

/* ===========================
   Floating Icons
=========================== */
.floating-icons {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  z-index: 100;
}

.floating-icon img {
  width: 48px;
  height: 48px;
  transition: transform 0.3s ease;
}

.floating-icon img:hover {
  transform: scale(1.1);
}

/* ===========================
   Responsive
=========================== */
@media (max-width: 700px) {
  .search-filter-container {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .offer-item {
    flex-direction: column;
    align-items: stretch;
    padding: 10px 12px;
  }

  .offer-left img {
    width: 60px;
    height: 60px;
  }

  .offer-info h3 {
    font-size: 0.95rem;
  }

  .offer-info p {
    font-size: 0.75rem;
  }

  .reward-tag {
    min-width: 56px;
    max-width: 100%;
    height: 28px;
    padding: 0 8px;
    font-size: 0.75rem;
  }

  .claim-btn {
    padding: 6px 12px;
    font-size: 0.75rem;
  }

  .top-banner img {
    width: 95%;
    height: 160px;
  }
}
