/* ============================================================
   Social Cards — Templates for html2canvas capture
   1200×630 landscape and 1080×1080 square formats
   ============================================================ */

/* Shared card base */
.social-card-verse,
.social-card-chapter,
.social-card-character,
.social-card-discovery,
.social-card-comparison,
.social-card-stat {
    position: absolute;
    left: -9999px;
    top: -9999px;
    overflow: hidden;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    -webkit-font-smoothing: antialiased;
}

/* Landscape cards (1200×630) */
.social-card-verse,
.social-card-chapter,
.social-card-character,
.social-card-comparison {
    width: 1200px;
    height: 630px;
}

/* Square cards (1080×1080) */
.social-card-discovery,
.social-card-stat {
    width: 1080px;
    height: 1080px;
}

/* Background gradient layer */
.social-card-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

/* Content layer */
.social-card-content {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 60px;
    box-sizing: border-box;
    color: white;
    text-align: center;
}

/* Branded footer strip (bottom of every card) */
.social-card-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 40px;
    background: rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(4px);
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
}

.social-card-footer-brand {
    font-weight: 700;
    letter-spacing: 0.3px;
}

.social-card-footer-tagline {
    font-size: 12px;
    opacity: 0.7;
    font-style: italic;
}

/* Framework badge pills on cards */
.social-card-badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    margin: 4px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(4px);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Verse card specifics */
.social-card-verse .verse-ref {
    font-size: 20px;
    font-weight: 600;
    opacity: 0.8;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.social-card-verse .verse-text {
    font-size: 28px;
    line-height: 1.5;
    font-weight: 400;
    max-width: 900px;
    margin-bottom: 30px;
}

.social-card-verse .verse-badges {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

/* Chapter card specifics */
.social-card-chapter .chapter-name {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 8px;
}

.social-card-chapter .chapter-num {
    font-size: 18px;
    opacity: 0.7;
    margin-bottom: 24px;
}

.social-card-chapter .chapter-stats {
    display: flex;
    gap: 30px;
    justify-content: center;
    margin-bottom: 24px;
}

.social-card-chapter .chapter-stat-item {
    text-align: center;
}

.social-card-chapter .chapter-stat-value {
    font-size: 32px;
    font-weight: 700;
}

.social-card-chapter .chapter-stat-label {
    font-size: 13px;
    opacity: 0.7;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Character card specifics */
.social-card-character .char-name {
    font-size: 44px;
    font-weight: 700;
    margin-bottom: 8px;
}

.social-card-character .char-category {
    font-size: 16px;
    opacity: 0.7;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 24px;
}

/* Discovery card (square) */
.social-card-discovery .discovery-icon {
    font-size: 64px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.social-card-discovery .discovery-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 20px;
    max-width: 800px;
}

.social-card-discovery .discovery-text {
    font-size: 22px;
    line-height: 1.6;
    opacity: 0.85;
    max-width: 780px;
}

/* Comparison card */
.social-card-comparison .comparison-vs {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 30px;
}

.social-card-comparison .comparison-name {
    font-size: 36px;
    font-weight: 700;
}

.social-card-comparison .comparison-divider {
    font-size: 24px;
    opacity: 0.5;
    font-weight: 300;
}

.social-card-comparison .comparison-rows {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    max-width: 900px;
}

.social-card-comparison .comparison-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

.social-card-comparison .comparison-framework {
    font-size: 14px;
    opacity: 0.7;
    text-transform: uppercase;
    letter-spacing: 1px;
    width: 120px;
    text-align: center;
}

.social-card-comparison .comparison-value {
    font-size: 18px;
    font-weight: 600;
}

/* Stat card (square) */
.social-card-stat .stat-value {
    font-size: 96px;
    font-weight: 800;
    margin-bottom: 16px;
    line-height: 1;
}

.social-card-stat .stat-label {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 24px;
}

.social-card-stat .stat-context {
    font-size: 20px;
    opacity: 0.75;
    line-height: 1.5;
    max-width: 700px;
}

/* Preview mode (when showing miniature in modal) */
.social-card-preview {
    position: static !important;
    left: auto !important;
    top: auto !important;
    transform: scale(0.4);
    transform-origin: top left;
    margin-bottom: -60%;
    pointer-events: none;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}
