﻿/* App Download Banner Styles */
.app-download-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border-top: 3px solid #78E02C;
    border-radius: 15px 15px 0 0;
    box-shadow: 0 -8px 25px rgba(0, 0, 0, 0.3);
    transform: translateY(100%);
    transition: transform 0.6s ease;
    overflow: hidden;
}

.app-download-banner.show {
    transform: translateY(0);
}

.banner-decorative-strip {
    background: linear-gradient(90deg, #78E02C, #49f71e, #78E02C);
    color: #000000;
    text-align: center;
    padding: 8px 0;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.banner-content {
    display: flex;
    align-items: center;
    padding: 18px 25px;
    gap: 20px;
    position: relative;
    min-height: 100px;
}

/* App Icon */
.banner-app-icon {
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: #000000;
    animation: bounce 2s infinite;
    flex-shrink: 0;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Text Block */
.banner-text-block {
    flex: 1;
    min-width: 200px;
}

.banner-title {
    font-size: 24px;
    color: #ffffff;
    font-weight: bold;
    text-transform: uppercase;
    margin: 0 0 8px 0;
    line-height: 1.1;
}

.banner-subtitle {
    font-size: 18px;
    color: #fff;
    opacity: 0.8;
    font-weight: bold;
    margin: 0 0 12px 0;
}

.banner-bonus {
    font-size: 18px;
    color: #FFD700;
    background: rgba(0, 0, 0, 0.7);
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: bold;
    display: inline-block;
    border: 2px solid #FFD700;
}

/* Benefits Block */
.banner-benefits {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 200px;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.benefit-icon {
    width: 24px;
    height: 24px;
    background: #FFD700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #000000;
    flex-shrink: 0;
}

.benefit-item span {
    font-size: 16px;
    color: #FFA500;
    font-weight: bold;
}

/* Action Block */
.banner-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    min-width: 200px;
}

.banner-main-btn {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #000000;
    border: none;
    padding: 10px 15px;
    border-radius: 15px;
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
    display: flex;
    align-items: center;
    gap: 8px;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(255, 215, 0, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 215, 0, 0);
    }
}

.banner-main-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.4);
}

.banner-store-buttons {
    display: flex;
    gap: 8px;
}

.store-btn {
    background: #000000;
    color: #00ff00;
    border: 1px solid #00ff00;
    padding: 10px 18px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.store-btn:hover {
    background: #00ff00;
    color: #000000;
    transform: scale(1.05);
}

.banner-trust {
    background: #ffffff;
    color: #000000;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: bold;
    text-align: center;
}

/* Decorative Stars */
.banner-star {
    position: absolute;
    color: #FFD700;
    font-size: 20px;
    animation: twinkle 3s infinite;
}

.banner-star.star-1 {
    top: 10px;
    left: 20px;
    animation-delay: 0s;
}

.banner-star.star-2 {
    top: 10px;
    right: 20px;
    animation-delay: 1s;
}

.banner-star.star-3 {
    bottom: 10px;
    left: 20px;
    animation-delay: 2s;
}

@keyframes twinkle {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

/* Close Button */
.banner-close {
    position: absolute;
    top: -32px;
    right: 10px;
    background: #000000;
    color: #FFD700;
    border: 2px solid #FFD700;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.banner-close:hover {
    background: #FFD700;
    color: #000000;
    transform: scale(1.1);
}

/* Mobile Responsive Design */
@media (max-width: 768px) {
    .app-download-banner {
        max-height: none;
        border-radius: 0;
    }
    
    .banner-content {
        flex-direction: column;
        padding: 15px;
        gap: 15px;
        text-align: center;
    }
    
    .banner-app-icon {
        width: 70px;
        height: 70px;
        font-size: 28px;
    }
    
    .banner-title {
        font-size: 24px;
    }
    
    .banner-subtitle {
        font-size: 16px;
    }
    
    .banner-bonus {
        font-size: 20px;
        padding: 6px 12px;
    }
    
    .banner-benefits {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .benefit-item {
        flex-direction: column;
        text-align: center;
        gap: 6px;
    }
    
    .benefit-item span {
        font-size: 14px;
    }
    
    .banner-actions {
        width: 100%;
    }
    
    .banner-main-btn {
        width: 100%;
        max-width: 300px;
        padding: 15px 25px;
        font-size: 18px;
    }
    
    .banner-store-buttons {
        width: 100%;
        justify-content: center;
    }
    
    .store-btn {
        flex: 1;
        max-width: 120px;
    }
    
    .banner-star {
        display: none;
    }
}

@media (max-width: 480px) {
    .banner-content {
        padding: 12px;
    }
    
    .banner-app-icon {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }
    
    .banner-title {
        font-size: 20px;
    }
    
    .banner-subtitle {
        font-size: 14px;
    }
    
    .banner-bonus {
        font-size: 18px;
        padding: 5px 10px;
    }
    
    .banner-benefits {
        display: none;
    }
    
    .banner-main-btn {
        font-size: 16px;
        padding: 12px 20px;
    }
    
    .banner-store-buttons {
        gap: 8px;
    }
    
    .store-btn {
        max-width: none;
        width: 100%;
    }
    
    .banner-trust {
        font-size: 11px;
        padding: 4px 8px;
    }
}

/* Animation for banner appearance */
@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

@keyframes slideDown {
    from {
        transform: translateY(0);
    }
    to {
        transform: translateY(100%);
    }
}

.app-download-banner.slide-up {
    animation: slideUp 0.6s ease forwards;
}

.app-download-banner.slide-down {
    animation: slideDown 0.6s ease forwards;
}

/* Hover effects for interactive elements */
.banner-main-btn:active {
    transform: scale(0.95);
}

.store-btn:active {
    transform: scale(0.95);
}

/* Focus styles for accessibility */
.banner-main-btn:focus,
.store-btn:focus,
.banner-close:focus {
    outline: 2px solid #78E02C;
    outline-offset: 2px;
}

/* Loading state for main button */
.banner-main-btn.loading {
    animation: pulse 1s infinite;
    pointer-events: none;
}

.banner-main-btn.loading::after {
    content: '';
    width: 16px;
    height: 16px;
    border: 2px solid #000000;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 8px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
