/**
 * Wooptima Reviews — Trust Badge shortcode styles.
 *
 * Standalone CSS for [heurekaTrustBadge]. Loaded only when the shortcode
 * is used. Two designs: .amtc-tbadge--standard and .amtc-tbadge--compact.
 *
 * Colors default to the plugin's neutral card text so the badge reads well
 * on light backgrounds; override the CSS variables to match a dark section.
 */

/* Shared container */
.amtc-tbadge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--amtc-card-text, #1a1a1a);
    line-height: 1.2;
}

/* Anchor variant — when anchor="..." is set. Explicit color (not inherit):
   the badge is an <a> here, so inherit would pick up the theme link color. */
.amtc-tbadge--link {
    text-decoration: none;
    color: var(--amtc-card-text, #1a1a1a);
    cursor: pointer;
}

.amtc-tbadge--link:hover,
.amtc-tbadge--link:focus,
.amtc-tbadge--link:visited {
    text-decoration: none;
    color: var(--amtc-card-text, #1a1a1a);
}

/* Badge embedded inside a foreign link (e.g. a builder link wrapper) keeps
   its own colors and doesn't get underlined */
a .amtc-tbadge {
    color: var(--amtc-card-text, #1a1a1a);
    text-decoration: none;
}

/* Star icon (shared) */
.amtc-tbadge__star {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: #FFC400;
    stroke-width: 2;
    stroke-linejoin: round;
    flex-shrink: 0;
}

.amtc-tbadge__star--filled {
    fill: #FFC400;
}

/* Score number (shared). Explicit color instead of inherit so a link
   wrapper can never tint the score. */
.amtc-tbadge__score {
    font-weight: 700;
    line-height: 1;
    color: var(--amtc-card-text, #1a1a1a);
}

/* ------------------------------------------------------------------ */
/* Compact design: "5.0 ★ (57 recenzií)"                              */
/* ------------------------------------------------------------------ */
.amtc-tbadge--compact {
    gap: 4px;
    font-size: 16px;
}

.amtc-tbadge--compact .amtc-tbadge__score {
    font-size: 1.05em;
}

.amtc-tbadge--compact .amtc-tbadge__star {
    width: 1.15em;
    height: 1.15em;
}

.amtc-tbadge__count {
    color: var(--amtc-card-text, #1a1a1a);
    white-space: nowrap;
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* ------------------------------------------------------------------ */
/* Standard design: avatars + score + 5 stars + text                  */
/* ------------------------------------------------------------------ */
.amtc-tbadge--standard {
    gap: 16px;
}

/* Overlapping avatar strip */
.amtc-tbadge__avatars {
    display: flex;
    flex-shrink: 0;
}

.amtc-tbadge__avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 16px;
    letter-spacing: 0.5px;
    line-height: 1;
    border: 2px solid #fff;
    margin-left: -10px;
    position: relative;
}

.amtc-tbadge__avatar:first-child {
    margin-left: 0;
}

/* Stack order: first avatar on top */
.amtc-tbadge__avatar:nth-child(1) { z-index: 4; }
.amtc-tbadge__avatar:nth-child(2) { z-index: 3; }
.amtc-tbadge__avatar:nth-child(3) { z-index: 2; }
.amtc-tbadge__avatar:nth-child(4) { z-index: 1; }

/* Info block */
.amtc-tbadge__info {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.amtc-tbadge__rating {
    display: flex;
    align-items: center;
    gap: 3px;
}

.amtc-tbadge--standard .amtc-tbadge__score {
    font-size: 18px;
}

.amtc-tbadge__stars {
    display: flex;
    align-items: center;
    gap: 1px;
}

.amtc-tbadge__text {
    font-size: clamp(13px, calc(0.3824091778vw + 11.5px), 16px);
    color: inherit;
}

/* Mobile: shrink avatars */
@media (max-width: 479px) {
    .amtc-tbadge__avatar {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }
}
