/* English Focus Daily — Blog post styling extras
   Loaded by theme functions.php. Styles the custom classes used in imported blog posts. */

/* Article body container & typography */
.entry-content {
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
    font-size: 1.0625rem;
    line-height: 1.8;
    color: #2A2A2A;
}

.entry-content p { margin-bottom: 1.25rem; }
.entry-content h2 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    font-size: 1.75rem;
    line-height: 1.25;
    letter-spacing: -0.01em;
}
.entry-content h3 {
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
}
.entry-content ul, .entry-content ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}
.entry-content li { margin-bottom: 0.4rem; }
.entry-content strong { color: #1A1A1A; font-weight: 600; }

/* Subtitle italic intro paragraph at top of posts */
.entry-content > p:first-child {
    font-size: 1.25rem;
    font-style: italic;
    color: #5C5C5C;
    text-align: left;
    margin-bottom: 2rem;
    line-height: 1.5;
}

/* Blockquote */
.entry-content blockquote {
    border-left: 4px solid #C8553D;
    padding: 0.5rem 0 0.5rem 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    font-size: 1.2rem;
    color: #5C5C5C;
}

/* Callout — used for "Quick fix", "What to do next", tips */
.entry-content .callout {
    background: #FAF0E6;
    border-left: 4px solid #C8553D;
    padding: 1.25rem 1.5rem;
    border-radius: 0 12px 12px 0;
    margin: 1.75rem 0;
}
.entry-content .callout h4 {
    font-family: var(--font-sans, inherit);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #C8553D;
    margin-bottom: 0.5rem;
    margin-top: 0;
    font-weight: 600;
}
.entry-content .callout p { margin-bottom: 0.5rem; }
.entry-content .callout p:last-child { margin-bottom: 0; }

/* Example boxes — practice / pattern blocks */
.entry-content .example-box {
    background: #fff;
    border: 1px solid #E8E0D4;
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    margin: 1.5rem 0;
    box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}
.entry-content .example-box .label {
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #8A8A8A;
    font-weight: 600;
    margin-bottom: 0.5rem;
}
.entry-content .example-box p { margin-bottom: 0.5rem; }
.entry-content .example-box p:last-child { margin-bottom: 0; }
.entry-content .example-box .correct { color: #4A7C59; font-weight: 600; }
.entry-content .example-box .wrong { color: #C8553D; font-weight: 600; text-decoration: line-through; }

/* Article footer — share block. Selectors un-scoped (footer is outside entry-content). */
.article-footer {
    max-width: 720px;
    margin: 3rem auto 0 !important;
    padding: 2rem 1.25rem 0 !important;
    border-top: 1px solid #E8E0D4;
}
.share-block {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}
.share-label {
    font-weight: 600;
    color: #5C5C5C;
    font-size: 0.9375rem;
}
.share-links {
    display: flex !important;
    align-items: center;
    gap: 0.5rem !important;
    list-style: none;
    padding: 0;
    margin: 0;
}
.share-links br { display: none !important; }
.share-links a {
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    max-width: 42px !important;
    min-height: 42px !important;
    max-height: 42px !important;
    border-radius: 50% !important;
    background: #F4E5D9 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #1A1A1A !important;
    transition: all 200ms ease;
    overflow: hidden;
    text-decoration: none;
    padding: 0 !important;
    line-height: 1 !important;
    flex-shrink: 0;
}
.share-links a:hover {
    background: #C8553D !important;
    color: white !important;
    transform: translateY(-2px);
}
.share-links svg {
    width: 18px !important;
    height: 18px !important;
    max-width: 18px !important;
    max-height: 18px !important;
    display: block !important;
}

/* Article header byline + meta (centered, smaller) */
.entry-content .article-header,
.entry-content .article-meta,
.entry-content .article-byline {
    text-align: center;
}
.entry-content .article-byline {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-size: 0.875rem;
    color: #5C5C5C;
    margin: 1rem 0;
}
.entry-content .author-avatar {
    width: 36px !important;
    height: 36px !important;
    border-radius: 50%;
    background: #C8553D;
    color: white;
    display: inline-grid;
    place-items: center;
    font-weight: 700;
    font-size: 0.75rem;
    flex-shrink: 0;
}

/* Tags (category chips inside content) */
.entry-content .tag {
    display: inline-block;
    background: #F4E5D9;
    color: #1A1A1A;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    line-height: 1.4;
}
.entry-content .tag-vocab        { background: #FBE4D6; color: #8B3E1F; }
.entry-content .tag-grammar      { background: #D8E4EF; color: #1E3A5F; }
.entry-content .tag-pronunciation { background: #E0EDDB; color: #2E5C2E; }
.entry-content .tag-idioms       { background: #F3E0E7; color: #7A3D5B; }
.entry-content .tag-practice     { background: #FBF1D6; color: #7A5D1F; }

/* Misc utility classes used in the imported content */
.entry-content .post-meta-dot {
    display: inline-block;
    width: 3px;
    height: 3px;
    background: #8A8A8A;
    border-radius: 50%;
    vertical-align: middle;
    margin: 0 0.5rem;
}

/* Hostinger AI page title styling tweak (post title) */
.hostinger-ai-page-title {
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
    padding: 1.5rem 1.25rem 0.75rem;
    text-align: center;
    line-height: 1.2;
}

/* "What we cover" cards — direct children grid (no .e-con-inner wrapper) */
.elementor-element-ef07334 {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 2rem !important;
    align-items: start;
}
@media (max-width: 1024px) {
    .elementor-element-ef07334 {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}
@media (max-width: 640px) {
    .elementor-element-ef07334 {
        grid-template-columns: 1fr !important;
    }
}
/* Card spacing inside "What we cover" */
.elementor-element-ef07334 > .elementor-element {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.hostinger-ai-service-image img {
    width: 100%;
    max-width: 320px;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 16px;
}
.hostinger-ai-service-description {
    font-size: 0.9375rem;
    line-height: 1.55;
    color: #5C5C5C;
}

/* Make "What we cover" cards clickable — whole card is hover-able, stretched link via image's <a> */
.efd-clickable-card {
    position: relative;
    cursor: pointer;
    transition: transform 220ms ease, box-shadow 220ms ease;
    border-radius: 16px;
    overflow: visible;
}
.efd-clickable-card:hover {
    transform: translateY(-4px);
}
.efd-clickable-card:hover img {
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.12);
    transform: scale(1.01);
}
.efd-clickable-card img {
    transition: transform 220ms ease, box-shadow 220ms ease;
}
/* Stretched link — image's <a> covers the entire card */
.efd-clickable-card .efd-card-image-link a {
    position: static;
}
.efd-clickable-card .efd-card-image-link a::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
}
/* But the title link should still be clickable above the stretched link */
.efd-clickable-card .hostinger-ai-service-description a {
    position: relative;
    z-index: 2;
}
.efd-clickable-card .hostinger-ai-service-description a:hover strong {
    color: #C8553D !important;
}

/* Make hostinger-blog-posts widget more polished (homepage + blog) */
.hostinger-blog-posts-widget .blog-posts-grid {
    grid-template-columns: repeat(3, 1fr) !important;
}
@media (max-width: 1024px) {
    .hostinger-blog-posts-widget .blog-posts-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}
@media (max-width: 640px) {
    .hostinger-blog-posts-widget .blog-posts-grid {
        grid-template-columns: 1fr !important;
    }
}
.hostinger-blog-posts-widget .post-thumbnail img {
    height: 220px !important;
    border-radius: 16px;
}
.hostinger-blog-posts-widget .post-title {
    font-size: 1.125rem !important;
    line-height: 1.3;
    margin-top: 0.75rem;
}
.hostinger-blog-posts-widget .post-excerpt {
    font-size: 0.9375rem;
    line-height: 1.55;
    color: #5C5C5C;
    margin-top: 0.5rem;
}
.hostinger-blog-posts-widget .post-date {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #8A8A8A;
    margin-top: 0.75rem;
}
