/* DohoHub — Coupons / Promo Codes styles */
/* Shared by /coupons page and homepage widget */

.coupons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 18px;
  margin-top: 8px;
}

.coupon-card {
  background: var(--bg2, #161C28);
  border: 1px solid var(--border, rgba(255,255,255,0.06));
  border-radius: 12px;
  padding: 18px 20px 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color 0.2s, box-shadow 0.2s;
  position: relative;
}

.coupon-card:hover {
  border-color: var(--accent, #f5b301);
  box-shadow: 0 0 0 1px rgba(245,179,1,0.15), 0 4px 20px rgba(0,0,0,0.3);
}

.coupon-card.coupon-expired {
  opacity: 0.5;
  filter: grayscale(0.7);
}

.coupon-top {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.coupon-badge {
  display: inline-block;
  background: rgba(245,158,11,0.13);
  color: #fbbf24;
  border: 1px solid rgba(245,158,11,0.28);
  border-radius: 4px;
  padding: 2px 8px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.coupon-discount-badge {
  display: inline-block;
  background: rgba(16,185,129,0.13);
  color: #10b981;
  border: 1px solid rgba(16,185,129,0.28);
  border-radius: 4px;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 700;
}

.coupon-expiring {
  display: inline-block;
  background: rgba(239,68,68,0.13);
  color: #ef4444;
  border: 1px solid rgba(239,68,68,0.28);
  border-radius: 4px;
  padding: 2px 8px;
  font-size: 10px;
  font-weight: 600;
}

.coupon-body {
  flex: 1;
}

.coupon-title {
  font-weight: 600;
  color: var(--text, #e8edf5);
  font-size: 14px;
  line-height: 1.4;
  margin-bottom: 4px;
}

.coupon-desc {
  color: var(--text2, #8a96a8);
  font-size: 12px;
  line-height: 1.5;
}

.coupon-code-wrap {
  margin: 2px 0;
}

.coupon-code-copy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: var(--bg3, #212A3C);
  border: 1px solid var(--border2, rgba(255,255,255,0.13));
  border-radius: 8px;
  padding: 10px 14px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
  font-family: inherit;
  color: inherit;
  text-align: left;
}

.coupon-code-copy:hover {
  background: var(--bg4, #2C3850);
  border-color: var(--accent, #f5b301);
}

.coupon-code {
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 14px;
  font-weight: 700;
  color: var(--accent, #f5b301);
  letter-spacing: 0.05em;
}

.coupon-copy-btn {
  font-size: 12px;
  color: var(--text2, #8a96a8);
  font-weight: 500;
  transition: color 0.15s;
}

.coupon-code-copy:hover .coupon-copy-btn {
  color: var(--accent, #f5b301);
}

.coupon-copied {
  color: #10b981;
  font-weight: 600;
  font-size: 12px;
}

.coupon-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 4px;
}

.coupon-provider {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text2, #8a96a8);
  text-decoration: none;
}

.coupon-provider:hover {
  color: var(--text, #e8edf5);
}

.coupon-prov-logo {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  object-fit: contain;
}

.coupon-claim {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent, #f5b301);
  text-decoration: none;
  white-space: nowrap;
}

.coupon-claim:hover {
  text-decoration: underline;
}

.coupon-expiry {
  font-size: 10px;
  color: var(--text3, #5a6577);
  font-family: var(--font-mono, monospace);
}

.coupon-expired-label {
  color: var(--danger, #f43f5e);
}

/* ─── Homepage widget: 3 coupons inline ─── */
.coupons-inline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 44px; /* отступ до следующей секции (USER REVIEWS), как у других секций главной */
}

.coupons-inline .coupon-card {
  padding: 14px 16px 12px;
  gap: 10px;
}

.coupons-inline .coupon-code-copy {
  padding: 8px 12px;
}

.coupons-inline .coupon-code {
  font-size: 12px;
}

@media (max-width: 700px) {
  .coupons-grid {
    grid-template-columns: 1fr;
  }
  .coupons-inline {
    grid-template-columns: 1fr;
  }
}
