/* ==========================================================================
   KEYSHU VOUCHER PAGE - PREMIUM STYLES
   ========================================================================== */

.voucher-page-body {
  background-color: #f8fafc;
  font-family: 'Quicksand', sans-serif;
  color: #334155;
  margin: 0;
  padding: 0;
}

.voucher-main-container {
  max-width: 1200px;
  margin: 0 auto 80px;
  padding: 0 20px;
}

/* 1. Header Hero Banner */
.voucher-hero-banner {
  background: linear-gradient(135deg, #03B0B1, #028e90);
  border-radius: 24px;
  padding: 60px 40px;
  text-align: center;
  color: #ffffff;
  margin: 40px 0 50px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(3, 176, 177, 0.15);
}

.voucher-hero-banner::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -30%;
  width: 100%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 70%);
  transform: rotate(-30deg);
}

.voucher-hero-banner h1 {
  font-size: 36px;
  font-weight: 800;
  margin: 0 0 15px;
  letter-spacing: -0.5px;
}

.voucher-hero-banner p {
  font-size: 16px;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
  opacity: 0.95;
}

/* 2. Voucher Filters */
.voucher-filters-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 40px;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 20px;
}

.voucher-filters {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none; /* Hide scrollbar Firefox */
}

.voucher-filters::-webkit-scrollbar {
  display: none; /* Hide scrollbar Chrome/Safari */
}

.filter-voucher-btn {
  background-color: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: 99px;
  padding: 10px 24px;
  font-family: 'Quicksand', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #64748b;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.3s ease;
}

.filter-voucher-btn:hover {
  border-color: #03B0B1;
  color: #03B0B1;
  background-color: rgba(3, 176, 177, 0.02);
}

.filter-voucher-btn.active {
  background-color: #03B0B1;
  border-color: #03B0B1;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(3, 176, 177, 0.2);
}

/* 3. Voucher Cards Grid */
.vouchers-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-bottom: 60px;
}

/* Ticket shaped Card */
.voucher-card {
  display: flex;
  background-color: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.03);
  border: 1px solid #f1f5f9;
  position: relative;
  height: 180px;
  transition: all 0.3s ease;
}

.voucher-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
}

/* Left part (value display) */
.voucher-card-left {
  width: 140px;
  background: linear-gradient(135deg, #03B0B1, #028e90);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  text-align: center;
  position: relative;
  flex-shrink: 0;
}

/* Red accent style left part */
.voucher-card.red-voucher .voucher-card-left {
  background: linear-gradient(135deg, #e53935, #d32f2f);
}

/* Gold premium style left part */
.voucher-card.gold-voucher .voucher-card-left {
  background: linear-gradient(135deg, #f59e0b, #d97706);
}

.voucher-val {
  font-size: 32px;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 6px;
}

.voucher-val span {
  font-size: 18px;
  font-weight: 600;
}

.voucher-type-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  background-color: rgba(255, 255, 255, 0.2);
  padding: 3px 8px;
  border-radius: 99px;
}

/* Semi-circular coupon punches and division dashed line */
.voucher-divider-line {
  position: relative;
  width: 0;
  border-left: 2px dashed #e2e8f0;
  height: 100%;
  z-index: 2;
}

.voucher-divider-line::before, .voucher-divider-line::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  background-color: #f8fafc;
  border-radius: 50%;
  left: -9px;
  z-index: 3;
  box-shadow: inset 0 0 0 1px #f1f5f9;
}

.voucher-divider-line::before {
  top: -8px;
}

.voucher-divider-line::after {
  bottom: -8px;
}

/* Right part (details) */
.voucher-card-right {
  flex: 1;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.voucher-info-top {
  margin-bottom: 12px;
}

.voucher-title {
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 6px;
  line-height: 1.4;
}

.voucher-desc {
  font-size: 13px;
  color: #64748b;
  margin: 0;
  line-height: 1.5;
}

.voucher-info-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 15px;
}

.voucher-meta {
  flex: 1;
}

.voucher-expiry {
  font-size: 12px;
  color: #94a3b8;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 8px;
}

.voucher-expiry i {
  font-size: 11px;
}

/* Simple usage progress bar */
.voucher-progress-container {
  width: 100%;
  max-width: 150px;
}

.voucher-progress-text {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: #64748b;
  font-weight: 600;
  margin-bottom: 4px;
}

.voucher-progress-bar {
  height: 4px;
  background-color: #e2e8f0;
  border-radius: 99px;
  overflow: hidden;
}

.voucher-progress-fill {
  height: 100%;
  background-color: #03B0B1;
  border-radius: 99px;
}

.voucher-card.red-voucher .voucher-progress-fill {
  background-color: #e53935;
}

.voucher-card.gold-voucher .voucher-progress-fill {
  background-color: #f59e0b;
}

/* Copy Code Button */
.copy-voucher-btn {
  font-family: 'Quicksand', sans-serif;
  font-size: 12px;
  font-weight: 800;
  color: #ffffff;
  background-color: #0f172a;
  border: none;
  border-radius: 8px;
  padding: 10px 18px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  letter-spacing: 0.5px;
}

.copy-voucher-btn:hover {
  background-color: #03B0B1;
  transform: scale(1.03);
}

.voucher-card.red-voucher .copy-voucher-btn:hover {
  background-color: #e53935;
}

.voucher-card.gold-voucher .copy-voucher-btn:hover {
  background-color: #f59e0b;
}

.copy-voucher-btn.copied {
  background-color: #10b981 !important;
  color: #ffffff !important;
}

/* 4. Voucher Guide / How to Use */
.voucher-guide-section {
  background-color: #ffffff;
  border-radius: 24px;
  padding: 45px 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
  border: 1px solid #f1f5f9;
  text-align: center;
  margin-bottom: 40px;
}

.voucher-guide-title {
  font-size: 24px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 40px;
}

.voucher-guide-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  position: relative;
}

