/* BEM styles for App Store Badge */
.gp-app-badge {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: fit-content;
}

.gp-app-badge__wrapper {
    display: flex;
    align-items: flex-start;
    gap: 24px;
}

.gp-app-badge__badge-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.gp-app-badge__rating-col {
    padding-top: 12px; /* Align stars with the badge center/top */
}

.gp-app-badge__link {
    display: inline-block;
}

.gp-app-badge__img {
    width: 246px;
    height: 82px;
    vertical-align: middle;
    object-fit: contain;
}

.gp-app-badge__rating {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

.gp-app-badge__stars {
    width: 150px;
    height: 32px;
}

.gp-app-badge__rating-text {
    font-size: 18px;
    font-weight: 500;
    line-height: 1.2;
    color: #333;
}

.gp-app-badge__footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
}

.gp-app-badge__footer-text {
    font-size: 14px;
    color: #666;
    line-height: 1.1;
    transform: translateY(2px);
}

.gp-app-badge__watch-icon {
    width: 89px;
    height: 20px;
    object-fit: cover;
}

/* Visibility control */
.gp-app-badge--desktop-only {
    display: flex !important;
}
.gp-app-badge--mobile-only {
    display: none !important;
}

/* Force layout for desktop type */
.gp-app-badge--desktop .gp-app-badge__wrapper {
    flex-direction: row;
}

/* Force layout for mobile type */
.gp-app-badge--mobile {
    align-items: center;
    width: 100%;
    margin-bottom: 32px !important;
}
.gp-app-badge--mobile .gp-app-badge__wrapper {
    flex-direction: column;
    align-items: center;
    gap: 24px;
}
.gp-app-badge--mobile .gp-app-badge__badge-col {
    align-items: center;
    text-align: center;
}
.gp-app-badge--mobile .gp-app-badge__rating-col {
    padding-top: 0;
}
.gp-app-badge--mobile .gp-app-badge__rating {
    align-items: center;
}
.gp-app-badge--mobile .gp-app-badge__footer {
    padding-left: 0;
    justify-content: center;
}

/* Semi-mobile mode: Desktop version becomes vertical before hiding */
@media (max-width: 900px) {
    .gp-app-badge--desktop .gp-app-badge__wrapper {
        flex-direction: column;
        align-items: center;
        gap: 24px;
    }
    .gp-app-badge--desktop .gp-app-badge__badge-col {
        align-items: center;
        text-align: center;
    }
    .gp-app-badge--desktop .gp-app-badge__rating-col {
        padding-top: 0;
    }
    .gp-app-badge--desktop .gp-app-badge__rating {
        align-items: center;
    }
    .gp-app-badge--desktop .gp-app-badge__footer {
        padding-left: 0;
        justify-content: center;
    }
}

/* Mobile responsive visibility swap */
@media (max-width: 782px) {
    .gp-app-badge--desktop-only {
        display: none !important;
    }
    .gp-app-badge--mobile-only {
        display: flex !important;
    }
}

/* Index Banner reverse order on mobile */
@media (max-width: 780px) {
    .wp-block-columns-index-banner {
        display: flex;
        flex-direction: column-reverse !important;
    }
}

/* Trusted Badge Styles */
.gp-trusted-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 354px;
    margin: 20px auto;
}

.gp-trusted-badge__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0;
    flex: 1;
}

.gp-trusted-badge__laurel img {
    width: auto;
    height: 121px;
}

.gp-trusted-badge__laurel--right img {
    transform: scaleX(-1);
}

.gp-trusted-badge__stars img {
    width: 150px;
    height: auto;
}

.gp-trusted-badge__text {
    font-size: var(--wp--preset--font-size--large) !important;
    font-weight: 500;
    line-height: 30px;
    color: #111;    
}

.gp-trusted-badge__rating {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 5px;
}

.gp-trusted-badge__apple {
    width: 34px;
    height: 34px;
    object-fit: contain;
    margin-bottom: 7px;
}

.gp-trusted-badge__score-main {
    font-size: var(--wp--preset--font-size--medium);
    font-weight: 800;
    color: #111;
}

.gp-trusted-badge__score-sub {
    font-size: var(--wp--preset--font-size--small);;
    font-weight: 600;
    color: #111;
}

@media (max-width: 782px) {
    .gp-trusted-badge__text {
        font-size: 18px;
        line-height: 26px;
    }
    .gp-trusted-badge__laurel img {
        width: 32px;
    }
    .gp-trusted-badge__stars img {
        width: 120px;
    }
}
/* Social Links Styles */
.gp-social-links {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
}

.gp-social-links__title {
    font-size: var(--wp--preset--font-size--large);
    font-weight: 700;
    color: #400198;
}

.gp-social-links__items {
    display: flex;
    gap: 12px;
}

.gp-social-links__item {
    transition: transform 0.2s;
}

.gp-social-links__item:hover {
    transform: scale(1.1);
}

@media (max-width: 782px) {
    .gp-social-links {
        align-items: flex-start;
        margin-top: 20px;
    }
}
