/* ==========================================================
   Eams Apps — Dynamic Images & Icon System (additions)
   Add this to your theme's main stylesheet (e.g. style.css)
   or enqueue it as a separate file after the existing CSS.
========================================================== */

/* ---------- Generic inline SVG icon ---------- */
.ea-icon {
    width: 100%;
    height: 100%;
    display: block;
}

/* Icon wrapper used in trust/security/editorial/process cards */
.ea-icon-box {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    border-radius: 14px;
    background: var(--ea-icon-bg, #eef2ff);
    color: var(--ea-icon-color, #4f46e5);
    margin-bottom: 16px;
    flex-shrink: 0;
}

.ea-icon-box-lg {
    width: 84px;
    height: 84px;
    padding: 18px;
    border-radius: 20px;
}

/* ---------- Category grid icon ---------- */
.ea-category-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    border-radius: 50%;
    background: var(--ea-icon-bg, #eef2ff);
    color: var(--ea-icon-color, #4f46e5);
    margin-bottom: 14px;
}

.ea-category-icon-svg {
    width: 100%;
    height: 100%;
}

/* ---------- Dynamic post thumbnails ---------- */
.ea-app-thumb,
.ea-choice-image,
.ea-guide-image {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: 14px;
    background: #f3f4f6;
}

.ea-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.ea-app-card:hover .ea-thumb-img,
.ea-choice-card:hover .ea-thumb-img,
.ea-guide-card:hover .ea-thumb-img {
    transform: scale(1.05);
}

/* Fallback shown when a post has no featured image */
.ea-thumb-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, #eef2ff, #f5f3ff);
    color: #4f46e5;
    text-align: center;
    padding: 16px;
}

.ea-thumb-fallback .ea-icon {
    width: 40px;
    height: 40px;
}

.ea-thumb-fallback span {
    font-size: 13px;
    font-weight: 600;
    color: #4b5563;
    line-height: 1.3;
    max-width: 90%;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* ---------- Hero illustration ---------- */
.ea-hero-illustration {
    width: 100%;
    max-width: 420px;
    height: auto;
    display: block;
    margin: 0 auto;
}

.ea-hero-blob {
    fill: #eef2ff;
}

.ea-hero-phone {
    fill: #111827;
}

.ea-hero-screen {
    fill: #ffffff;
}

.ea-hero-btn {
    fill: #374151;
}

.ea-hero-line {
    fill: #4f46e5;
}

.ea-hero-line-soft {
    fill: #c7d2fe;
}

.ea-hero-card rect:first-child {
    fill: #f9fafb;
    stroke: #e5e7eb;
    stroke-width: 1;
}

.ea-hero-card-icon {
    fill: #4f46e5;
    opacity: 0.15;
}

.ea-hero-card-text {
    fill: #374151;
}

.ea-hero-card-text-soft {
    fill: #9ca3af;
}

.ea-hero-badge circle {
    fill: #16a34a;
}

.ea-hero-badge-alt circle {
    fill: #f59e0b;
}

/* ---------- Responsive breakpoints ---------- */
@media (max-width: 768px) {
    .ea-hero-illustration {
        max-width: 280px;
    }

    .ea-icon-box,
    .ea-category-icon {
        width: 48px;
        height: 48px;
        padding: 10px;
    }

    .ea-icon-box-lg {
        width: 64px;
        height: 64px;
        padding: 14px;
    }

    .ea-app-thumb,
    .ea-choice-image,
    .ea-guide-image {
        aspect-ratio: 16 / 11;
    }
}

@media (max-width: 480px) {
    .ea-hero-illustration {
        max-width: 220px;
    }
}