.voucher-step-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

/* Connection arrow for desktop */
.voucher-step-card:not(:last-child)::after {
  content: "\f054";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  top: 30px;
  right: -15px;
  color: #cbd5e1;
  font-size: 18px;
}

.step-icon-wrap {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background-color: #e6f7f7;
  color: #03B0B1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 20px;
  box-shadow: 0 4px 10px rgba(3, 176, 177, 0.1);
}

.voucher-step-card:nth-child(2) .step-icon-wrap {
  background-color: #fee2e2;
  color: #e53935;
  box-shadow: 0 4px 10px rgba(229, 57, 53, 0.1);
}

.voucher-step-card:nth-child(3) .step-icon-wrap {
  background-color: #fef3c7;
  color: #f59e0b;
  box-shadow: 0 4px 10px rgba(245, 158, 11, 0.1);
}

.voucher-step-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 10px;
}

.voucher-step-card p {
  font-size: 13px;
  line-height: 1.6;
  color: #64748b;
  margin: 0;
  max-width: 250px;
}

/* Toast Notifications */
.voucher-toast-container {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.voucher-toast {
  background-color: #0f172a;
  color: #ffffff;
  padding: 14px 24px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  gap: 10px;
  animation: slideInToast 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards, fadeOutToast 0.3s 2.5s ease-in forwards;
  pointer-events: auto;
}

@keyframes slideInToast {
  from {
    transform: translateX(100%) translateY(0);
    opacity: 0;
  }
  to {
    transform: translateX(0) translateY(0);
    opacity: 1;
  }
}

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

/* ==========================================================================
   RESPONSIVE DESIGN (BREAKPOINTS)
   ========================================================================== */

@media (max-width: 991px) {
  .vouchers-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .voucher-hero-banner {
    padding: 45px 25px;
    margin: 30px 0;
  }
  
  .voucher-hero-banner h1 {
    font-size: 28px;
  }
}

@media (max-width: 768px) {
  .voucher-guide-steps {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .voucher-step-card:not(:last-child)::after {
    content: "\f078"; /* Down arrow on mobile */
    top: auto;
    bottom: -30px;
    right: auto;
    left: 50%;
    transform: translateX(-50%);
  }
}

@media (max-width: 480px) {
  .voucher-card {
    flex-direction: column;
    height: auto;
  }
  
  .voucher-card-left {
    width: 100%;
    padding: 15px;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
  
  .voucher-val {
    font-size: 24px;
    margin-bottom: 0;
  }
  
  .voucher-divider-line {
    border-left: none;
    border-top: 2px dashed #e2e8f0;
    height: 0;
    width: 100%;
  }
  
  .voucher-divider-line::before, .voucher-divider-line::after {
    top: -9px;
    left: auto;
  }
  
  .voucher-divider-line::before {
    left: -8px;
  }
  
  .voucher-divider-line::after {
    right: -8px;
  }
  
  .voucher-card-right {
    padding: 15px;
  }
  
  .voucher-info-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }
  
  .copy-voucher-btn {
    width: 100%;
    text-align: center;
  }
  
  .voucher-filters-wrap {
    margin-bottom: 25px;
  }
  
  .filter-voucher-btn {
    padding: 8px 16px;
    font-size: 13px;
  }
}
