/**
 * Ember Pro Blog CTAs — Premium editorial styles
 */

/* ============================================
   CTA 1: Inline Nudge
   ============================================ */
.epcta-inline-nudge {
    margin: 40px 0;
    padding: 3px;
    background: linear-gradient(135deg, rgba(14,38,55,0.08), rgba(14,38,55,0.03));
    border-radius: 14px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04), 0 0 0 1px rgba(14,38,55,0.08);
}

.epcta-inline-nudge p {
    margin: 0;
    padding: 20px 24px;
    background: #fff;
    border-radius: 11px;
    color: #2a2a2a;
    font-size: 1.05rem;
    line-height: 1.75;
    font-weight: 400;
}

.epcta-inline-nudge a {
    color: #FF3B30;
    text-decoration: none;
    font-weight: 700;
    border-bottom: 2px solid #FF3B30;
    padding-bottom: 1px;
    transition: all 0.5s cubic-bezier(0.32,0.72,0,1);
}

.epcta-inline-nudge a:hover {
    color: #cc2d24;
    border-bottom-color: #cc2d24;
}

.epcta-arrow {
    display: inline-block;
    margin-left: 4px;
    transition: transform 0.5s cubic-bezier(0.32,0.72,0,1);
    font-weight: 700;
}

.epcta-inline-nudge a:hover .epcta-arrow {
    transform: translateX(5px);
}

/* ============================================
   CTA 2: Editor's Note
   ============================================ */
.epcta-editors-note {
    margin: 40px 0;
    padding: 24px 28px;
    background: #f8f9fc;
    border-radius: 14px;
    border-left: 4px solid #0E2637;
    box-shadow: 0 4px 20px rgba(14,38,55,0.06), inset 0 1px 0 rgba(255,255,255,0.9);
}

.epcta-note-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #0E2637;
    font-weight: 800;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.epcta-note-label svg {
    opacity: 0.6;
}

.epcta-editors-note p {
    margin: 0;
    font-size: 1.02rem;
    color: #3a3a3a;
    line-height: 1.75;
}

.epcta-editors-note a {
    color: #FF3B30;
    text-decoration: none;
    font-weight: 700;
    border-bottom: 2px solid #FF3B30;
    padding-bottom: 1px;
    transition: all 0.5s cubic-bezier(0.32,0.72,0,1);
}

.epcta-editors-note a:hover {
    color: #cc2d24;
    border-bottom-color: #cc2d24;
}

/* ============================================
   CTA 3: Contextual Card
   ============================================ */
.epcta-contextual-card {
    margin: 44px 0;
    padding: 4px;
    background: linear-gradient(145deg, #e8e8e8, #f2f2f2);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.06), 0 0 0 1px rgba(0,0,0,0.04);
    position: relative;
    overflow: hidden;
}

.epcta-contextual-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #0E2637, #FF3B30);
    z-index: 1;
}

.epcta-card-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #FF3B30;
    font-weight: 800;
    margin: 28px 28px 10px;
}

.epcta-card-text {
    font-size: 1.05rem;
    color: #2a2a2a;
    line-height: 1.7;
    margin: 0 28px 24px;
}

.epcta-card-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin: 0 28px;
    padding: 14px 28px;
    background: #FF3B30;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 50px;
    text-decoration: none !important;
    transition: all 0.5s cubic-bezier(0.32,0.72,0,1);
    box-shadow: 0 4px 16px rgba(255,59,48,0.25);
}

.epcta-card-btn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 28px rgba(255,59,48,0.3);
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}

.epcta-card-btn:active {
    transform: scale(0.98);
}

.epcta-card-btn svg {
    transition: transform 0.5s cubic-bezier(0.32,0.72,0,1);
    stroke: #fff;
}

.epcta-card-btn:hover svg {
    transform: translateX(2px);
}

.epcta-card-subtext {
    font-size: 0.75rem;
    color: #999;
    margin: 14px 28px 28px;
    letter-spacing: 0.3px;
}

/* ============================================
   CTA 4: Recommendation Nudge
   ============================================ */
