/**
 * Universal App Install Banner Styles
 */

.app-install-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: linear-gradient(135deg, #17C653 0%, #04B440 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(23, 198, 83, 0.25);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-out, visibility 0.3s ease-out;
}

.app-install-banner.app-banner-visible {
    opacity: 1;
    visibility: visible;
}

.app-banner-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    max-width: 1200px;
    margin: 0 auto;
    gap: 12px;
}

.app-banner-content {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.app-banner-text {
    flex: 1;
    min-width: 0;
}

.app-banner-title {
    font-weight: 700;
    font-size: 18px;
    line-height: 1.3;
    margin-bottom: 2px;
}

.app-banner-subtitle {
    font-size: 13px;
    opacity: 0.95;
    line-height: 1.4;
    font-weight: 400;
}

.app-store-badge {
    display: flex;
    align-items: center;
    gap: 10px;
}

.store-icon {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}

.store-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.2;
}

.store-label {
    font-size: 9px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    opacity: 0.95;
}

.store-name {
    font-size: 16px;
    font-weight: 600;
    margin-top: -2px;
}

.app-banner-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.app-banner-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    text-decoration: none;
}

.app-banner-install {
    background: white;
    color: #17C653;
    padding: 8px 16px;
    border-radius: 10px;
}

.app-banner-install:hover {
    background: rgba(255, 255, 255, 0.95);
    color: #04B440;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3);
}

.app-banner-install:active {
    transform: translateY(0);
}

.app-banner-close {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    padding: 8px;
    backdrop-filter: blur(10px);
}

.app-banner-close:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* Animations */
@keyframes slideUp {
    from {
        transform: translateY(0);
        opacity: 1;
    }
    to {
        transform: translateY(-100%);
        opacity: 0;
    }
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .app-banner-container {
        padding: 10px 12px;
    }

    .app-banner-title {
        font-size: 16px;
    }

    .app-banner-subtitle {
        font-size: 12px;
    }

    .store-icon {
        width: 28px;
        height: 28px;
    }

    .store-label {
        font-size: 8px;
    }

    .store-name {
        font-size: 14px;
    }

    .app-banner-install {
        padding: 6px 12px;
    }
}

@media (max-width: 480px) {
    .app-banner-subtitle {
        display: none;
    }

    .app-store-badge {
        gap: 6px;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .app-install-banner {
        background: linear-gradient(135deg, #00A261 0%, #01BF73 100%);
        box-shadow: 0 4px 12px rgba(0, 162, 97, 0.25);
    }

    .app-banner-install {
        color: #00A261;
    }

    .app-banner-install:hover {
        color: #01BF73;
        box-shadow: 0 4px 8px rgba(0, 162, 97, 0.3);
    }
}
