/* Banners and Popups Styles */

/* Welcome Popup */
.welcome-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.welcome-popup.active {
    opacity: 1;
    visibility: visible;
}

.welcome-content {
    background: linear-gradient(135deg, #2d3748, #4a5568);
    border-radius: 20px;
    padding: 40px;
    max-width: 500px;
    margin: 20px;
    text-align: center;
    position: relative;
    border: 2px solid #ffb80c;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    animation: popupSlideIn 0.5s ease;
}

@keyframes popupSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.welcome-content .close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: #e2e8f0;
    font-size: 24px;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.welcome-content .close-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffb80c;
}

.welcome-title {
    color: #ffb80c;
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.welcome-subtitle {
    color: #e2e8f0;
    font-size: 16px;
    margin-bottom: 25px;
    line-height: 1.5;
}

.welcome-bonus {
    background: linear-gradient(135deg, #e53e3e, #c53030);
    color: white;
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 25px;
    font-size: 18px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.welcome-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.popup-btn-primary {
    background: linear-gradient(135deg, #ffb80c, #ff8c00);
    color: #000;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.popup-btn-secondary {
    background: transparent;
    color: #e2e8f0;
    border: 2px solid #e2e8f0;
    padding: 10px 28px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.popup-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 184, 12, 0.3);
}

.popup-btn-secondary:hover {
    background: #e2e8f0;
    color: #1a202c;
}

/* App Download Banner */
.app-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #1a202c, #2d3748);
    border-top: 3px solid #ffb80c;
    padding: 15px 20px;
    z-index: 900;
    transform: translateY(100%);
    transition: transform 0.4s ease;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.3);
}

.app-banner.active {
    transform: translateY(0);
}

.app-banner-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
    gap: 15px;
    position: relative;
}

.app-info {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
    min-width: 200px;
}

.app-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #ffb80c, #ff8c00);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #1a202c;
}

.app-text {
    color: #e2e8f0;
}

.app-title {
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 2px;
}

.app-subtitle {
    font-size: 14px;
    opacity: 0.8;
}

.app-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.app-download-btn {
    background: linear-gradient(135deg, #48bb78, #38a169);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.app-download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(72, 187, 120, 0.3);
}

.app-close {
    background: none;
    border: none;
    color: #e2e8f0;
    font-size: 20px;
    cursor: pointer;
    padding: 5px;
    border-radius: 4px;
    transition: all 0.3s ease;
    position: absolute;
    top: 5px;
    right: 10px;
}

.app-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffb80c;
}

/* Floating Bonus Button */
.floating-bonus {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 800;
    animation: bounceFloat 3s ease-in-out infinite;
}

@keyframes bounceFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.bonus-button {
    background: linear-gradient(135deg, #e53e3e, #c53030);
    color: white;
    border: none;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    cursor: pointer;
    position: relative;
    box-shadow: 0 8px 20px rgba(229, 62, 62, 0.4);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    text-align: center;
    line-height: 1.2;
}

.bonus-button:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 30px rgba(229, 62, 62, 0.6);
}

.bonus-button::before {
    content: '';
    position: absolute;
    top: -5px;
    right: -5px;
    width: 20px;
    height: 20px;
    background: #ffb80c;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: #1a202c;
    font-weight: bold;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.7;
    }
}

.bonus-icon {
    font-size: 20px;
    margin-bottom: 2px;
}

/* Bonus Details Popup */
.bonus-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.bonus-popup.active {
    opacity: 1;
    visibility: visible;
}

.bonus-content {
    background: linear-gradient(135deg, #2d3748, #4a5568);
    border-radius: 20px;
    padding: 30px;
    max-width: 400px;
    margin: 20px;
    text-align: center;
    position: relative;
    border: 2px solid #e53e3e;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    animation: popupSlideIn 0.5s ease;
}

.bonus-header {
    color: #e53e3e;
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.bonus-amount {
    background: linear-gradient(135deg, #ffb80c, #ff8c00);
    color: #1a202c;
    padding: 20px;
    border-radius: 15px;
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(255, 184, 12, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.bonus-description {
    color: #e2e8f0;
    margin-bottom: 25px;
    line-height: 1.5;
}

/* Download Success Message */
.download-message {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #48bb78, #38a169);
    color: white;
    padding: 15px 20px;
    border-radius: 8px;
    z-index: 1002;
    font-weight: 600;
    box-shadow: 0 5px 15px rgba(72, 187, 120, 0.3);
    animation: slideInRight 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.download-message .close-download {
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    padding: 0;
    margin-left: 10px;
    transition: opacity 0.3s ease;
}

.download-message .close-download:hover {
    opacity: 0.7;
}

/* Responsive Design */
@media (max-width: 768px) {
    .welcome-content {
        padding: 30px 20px;
        margin: 10px;
    }

    .welcome-title {
        font-size: 24px;
    }

    .app-banner-content {
        flex-direction: column;
        text-align: center;
        padding-bottom: 40px;
    }

    .app-info {
        justify-content: center;
        min-width: auto;
    }

    .app-close {
        top: 10px;
        right: 10px;
    }

    .floating-bonus {
        bottom: 100px;
        right: 20px;
    }

    .bonus-button {
        width: 60px;
        height: 60px;
        font-size: 11px;
    }

    .bonus-icon {
        font-size: 18px;
    }

    .download-message {
        right: 10px;
        left: 10px;
        top: 10px;
    }
}

@media (max-width: 480px) {
    .welcome-content {
        padding: 25px 15px;
        margin: 5px;
    }

    .welcome-title {
        font-size: 20px;
    }

    .welcome-actions {
        flex-direction: column;
        gap: 10px;
    }

    .popup-btn-primary,
    .popup-btn-secondary {
        width: 100%;
        text-align: center;
    }

    .bonus-content {
        padding: 25px 20px;
        margin: 10px;
    }

    .floating-bonus {
        bottom: 80px;
        right: 15px;
    }

    .bonus-button {
        width: 55px;
        height: 55px;
        font-size: 10px;
    }
}

/* Hide floating bonus when app banner is active */
body.app-banner-active .floating-bonus {
    bottom: 130px;
}

@media (max-width: 768px) {
    body.app-banner-active .floating-bonus {
        bottom: 180px;
    }
}

/* Animation for download notification */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Overlay styles */
.popup-overlay {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
}

/* Improved close button styles */
.close-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #e2e8f0;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #ffb80c;
    transform: scale(1.1);
}