.epcta-recommendation {
    margin: 40px 0;
    padding: 22px 26px;
    background: #fff;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.05), 0 0 0 1px rgba(14,38,55,0.08);
    transition: box-shadow 0.5s cubic-bezier(0.32,0.72,0,1);
}

.epcta-recommendation:hover {
    box-shadow: 0 8px 36px rgba(0,0,0,0.07), 0 0 0 1px rgba(14,38,55,0.12);
}

.epcta-rec-icon {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #FF3B30, #FF6F6C);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 4px 16px rgba(255,59,48,0.25);
    align-self: center;
}

.epcta-rec-icon svg {
    width: 28px;
    height: 28px;
    stroke: #fff;
    stroke-width: 2;
}

.epcta-recommendation p {
    margin: 0;
    font-size: 1.02rem;
    color: #2a2a2a;
    line-height: 1.75;
}

.epcta-recommendation a {
    color: #FF3B30;
    text-decoration: none;
    font-weight: 700;
    border-bottom: 2px solid #FF3B30;
    padding-bottom: 1px;
    transition: all 0.5s cubic-bezier(0.32,0.72,0,1);
}

.epcta-recommendation a:hover {
    color: #cc2d24;
    border-bottom-color: #cc2d24;
}

/* ============================================
   CTA 5: Bottom Block — tight, high-impact
   ============================================ */
.epcta-bottom-block {
    margin: 44px 0;
    padding: 4px;
    background: linear-gradient(145deg, #e8e8e8, #f2f2f2);
    border-radius: 18px;
    box-shadow: 0 6px 24px rgba(0,0,0,0.05), 0 0 0 1px rgba(0,0,0,0.04);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.epcta-bottom-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #0E2637, #FF3B30);
    z-index: 1;
}

.epcta-bottom-heading {
    font-size: 1.4rem;
    color: #1a1a1a;
    font-weight: 800;
    margin: 24px 24px 6px;
    letter-spacing: -0.3px;
}

.epcta-bottom-subtext {
    font-size: 1rem;
    color: #555;
    margin: 0 24px 18px;
    line-height: 1.5;
}

.epcta-bottom-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: #FF3B30;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 50px;
    text-decoration: none !important;
    transition: all 0.5s cubic-bezier(0.32,0.72,0,1);
    box-shadow: 0 4px 16px rgba(255,59,48,0.3);
}

.epcta-bottom-btn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 28px rgba(255,59,48,0.35);
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}

.epcta-bottom-btn:active {
    transform: scale(0.98);
}

.epcta-bottom-btn svg {
    transition: transform 0.5s cubic-bezier(0.32,0.72,0,1);
    stroke: #fff;
}

.epcta-bottom-btn:hover svg {
    transform: translateX(3px);
}

.epcta-bottom-reassurance {
    font-size: 0.75rem;
    color: #999;
    margin: 12px 24px 24px;
    letter-spacing: 0.3px;
}

/* ============================================
   Preview Mode (admin only)
   ============================================ */
.epcta-preview {
    position: relative;
    outline: 2px dashed #FF3B30;
    outline-offset: 4px;
}

.epcta-preview-badge {
    position: absolute;
    top: -10px;
    right: 8px;
    background: #FF3B30;
    color: #fff;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 2px 8px;
    border-radius: 3px;
    z-index: 10;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 768px) {
    .epcta-contextual-card .epcta-card-label,
    .epcta-contextual-card .epcta-card-text,
    .epcta-contextual-card .epcta-card-btn,
    .epcta-contextual-card .epcta-card-subtext {
        margin-left: 20px;
        margin-right: 20px;
    }

    .epcta-bottom-heading,
    .epcta-bottom-subtext,
    .epcta-bottom-reassurance {
        margin-left: 16px;
        margin-right: 16px;
    }

    .epcta-recommendation {
        flex-direction: column;
        gap: 14px;
    }

    .epcta-card-btn,
    .epcta-bottom-btn {
        width: calc(100% - 40px);
        justify-content: center;
    }

    .epcta-bottom-heading {
        font-size: 1.2rem;
    }
}
