/* ==========================================================================
   BADGES & AFFILIATE LINKS
   ========================================================================== */
/* Store Badges Container */
.store-badges {
    display: flex;
    gap: 5px;
    align-items: flex-start;
}

.store-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: var(--kliq-scoreboard-bg);
    color: var(--kliq-white);
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 700;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    box-sizing: border-box;
    overflow: hidden;
    height: 40px;
    width: auto;
}

.store-badge:hover {
    background-color: var(--kliq-accent);
    transform: translateY(-1px);
}

.apple-badge-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.apple-badge-wrapper .apple-badge[disabled],
.apple-badge-wrapper .apple-badge[aria-disabled="true"] {
    opacity: 0.45;
    filter: grayscale(40%);
    cursor: not-allowed;
    pointer-events: none;
    user-select: none;
}

.amazon-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: var(--kliq-main);
    color: #111111;
    font-weight: 800;
    font-size: 0.7rem;
    padding: 4px 4px;
    border-radius: 6px !important;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    box-sizing: border-box;
    overflow: hidden;
}

.amazon-badge:hover {
    background-color: var(--kliq-alert);
    transform: translateY(-1px);
}

.dev-ribbon {
    position: absolute;
    top: 50%;
    inset-inline-start: 50%;
    transform: translate(-50%, -50%) rotate(-8deg);
    background: var(--kliq-main);
    color: var(--kliq-accent);
    opacity: 0.8;
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 2px 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    white-space: nowrap;
    z-index: 2;
    pointer-events: none;
    border: 1px solid #ffffff;
}

[dir="rtl"] .dev-ribbon {
    transform: translate(50%, -50%) rotate(8deg); /* Mirror ribbon angle for RTL */
}

.amazon-affiliate-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.store-badge span,
.amazon-badge span {
    display: inline-block;
    max-width: 200px;
    opacity: 1;
    transition: max-width 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.2s ease,
                font-size 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                margin 0.3s ease;
    white-space: nowrap;
    overflow: hidden;
}

.amazon-icon,
.amazon-badge .amazon-icon {
    display: inline-block;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    transition: opacity 0.25s ease, width 0.3s ease, height 0.3s ease;
}

.affiliate-disclosure {
    font-size: 0.65rem;
    color: #777777;
    margin-top: 3px;
    font-style: italic;
    white-space: nowrap;
    transition: opacity 0.2s ease, max-height 0.2s ease, margin 0.2s ease;
}

@media (max-width: 650px) {
    .store-badge {
        height: 30px;
        margin-right: 4px;
    }
}