/**
 * Editorial Hub - Front-end Component Styles
 */

/* Deals Grid */
.editorial-deals-grid {
  display: grid;
  gap: 2rem;
  margin: 2rem 0;
}
.editorial-cols-3 {
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}
.editorial-cols-2 {
  grid-template-columns: repeat(auto-fill, minmax(420px, 1fr));
}
.editorial-cols-4 {
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

.editorial-deal-card {
  position: relative;
  background: #ffffff;
  border: 1px solid #e5e5ea;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  overflow: hidden;
}
.editorial-deal-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.06);
}
.editorial-deal-card.is-expired {
  opacity: 0.65;
  filter: grayscale(0.5);
}

.deal-card-badge-row {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  gap: 8px;
  z-index: 2;
}
.deal-badge {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 2px;
}
.deal-badge.discount {
  background: #000000;
  color: #ffffff;
}
.deal-badge.status-verified {
  background: #06B6D4;
  color: #ffffff;
}
.deal-badge.status-exclusive {
  background: #8B5CF6;
  color: #ffffff;
}
.deal-badge.status-unverified {
  background: #71717A;
  color: #ffffff;
}

.deal-thumb-link {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #f4f4f2;
}
.deal-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.editorial-deal-card:hover .deal-img {
  transform: scale(1.04);
}
.deal-placeholder-img {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #a1a1aa;
}

.deal-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.deal-store-name {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #71717a;
  margin-bottom: 0.4rem;
}
.deal-title {
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.35;
  margin: 0 0 1rem;
}
.deal-title a {
  color: inherit;
  text-decoration: none;
}
.deal-title a:hover {
  text-decoration: underline;
}

.deal-pricing {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin-top: auto;
  margin-bottom: 1.25rem;
}
.sale-price {
  font-size: 1.35rem;
  font-weight: 700;
  color: #0a0a0a;
}
.orig-price {
  font-size: 0.95rem;
  color: #a1a1aa;
  text-decoration: line-through;
}

.deal-action-row {
  margin-top: auto;
}
.btn-coupon-copy {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f4f4f5;
  border: 1px dashed #18181b;
  padding: 0.75rem 1rem;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.2s ease;
}
.btn-coupon-copy:hover {
  background: #18181b;
  color: #ffffff;
}
.btn-coupon-copy .btn-hint {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.8;
}
.btn-get-deal {
  display: block;
  text-align: center;
  background: #0a0a0a;
  color: #ffffff;
  padding: 0.75rem 1rem;
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  transition: background 0.2s ease;
}
.btn-get-deal:hover {
  background: #27272a;
}

/* Magazine Grid */
.editorial-magazine-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2.5rem;
  margin: 2.5rem 0;
}
.magazine-issue-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
}
.magazine-cover-wrap {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #18181b;
  display: block;
}
.magazine-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.magazine-issue-card:hover .magazine-cover-img {
  transform: scale(1.03);
}
.magazine-badge {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(8px);
  color: #ffffff;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 10px;
}
.magazine-meta {
  padding: 1.5rem 0;
}
.magazine-date {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #71717a;
}
.magazine-title {
  font-size: 1.4rem;
  font-weight: 600;
  line-height: 1.3;
  margin: 0.5rem 0 0.75rem;
}
.magazine-title a {
  color: inherit;
  text-decoration: none;
}
.magazine-excerpt {
  font-size: 0.95rem;
  color: #52525b;
  line-height: 1.6;
  margin-bottom: 1.25rem;
}
.magazine-actions {
  display: flex;
  gap: 1rem;
}
.btn-read-issue,
.btn-download-pdf {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  text-decoration: none;
  padding: 0.6rem 1.2rem;
  border: 1px solid #0a0a0a;
  transition: all 0.2s ease;
}
.btn-read-issue {
  background: #0a0a0a;
  color: #ffffff;
}
.btn-read-issue:hover {
  background: #27272a;
}
.btn-download-pdf {
  background: transparent;
  color: #0a0a0a;
}
.btn-download-pdf:hover {
  background: #f4f4f5;
}

