/* ============================================================
   Musicash Reviews - Frontend Styles
   ============================================================ */

:root {
    --mcr-gold: #f5a623;
    --mcr-gold-empty: #ddd;
    --mcr-text: #333;
    --mcr-text-light: #777;
    --mcr-border: #e8e8e8;
    --mcr-bg: #fff;
    --mcr-radius: 10px;
    --mcr-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

/* ---- STELLE ---- */
.mcr-stars { display: inline-flex; gap: 2px; }
.mcr-star { font-size: 1em; }
.mcr-star-full  { color: var(--mcr-gold); }
.mcr-star-half  { color: var(--mcr-gold); opacity: 0.6; }
.mcr-star-empty { color: var(--mcr-gold-empty); }

/* ---- SUMMARY HEADER ---- */
.mcr-summary-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    padding: 16px 20px;
    background: #fafafa;
    border-radius: var(--mcr-radius);
    border: 1px solid var(--mcr-border);
}
.mcr-rating-big {
    font-size: 2.4em;
    font-weight: 700;
    color: var(--mcr-text);
    line-height: 1;
}
.mcr-stars-big .mcr-star { font-size: 1.4em; }
.mcr-count { color: var(--mcr-text-light); font-size: 0.9em; }

/* ---- CAROSELLO ---- */
.mcr-carousel-wrap { margin: 32px 0; }
.mcr-carousel {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
}
.mcr-track-wrap {
    overflow: hidden;
    flex: 1;
}
.mcr-track {
    display: flex;
    gap: 16px;
    transition: transform 0.4s ease;
    will-change: transform;
}

/* ---- CARD ---- */
.mcr-card {
    flex: 0 0 calc(33.333% - 12px);
    min-width: 0;
    background: var(--mcr-bg);
    border: 1px solid var(--mcr-border);
    border-radius: var(--mcr-radius);
    box-shadow: var(--mcr-shadow);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.mcr-card-img {
    height: 140px;
    overflow: hidden;
    background: #f5f5f5;
}
.mcr-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.mcr-card-body {
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.mcr-card-stars { margin-bottom: 8px; }
.mcr-card-text {
    flex: 1;
    font-size: 0.9em;
    color: var(--mcr-text);
    line-height: 1.5;
    margin: 0 0 12px;
    font-style: italic;
}
.mcr-card-footer {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 0.82em;
}
.mcr-card-name    { font-weight: 600; color: var(--mcr-text); }
.mcr-card-product { color: var(--mcr-text-light); }

/* ---- BADGE FONTE ---- */
.mcr-card-source,
.mcr-review-source {
    display: inline-block;
    padding: 2px 7px;
    border-radius: 20px;
    font-size: 0.75em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.mcr-source-google     { background: #e8f0fe; color: #1a73e8; }
.mcr-source-prestashop { background: #e6f4ea; color: #1e8e3e; }
.mcr-source-site       { background: #fce8e6; color: #d93025; }

/* ---- BOTTONI CAROSELLO ---- */
.mcr-btn {
    background: #fff;
    border: 1px solid var(--mcr-border);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1.4em;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--mcr-text);
    box-shadow: var(--mcr-shadow);
    transition: background 0.2s, transform 0.1s;
    line-height: 1;
}
.mcr-btn:hover { background: var(--mcr-gold); color: #fff; border-color: var(--mcr-gold); }
.mcr-btn:active { transform: scale(0.95); }

/* ---- RECENSIONI PRODOTTO ---- */
.mcr-product-reviews {
    margin: 32px 0;
    padding: 24px;
    border: 1px solid var(--mcr-border);
    border-radius: var(--mcr-radius);
}
.mcr-product-reviews-title {
    font-size: 1.15em;
    font-weight: 700;
    margin: 0 0 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.mcr-product-reviews-avg { font-weight: 400; font-size: 0.9em; color: var(--mcr-text-light); }
.mcr-review-list { display: flex; flex-direction: column; gap: 16px; }
.mcr-review-item {
    padding: 14px;
    background: #fafafa;
    border-radius: 8px;
    border: 1px solid var(--mcr-border);
}
.mcr-review-header {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}
.mcr-review-name { font-weight: 600; font-size: 0.9em; }
.mcr-review-date { font-size: 0.8em; color: var(--mcr-text-light); margin-left: auto; }
.mcr-review-text { margin: 0; font-size: 0.9em; color: var(--mcr-text); line-height: 1.6; }

/* ---- SUMMARY BADGE ---- */
.mcr-summary-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9em;
    color: var(--mcr-text);
}

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
    .mcr-card { flex: 0 0 calc(50% - 8px); }
    .mcr-summary-header { flex-wrap: wrap; }
}
@media (max-width: 480px) {
    .mcr-card { flex: 0 0 calc(100% - 0px); }
    .mcr-btn { width: 32px; height: 32px; font-size: 1.1em; }
}

/* ---- RISPOSTA MUSICASH ---- */
.mcr-reply {
    margin-top: 12px;
    padding: 10px 14px;
    background: #f0f7ff;
    border-left: 3px solid #2271b1;
    border-radius: 0 6px 6px 0;
}
.mcr-reply-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    font-size: 0.82em;
    font-weight: 700;
    color: #2271b1;
}
.mcr-reply-logo {
    width: 18px;
    height: 18px;
    background: #2271b1;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 10px;
    font-weight: 900;
}
.mcr-reply-date { font-weight: 400; color: #888; margin-left: auto; }
.mcr-reply-text { margin: 0; font-size: 0.88em; color: #444; line-height: 1.55; }

/* Card carosello con risposta */
.mcr-card .mcr-reply {
    margin: 8px 16px 14px;
    font-size: 0.85em;
}
