/* SportyXi - Premium Mobile Phone Popup Styles */

.app-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.app-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.phone-popup-container {
    position: relative;
    cursor: pointer;
    transform: translateY(40px) scale(0.95);
    transition: all 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.app-modal-overlay.active .phone-popup-container {
    transform: translateY(0) scale(1);
    animation: popup-float 4s ease-in-out infinite;
    animation-delay: 0.5s;
}

/* Glassmorphic Close Button */
.popup-close-btn {
    position: absolute;
    top: -15px;
    right: -15px;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #f6dfdf;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 100;
    border: 1px solid rgba(220, 179, 179, 0.2);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.popup-close-btn:hover {
    background: rgba(255, 60, 60, 0.8);
    border-color: rgba(255, 60, 60, 1);
    transform: scale(1.1) rotate(90deg);
}

.popup-phone-wrap {
    position: relative;
    width: 280px; 
}

.popup-phone-shadow {
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    width: 180px;
    height: 20px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    filter: blur(12px);
}

.popup-phone-frame {
    background: linear-gradient(145deg, #1a1a1a, #0a0a0a);
    border-radius: 42px;
    padding: 12px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.6), 
                inset 0 0 0 2px #333,
                inset 0 0 20px rgba(232, 255, 0, 0.05);
}

.popup-phone-screen {
    background: linear-gradient(160deg, #0f0f13, #1a1a2e 50%, #0f0f13);
    border-radius: 32px;
    overflow: hidden;
    aspect-ratio: 9/19;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 40px 20px 24px;
    position: relative;
    border: 1px solid rgba(255,255,255,0.05);
}

.popup-phone-screen::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 0%, rgba(232,255,0,0.15), transparent 50%);
    pointer-events: none;
}

.popup-phone-notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 90px;
    height: 26px;
    background: #0a0a0a;
    border-radius: 0 0 20px 20px;
    z-index: 5;
    box-shadow: inset 0 -1px 2px rgba(255,255,255,0.05);
}

.popup-phone-logo {
    width: 70px;
    height: 70px;
    object-fit: contain;
    z-index: 1;
    filter: drop-shadow(0 4px 10px rgba(232,255,0,0.2));
    margin-bottom: 15px;
}

.popup-phone-name {
    font-family: 'Bebas Neue', Arial, sans-serif;
    font-size: 32px;
    letter-spacing: 1.5px;
    color: #fff;
    z-index: 1;
    margin-bottom: 4px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.popup-phone-subtext {
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    color: #a0a0b0;
    z-index: 1;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.popup-qr-code {
    width: 120px;
    height: 120px;
    background: rgba(255, 255, 255, 0.95);
    padding: 8px;
    border-radius: 16px;
    z-index: 1;
    box-shadow: 0 10px 25px rgba(0,0,0,0.4);
    transition: transform 0.3s ease;
}

.popup-qr-code:hover {
    transform: scale(1.05);
}

/* প্রোডাকশন লেভেল ডাউনলোড বার (আরও ছোট এবং প্রফেশনাল করা হয়েছে) */
.popup-phone-dl-bar {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: linear-gradient(90deg, rgba(232,255,0,0.1), rgba(232,255,0,0.2));
    border: 1px solid rgba(232,255,0,0.3);
    border-radius: 12px;
    padding: 8px 12px; /* প্যাডিং কমিয়ে বক্স ছোট করা হয়েছে */
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 1;
    backdrop-filter: blur(5px);
    transition: background 0.3s ease, transform 0.2s ease;
}

.popup-phone-wrap:hover .popup-phone-dl-bar {
    background: linear-gradient(90deg, rgba(232,255,0,0.15), rgba(232,255,0,0.3));
    transform: translateY(-2px);
}

.dl-bar-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.dl-bar-text {
    display: flex;
    flex-direction: column;
}

.dl-title {
    color: rgba(255,255,255,0.95);
    font-size: 13px;
    font-weight: 700;
    font-family: 'DM Sans', sans-serif;
}

.dl-sub {
    color: rgba(232,255,0,0.8);
    font-size: 10px;
    font-weight: 500;
    font-family: 'DM Sans', sans-serif;
    letter-spacing: 0.5px;
}

/* হলুদ অ্যারো বাটনটি ছোট করা হয়েছে */
.popup-dl-arrow {
    width: 26px; /* সাইজ কমানো হয়েছে */
    height: 26px; /* সাইজ কমানো হয়েছে */
    background: #14c764;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(232,255,0,0.3);
    transition: transform 0.2s ease;
}

.popup-phone-wrap:hover .popup-dl-arrow {
    transform: scale(1.1);
}

.popup-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    z-index: -1;
    pointer-events: none;
    opacity: 0.8;
}

.popup-b1 {
    width: 320px;
    height: 320px;
    background: rgba(232,255,0,0.12);
    top: -60px;
    right: -120px;
}

.popup-b2 {
    width: 250px;
    height: 250px;
    background: rgba(0, 195, 255, 0.12);
    bottom: -50px;
    left: -100px;
}

@keyframes popup-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}
