/* ── FashionHaul Coupons v2 – Frontend Styles ── */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700;800&display=swap');

:root {
  --fhc-purple: #6B21D6;
  --fhc-purple-dark: #5418b0;
  --fhc-purple-light: #f3eeff;
  --fhc-gray: #f7f7f8;
  --fhc-border: #e8e8ec;
  --fhc-text: #1a1a2e;
  --fhc-muted: #6b7280;
  --fhc-green: #16a34a;
  --fhc-radius: 14px;
  --fhc-shadow: 0 2px 16px rgba(107,33,214,0.07);
}

.fhc-coupons-wrap {
  font-family: 'DM Sans', sans-serif;
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 860px;
  margin: 0 auto;
}

.fhc-single-heading {
  font-family: 'DM Sans', sans-serif;
  color: var(--fhc-text);
  margin-bottom: 12px;
}

/* ── COUPON CARD ── */
.fhc-coupon-card {
  background: #fff;
  border: 1.5px solid var(--fhc-border);
  border-radius: var(--fhc-radius);
  padding: 22px 24px;
  display: grid;
  grid-template-columns: 90px 1fr 170px;
  grid-template-rows: auto auto;
  gap: 0 20px;
  align-items: center;
  box-shadow: var(--fhc-shadow);
  position: relative;
  transition: box-shadow 0.2s, border-color 0.2s;
  cursor: pointer;
}

.fhc-coupon-card:hover {
  border-color: var(--fhc-purple);
  box-shadow: 0 4px 24px rgba(107,33,214,0.13);
}

.fhc-coupon-card.fhc-featured {
  border-color: var(--fhc-purple);
  background: linear-gradient(135deg, #fff 80%, var(--fhc-purple-light));
}

.fhc-coupon-card.fhc-popular {
  border-left: 4px solid var(--fhc-purple);
}

.fhc-coupon-card.fhc-expired {
  opacity: 0.55;
  filter: grayscale(0.4);
  cursor: default;
}

.fhc-featured-badge {
  position: absolute;
  top: -1px;
  left: 18px;
  background: var(--fhc-purple);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 0 0 8px 8px;
  letter-spacing: 0.03em;
}

/* LEFT */
.fhc-card-left {
  grid-column: 1;
  grid-row: 1 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fhc-discount {
  font-size: 24px;
  font-weight: 800;
  color: var(--fhc-purple);
  line-height: 1.15;
  text-align: center;
  letter-spacing: -0.5px;
}

/* MIDDLE */
.fhc-card-middle {
  grid-column: 2;
  grid-row: 1;
}

.fhc-type-badge {
  display: inline-block;
  background: var(--fhc-gray);
  border: 1px solid var(--fhc-border);
  color: var(--fhc-muted);
  font-size: 11px;
  font-weight: 600;
  padding: 2px 9px;
  border-radius: 6px;
  margin-bottom: 6px;
  letter-spacing: 0.04em;
}

.fhc-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--fhc-text);
  margin: 0 0 8px;
  line-height: 1.3;
}

.fhc-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.fhc-meta-tag {
  background: var(--fhc-gray);
  border: 1px solid var(--fhc-border);
  color: var(--fhc-muted);
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 20px;
  font-weight: 500;
}

.fhc-meta-tag.fhc-verified {
  background: #f0fdf4;
  border-color: #bbf7d0;
  color: var(--fhc-green);
}

/* RIGHT */
.fhc-card-right {
  grid-column: 3;
  grid-row: 1 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fhc-show-code-btn {
  background: var(--fhc-purple);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 13px 26px;
  font-size: 15px;
  font-weight: 700;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
  transition: background 0.18s, transform 0.12s;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  width: 100%;
  text-align: center;
}

.fhc-show-code-btn::after {
  content: '';
  position: absolute;
  right: -12px;
  top: 0;
  bottom: 0;
  width: 28px;
  background: rgba(255,255,255,0.15);
  transform: skewX(-10deg);
}

.fhc-show-code-btn:hover {
  background: var(--fhc-purple-dark);
  transform: translateY(-1px);
}

.fhc-show-code-btn.fhc-btn-expired {
  background: #9ca3af;
  cursor: not-allowed;
}
.fhc-show-code-btn.fhc-btn-expired:hover { transform: none; }

/* FOOTER */
.fhc-card-footer {
  grid-column: 2;
  grid-row: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
  gap: 10px;
}

.fhc-description {
  font-size: 13px;
  color: var(--fhc-muted);
  margin: 0;
  line-height: 1.5;
}

.fhc-see-details {
  font-size: 13px;
  color: var(--fhc-text);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  margin-left: auto;
}
.fhc-see-details:hover { color: var(--fhc-purple); }

/* ── OVERLAY & POPUP ── */
.fhc-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 99999;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(3px);
}

