/* App Promotion Widget Styles */
/* Import common app store buttons styles */
@import url('../../common/css/app-store-buttons.css');

/* Widget specific overrides */
.app-promotion-widget .widget-buttons.app-store-buttons {
    gap: 12px;
    align-items: flex-start;
}

.app-promotion-widget .widget-buttons .app-store-btn {
    width: 100%;
    min-width: 160px;
    justify-content: flex-start;
}

/* Text-only app links */
.app-promotion-widget .info-list .app-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    transition: all 0.3s ease;
    text-decoration: none;
}

.app-promotion-widget .info-list .app-link:hover {
    text-decoration: none;
}

.app-promotion-widget .info-list .app-link.android-link:hover {
    color: #3DDC84;
}

.app-promotion-widget .info-list .app-link.ios-link:hover {
    color: #007AFF;
}

.app-promotion-widget .info-list .app-link .icon-wrapper {
    flex-shrink: 0;
}

.app-promotion-widget .info-list .app-link .icon-wrapper svg {
    width: 100%;
    height: 100%;
}

/* Legacy support for old custom badges (in case any are still used) */
.app-promotion-widget .app-store-badges {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
}

.app-promotion-widget .app-store-badge {
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
}

.app-promotion-widget .app-store-badge:hover {
    transform: translateY(-2px);
    text-decoration: none;
}

.custom-app-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    border-radius: 12px;
    color: white;
    min-width: 180px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.custom-app-badge.android {
    background: linear-gradient(135deg, #3DDC84 0%, #00D563 100%);
}

.custom-app-badge.ios {
    background: linear-gradient(135deg, #007AFF 0%, #0056CC 100%);
}

.custom-app-badge:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}

.badge-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

.badge-text {
    flex: 1;
    text-align: left;
}

.badge-subtitle {
    font-size: 11px;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1;
    margin-bottom: 2px;
}

.badge-title {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.2;
}


/* Ensure floating buttons don't interfere with WhatsApp chat */
.app-floating-buttons {
    left: 20px;
}

.whatsapp-float {
    left: 20px;
    bottom: 20px;
}

/* Adjust positions when both are active */
body:has(.app-floating-buttons) .whatsapp-float {
    left: 80px;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .app-promotion-widget .app-store-badges {
        align-items: center;
    }

    .app-promotion-widget .app-store-badge img {
        width: 130px;
    }

    body:has(.app-floating-buttons) .whatsapp-float {
        left: 70px;
    }
}

/* Footer widget specific styles */
.footer-widget .app-promotion-widget {
    margin-top: 15px;
}

.footer-widget .app-promotion-widget .info-list {
    padding-left: 0;
    margin-bottom: 0;
    list-style-type: none;
}

.footer-widget .app-promotion-widget .info-list .info-item {
    margin: 18px 0;
}

.footer-widget .app-promotion-widget .info-list .info-item a {
    display: flex;
    font-size: 16px;
    font-weight: 400;
    text-transform: capitalize;
    color: var(--paragraph-color);
    transition: all linear 0.2s;
}

.footer-widget .app-promotion-widget .info-list .info-item a:hover {
    color: var(--hover-color-one);
}

.footer-widget .app-promotion-widget .info-list .info-item a .icon {
    font-size: 18px;
    color: var(--main-color-one);
    display: inline-block;
    line-height: 22px;
    padding: 0 8px 0 0;
}
