/*
 * shared-cards.css — Canonical card standard for iMoodsy
 * All content pages (status, shayari, quotes, wishes) must link this file.
 * Cards use class: s-card (dynamically generated) OR shayari-card (static HTML).
 * Both classes share identical visual styles via the rules below.
 *
 * FONTS: Loaded here — do NOT add separate Google Fonts <link> tags on pages.
 */

/* ── Single font source for entire site ── */
@import url('/imoodsy1/assets/css/shared-fonts.css');

:root {
  --shared-card-border: color-mix(in srgb, var(--cat, #6d5efc) 72%, #111827 28%);
  --shared-card-border-hover: color-mix(in srgb, var(--cat, #6d5efc) 82%, #111827 18%);
  --shared-card-shadow: color-mix(in srgb, var(--cat, #6d5efc) 10%, transparent);
  --shared-card-shadow-hover: color-mix(in srgb, var(--cat, #6d5efc) 16%, transparent);
}

/* ── Card container ── */
.s-card,
.shayari-card {
  background: var(--card, #fff);
  border: 1.5px solid var(--shared-card-border) !important;
  border-radius: 20px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  height: 100%;
  transition: all .35s;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 24px var(--shared-card-shadow), 0 0 0 1px rgba(17,24,39,.06) !important;
}

/* Top accent bar on hover */
.s-card::before,
.shayari-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--cat, #6d5efc), var(--accent2, #d44870));
  border-radius: 20px 20px 0 0;
  opacity: 0;
  transition: opacity .3s;
}

.s-card:hover,
.shayari-card:hover {
  border-color: var(--shared-card-border-hover) !important;
  box-shadow: 0 18px 42px var(--shared-card-shadow-hover) !important;
  transform: translateY(-5px);
}

.s-card:hover::before,
.shayari-card:hover::before {
  opacity: 1;
}

/* ── Card top row ── */
.s-card-top,
.card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

/* Section tag pill */
.s-sub-tag,
.card-top span {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: var(--cat, #6d5efc);
  background: var(--cat-soft, rgba(109,94,252,.10));
  padding: 5px 11px;
  border-radius: 999px;
  line-height: 1.25;
  max-width: calc(100% - 56px);
}

/* Card number */
.s-num,
.card-top strong {
  font-size: 11px;
  color: rgba(0,0,0,.2);
  font-weight: 600;
  white-space: nowrap;
}

/* ── Quote / text ── */
.quote-mark {
  font-size: 48px;
  font-family: Georgia, serif;
  line-height: .6;
  color: var(--cat-glow, rgba(109,94,252,.20));
  display: block;
  margin-bottom: 6px;
}

.s-text,
.shayari-card p {
  font-family: var(--font-hi);
  font-size: 15.5px;
  line-height: 1.95;
  color: var(--text, #171325);
  flex: 1;
}

/* ── Card footer ── */
.s-footer,
.card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border, rgba(0,0,0,.10));
  padding-top: 14px;
  gap: 12px;
}

.s-actions,
.card-action-left {
  display: flex;
  gap: 12px;
}

/* ── Buttons ── */
.s-btn,
.shayari-card .copy-btn,
.shayari-card .like-btn {
  background: none;
  border: none;
  color: var(--text2, #6f6788);
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: color .2s;
  font-family: inherit;
  padding: 0;
}

.s-btn:hover,
.s-btn.liked,
.shayari-card .copy-btn:hover,
.shayari-card .like-btn:hover,
.shayari-card .like-btn.liked,
.shayari-card .copy-btn.copied {
  color: var(--cat, #6d5efc);
}

/* WhatsApp share button */
.share-wa,
.share-wa-btn {
  background: #25d366;
  color: #fff;
  border: none;
  padding: 7px 14px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all .25s;
  font-family: inherit;
}

.share-wa:hover,
.share-wa-btn:hover {
  background: #1da851;
  transform: scale(1.05);
}

/* ── Intro / Conclusion (plain text, no card) ── */
.intro,
.intro-box,
.article-intro,
.conclusion,
.conclusion-box {
  max-width: none !important;
  width: 100%;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
}

.intro,
.intro-box,
.article-intro {
  margin-bottom: 28px;
}

.conclusion,
.conclusion-box {
  margin-top: 40px;
}

.intro h2,
.intro-box h2,
.article-intro h2,
.conclusion h2,
.conclusion-box h2 {
  margin: 0 0 14px;
}

.intro p,
.intro-box p,
.section-block p,
.article-intro p,
.conclusion-box p,
.conclusion p {
  font-family: var(--font-hi) !important;
  line-height: 1.95;
}

/* FAQ typography */
.faq-card {
  width: 100%;
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
}

.faq-q {
  font-size: 15.5px !important;
  line-height: 1.45 !important;
}

.faq-a {
  font-size: 13.5px !important;
  line-height: 1.8 !important;
}

/* ── Body font enforcement (applies where shared-cards.css is linked) ── */
body {
  font-family: var(--font-en);
}

/* ── s-card-media (image in card, if present) ── */
.s-card-media {
  border: 1.5px solid var(--shared-card-border) !important;
  border-radius: 18px;
  overflow: hidden;
}
