/* =============================================
   Modern Theme — Custom Styles (sites.reviews)
   ============================================= */

/* ---------- Google Font: Inter ---------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

body, h1, h2, h3, h4, h5, h6, .item-title, .item-link {
    font-family: 'Inter', sans-serif;
}

/* ---------- Score Badge ---------- */
.mn-score-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 8px;
    font-size: 1.35rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.5px;
}
.mn-score-excellent { background-color: #00b67a; }
.mn-score-great     { background-color: #73cf11; }
.mn-score-average   { background-color: #ffce00; color: #333 !important; }
.mn-score-poor      { background-color: #ff8622; }
.mn-score-bad       { background-color: #ff3722; }

/* ---------- Horizontal Card Layout ---------- */
.item-h {
    display: flex;
    flex-direction: column;
    height: auto !important;
}

.item-h .item-body {
    display: flex;
    align-items: stretch;
    text-decoration: none;
    color: inherit;
    padding: 0 !important;
    flex: 1;
}

.item-h .item-body:hover {
    text-decoration: none;
    color: inherit;
}

.mn-logo-col {
    flex-shrink: 0;
    padding: 20px 12px 20px 20px;
    display: flex;
    align-items: flex-start;
}

.mn-info-col {
    flex-grow: 1;
    padding: 18px 16px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.mn-score-col {
    flex-shrink: 0;
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-width: 96px;
    border-left: 1px solid rgb(var(--border_color));
}

.item-h .item-img img {
    width: 64px !important;
    height: 64px !important;
    border-radius: 8px;
    object-fit: contain;
    background: #fff;
    border: 1px solid rgb(var(--border_color));
}

.mn-name-row {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 2px;
}

.mn-cats {
    font-size: 0.78rem;
    color: rgb(var(--text_muted_color));
    margin-bottom: 6px;
}

.mn-cats span + span::before {
    content: " \203A ";
    opacity: 0.6;
}

.mn-desc {
    font-size: 0.85rem;
    color: rgb(var(--text_muted_color));
    margin-bottom: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.mn-score-col .ratings img {
    height: 16px;
    width: auto;
    margin-top: 4px;
}

.mn-reviews-count {
    font-size: 0.7rem;
    color: rgb(var(--text_muted_color));
    margin-top: 3px;
    white-space: nowrap;
}

/* Mobile: collapse score into footer row */
@media (max-width: 575.98px) {
    .mn-score-col {
        border-left: none;
        border-top: 1px solid rgb(var(--border_color));
        flex-direction: row;
        gap: 10px;
        min-width: 100%;
        padding: 12px 20px;
        justify-content: flex-start;
    }
}

/* ---------- List (single-column) layout ---------- */
.items-list .row {
    flex-direction: column;
    gap: 10px;
}

.items-list .col {
    width: 100%;
    max-width: 100%;
    flex: 0 0 100%;
    padding: 0;
}

/* ---------- Navbar shadow ---------- */
.navbar {
    box-shadow: 0 1px 4px rgba(0,0,0,.07);
}

/* ---------- Hover lift on cards ---------- */
.box.item-h {
    transition: box-shadow 0.2s ease, transform 0.15s ease;
}

.box.item-h:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,.11);
    transform: translateY(-1px);
}
