/* Smart App Banner - Mobile Only */
.smart-app-banner {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: linear-gradient(to bottom, #1a1a1a, #2d2d2d);
    padding: 10px 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
}

@keyframes slideUp {
    from { transform: translateY(0); }
    to { transform: translateY(-100%); }
}

.smart-app-banner.hiding {
    animation: slideUp 0.3s ease-in forwards;
}

.smart-app-banner-inner {
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 100%;
}

.smart-app-banner-close {
    background: none;
    border: none;
    color: #888;
    font-size: 24px;
    padding: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
}

.smart-app-banner-close:hover {
    color: #fff;
}

.smart-app-banner-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
    overflow: hidden;
}

.smart-app-banner-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

.smart-app-banner-info {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.smart-app-banner-title {
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 2px;
}

.smart-app-banner-author {
    color: #888;
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 2px;
}

.smart-app-banner-price {
    color: #888;
    font-size: 11px;
}

.smart-app-banner-btn {
    background: #007aff;
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 18px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    flex-shrink: 0;
    text-decoration: none;
    display: inline-block;
}

.smart-app-banner-btn:hover {
    background: #0056b3;
    color: #fff;
    text-decoration: none;
}

/* Show only on mobile */
@media (max-width: 768px) {
    .smart-app-banner.active {
        display: block;
    }
}

/* Add padding to body when banner is shown */
body.has-smart-app-banner {
    padding-top: 72px;
}

@media (min-width: 769px) {
    body.has-smart-app-banner {
        padding-top: 0;
    }
}