.fhc-overlay.fhc-open {
  display: flex;
  animation: fhcFadeIn 0.2s ease;
}

@keyframes fhcFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.fhc-popup {
  background: #fff;
  border-radius: 20px;
  padding: 44px 36px 36px;
  max-width: 460px;
  width: 92%;
  text-align: center;
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,0.18);
  animation: fhcSlideUp 0.25s cubic-bezier(0.34,1.56,0.64,1);
}

@keyframes fhcSlideUp {
  from { transform: translateY(30px) scale(0.96); opacity: 0; }
  to   { transform: translateY(0) scale(1);        opacity: 1; }
}

.fhc-close-btn {
  position: absolute;
  top: 14px;
  right: 18px;
  background: none;
  border: none;
  font-size: 26px;
  color: #9ca3af;
  cursor: pointer;
  line-height: 1;
  padding: 2px 6px;
  transition: color 0.15s;
}
.fhc-close-btn:hover { color: var(--fhc-text); }

.fhc-popup-logo-wrap {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 14px;
  background: #111;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fhc-popup-logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fhc-popup-logo-placeholder {
  color: #fff;
  font-size: 32px;
  font-weight: 800;
  font-family: 'DM Sans', sans-serif;
}

.fhc-popup-brand {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--fhc-muted);
  text-transform: uppercase;
  margin: 0 0 8px;
}

.fhc-popup-title {
  font-size: 21px;
  font-weight: 800;
  color: var(--fhc-text);
  margin: 0 0 22px;
  line-height: 1.3;
  font-family: 'DM Sans', sans-serif;
}

.fhc-code-box {
  display: flex;
  align-items: center;
  border: 2px dashed var(--fhc-border);
  border-radius: 50px;
  overflow: hidden;
  margin: 0 auto 14px;
  max-width: 340px;
  background: var(--fhc-gray);
}

.fhc-code-display {
  flex: 1;
  padding: 13px 20px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--fhc-text);
  font-family: 'DM Sans', sans-serif;
  text-align: left;
}

.fhc-copy-btn {
  background: var(--fhc-purple);
  color: #fff;
  border: none;
  padding: 13px 22px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
  border-radius: 50px;
  margin: 4px;
  transition: background 0.15s;
  flex-shrink: 0;
}
.fhc-copy-btn:hover    { background: var(--fhc-purple-dark); }
.fhc-copy-btn.copied   { background: var(--fhc-green); }

.fhc-popup-hint {
  font-size: 13px;
  color: var(--fhc-muted);
  margin: 0 0 6px;
}
.fhc-popup-hint a {
  color: var(--fhc-purple);
  font-weight: 600;
  text-decoration: none;
}
.fhc-popup-hint a:hover { text-decoration: underline; }

.fhc-popup-expiry {
  font-size: 13px;
  font-weight: 700;
  color: var(--fhc-text);
  margin: 0;
}

/* ── MOBILE ── */
@media (max-width: 620px) {
  .fhc-coupon-card {
    grid-template-columns: 68px 1fr;
    grid-template-rows: auto auto auto;
    padding: 16px 14px;
    gap: 0 12px;
  }
  .fhc-card-left   { grid-row: 1 / 3; }
  .fhc-card-middle { grid-column: 2; grid-row: 1; }
  .fhc-card-right  {
    grid-column: 1 / 3;
    grid-row: 3;
    margin-top: 12px;
  }
  .fhc-show-code-btn { width: 100%; }
  .fhc-card-footer   { grid-column: 1 / 3; }
  .fhc-discount      { font-size: 19px; }
  .fhc-title         { font-size: 14px; }
  .fhc-popup         { padding: 32px 18px 24px; }
  .fhc-popup-title   { font-size: 17px; }
  .fhc-code-display  { font-size: 14px; padding: 11px 14px; }
}


/* ── Device Visibility ── */
/* Mobile-only: sirf mobile pe dikhe, desktop pe hide */
@media (min-width: 769px) {
  .fhc-mobile-only {
    display: none !important;
  }
}
/* Desktop-only: sirf desktop pe dikhe, mobile pe hide */
@media (max-width: 768px) {
  .fhc-desktop-only {
    display: none !important;
  }
}
