/* ==========================================================================
   IMungro Elements - Elementor Widget Styles
   ========================================================================== */

/* Character Grid */
.im-char-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 2rem;
}

.im-char-card {
    text-align: center;
    transition: all 0.3s ease;
    overflow: hidden;
}

.im-char-image {
    overflow: hidden;
    margin-bottom: 1rem;
}

.im-char-image img {
    width: 100%;
    height: auto;
    transition: transform 0.4s ease;
}

.im-char-card:hover .im-char-image img {
    transform: scale(1.05);
}

.im-char-category {
    font-family: 'Work Sans', sans-serif;
    font-size: 11px;
    font-weight: 600;
    color: #00d2ff;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    display: block;
    margin-bottom: 0.5rem;
}

.im-char-name {
    font-family: 'EB Garamond', serif;
    font-size: 1.5rem;
    color: #f2ca50;
    margin-bottom: 0.75rem;
}

.im-char-desc {
    font-size: 0.95rem;
    color: #d0c5af;
    margin-bottom: 1rem;
}

.im-char-link {
    font-family: 'Work Sans', sans-serif;
    font-size: 12px;
    font-weight: 500;
    color: #f2ca50;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.im-char-link:hover {
    color: #00d2ff;
}

/* Coming Soon */
.im-coming-soon-widget {
    position: relative;
}

/* Responsive */
@media (max-width: 1024px) {
    .im-char-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .im-char-grid {
        grid-template-columns: 1fr;
    }
}

/* Elementor editor: show note for horizontal section */
.elementor-editor-active .im-hscroll-section {
    outline: 1px dashed rgba(242, 202, 80, 0.3);
    outline-offset: -1px;
}

.elementor-editor-active .im-hscroll-section:hover {
    outline-color: rgba(242, 202, 80, 0.6);
}

/* Make sure Elementor canvas shows dark background */
.elementor-editor-active .elementor-widget-cee-horizontal-section {
    background: #131313;
}

/* ==========================================================================
   Books Grid widget — cover placeholder for books with no cover image yet
   (the grid itself reuses the theme's .im-front-books-grid styling).
   ========================================================================== */
.im-front-book-cover-placeholder {
    display: block;
    width: 100%;
    aspect-ratio: 2 / 3;
    margin-bottom: 0.75rem;
    border: 1px solid var(--im-outline-variant, #4d4635);
    background:
        linear-gradient(135deg, rgba(242,202,80,0.06), rgba(0,0,0,0)) ,
        repeating-linear-gradient(45deg, rgba(242,202,80,0.04) 0 10px, transparent 10px 20px);
    position: relative;
}
.im-front-book-cover-placeholder::after {
    content: '✦';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--im-primary, #f2ca50);
    opacity: 0.35;
    font-size: 2rem;
}