/* Facts Cards */
.editorial-facts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.75rem;
  margin: 2rem 0;
}
.editorial-fact-card {
  background: #0d0c18;
  color: #f8fafc;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 2rem;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.editorial-fact-card:hover {
  transform: translateY(-4px);
  border-color: #8b5cf6;
}
.fact-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 1rem;
}
.fact-stat {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #06b6d4;
  line-height: 1;
}
.fact-verified-pill {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #a78bfa;
}
.fact-title {
  font-size: 1.15rem;
  font-weight: 500;
  line-height: 1.45;
  color: #ffffff;
  margin: 0 0 1rem;
}
.fact-excerpt {
  font-size: 0.9rem;
  color: #94a3b8;
  line-height: 1.6;
  margin-bottom: 1.25rem;
}
.fact-source-citation {
  font-size: 0.75rem;
  color: #64748b;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.fact-share-btn {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  color: #a78bfa;
  text-decoration: none;
}
.fact-share-btn:hover {
  text-decoration: underline;
  color: #c4b5fd;
}

/* Reviews Grid */
.editorial-reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}
.editorial-review-card {
  border: 1px solid #e5e5ea;
  background: #ffffff;
}
.review-thumb-wrap {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #f4f4f2;
}
.review-award-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: #0a0a0a;
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
}
.review-card-info {
  padding: 1.5rem;
}
.review-score-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}
.review-score-pill {
  font-weight: 700;
  color: #0a0a0a;
  font-size: 0.95rem;
}
.review-price {
  font-size: 0.9rem;
  color: #71717a;
}
.review-title {
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.35;
  margin: 0 0 0.75rem;
}
.review-title a {
  color: inherit;
  text-decoration: none;
}
.review-excerpt {
  font-size: 0.9rem;
  color: #52525b;
  line-height: 1.6;
  margin-bottom: 1.25rem;
}
.btn-read-review {
  display: inline-block;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  color: #0a0a0a;
  text-decoration: none;
}
.btn-read-review:hover {
  text-decoration: underline;
}

/* Newsletter Box */
.editorial-newsletter-box {
  background: #0a0a0a;
  color: #ffffff;
  padding: 4rem 2rem;
  text-align: center;
  margin: 3rem 0;
}
.newsletter-content {
  max-width: 620px;
  margin: 0 auto;
}
.newsletter-eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #a1a1aa;
  display: block;
  margin-bottom: 1rem;
}
.newsletter-headline {
  font-size: 2.2rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
  color: #ffffff;
}
.newsletter-description {
  font-size: 1rem;
  color: #d4d4d8;
  line-height: 1.6;
  margin-bottom: 2rem;
}
.newsletter-input-group {
  display: flex;
  max-width: 480px;
  margin: 0 auto;
  border-bottom: 1px solid #ffffff;
}
.newsletter-email-input {
  flex-grow: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #ffffff;
  padding: 0.75rem 0.5rem;
  font-size: 1rem;
  font-family: inherit;
}
.newsletter-email-input::placeholder {
  color: #71717a;
}
.newsletter-submit-btn {
  background: #ffffff;
  color: #000000;
  border: none;
  padding: 0.75rem 1.5rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: opacity 0.2s ease;
}
.newsletter-submit-btn:hover {
  opacity: 0.9;
}
.newsletter-feedback-msg {
  margin-top: 1rem;
  font-size: 0.85rem;
}
.newsletter-feedback-msg.success {
  color: #4ade80;
}
.newsletter-feedback-msg.error {
  color: #f87171;
}
.newsletter-privacy-note {
  font-size: 0.75rem;
  color: #71717a;
  margin-top: 1.5rem;
}

/* Saved Articles */
.editorial-saved-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
.saved-item-card {
  border: 1px solid #e5e5ea;
  padding: 1rem;
  background: #ffffff;
}
.saved-item-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
.saved-item-card h4 {
  font-size: 1rem;
  margin: 0.75rem 0 1rem;
}
.saved-item-card a {
  text-decoration: none;
  color: inherit;
}
.btn-remove-saved {
  background: transparent;
  border: 1px solid #d1d1d6;
  font-size: 0.75rem;
  padding: 4px 10px;
  cursor: pointer;
}
.btn-remove-saved:hover {
  background: #f4f4f5;
  color: #dc2626;
}
