/**
 * Face2News App Download Tracker - Front-end Modal Styles
 * Modern, Ultra-Premium Glassmorphic Design System
 */

/* -----------------------------------------------------------------
   1. OVERLAY & BACKDROP
----------------------------------------------------------------- */
#f2n-overlay {
    position: fixed;
    inset: 0;
    z-index: 999999;
    background: rgba(13, 27, 42, 0.78);
    -webkit-backdrop-filter: blur(12px) saturate(160%);
    backdrop-filter: blur(12px) saturate(160%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

#f2n-overlay.f2n-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* -----------------------------------------------------------------
   2. MODAL CARD CONTAINER
----------------------------------------------------------------- */
#f2n-card {
    background: #ffffff;
    border-radius: 24px;
    max-width: 420px;
    width: 100%;
    padding: 32px 28px 28px;
    position: relative;
    text-align: center;
    box-shadow: 0 25px 50px -12px rgba(13, 27, 42, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.3) inset;
    transform: scale(0.92) translateY(24px);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    box-sizing: border-box;
    overflow: hidden;
}

#f2n-card * {
    box-sizing: border-box;
}

#f2n-overlay.f2n-active #f2n-card {
    transform: scale(1) translateY(0);
}

/* Decorative Top Accent Bar */
#f2n-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #d32f2f 0%, #ff5252 50%, #1a73e8 100%);
}

/* -----------------------------------------------------------------
   3. CLOSE BUTTON
----------------------------------------------------------------- */
#f2n-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid #eef2f6;
    background: #f8fafc;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    line-height: 1;
    transition: all 0.2s ease;
    outline: none;
    z-index: 10;
}

#f2n-close:hover {
    background: #fee2e2;
    color: #dc2626;
    border-color: #fca5a5;
    transform: rotate(90deg);
}

#f2n-close .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
    line-height: 1;
}

#f2n-close:focus-visible {
    box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.2);
}

/* -----------------------------------------------------------------
   4. BADGE PILL & HEADER
----------------------------------------------------------------- */
.f2n-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #d32f2f 0%, #b71c1c 100%);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 5px 14px;
    border-radius: 50px;
    margin-bottom: 16px;
    box-shadow: 0 4px 12px rgba(211, 47, 47, 0.25);
}

.f2n-pulse-dot {
    width: 6px;
    height: 6px;
    background-color: #ffffff;
    border-radius: 50%;
    animation: f2nPulse 1.8s infinite;
}

@keyframes f2nPulse {
    0% { transform: scale(0.95); opacity: 0.8; }
    50% { transform: scale(1.4); opacity: 1; }
    100% { transform: scale(0.95); opacity: 0.8; }
}

.f2n-modal-title {
    font-size: 21px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 16px;
    line-height: 1.3;
    letter-spacing: -0.3px;
}

/* -----------------------------------------------------------------
   5. FEATURES LIST
----------------------------------------------------------------- */
.f2n-features {
    background: #f8fafc;
    border-radius: 16px;
    padding: 14px 16px;
    margin-bottom: 18px;
    text-align: left;
    border: 1px solid #e2e8f0;
}

.f2n-feature-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    font-size: 13.5px;
    font-weight: 500;
    color: #334155;
    border-bottom: 1px dashed #e2e8f0;
}

.f2n-feature-row:last-child {
    border-bottom: none;
    padding-bottom: 2px;
}

.f2n-feature-row:first-child {
    padding-top: 2px;
}

.f2n-feat-icon {
    width: 30px;
    height: 30px;
    border-radius: 10px;
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 4px rgba(220, 38, 38, 0.1);
}

.f2n-feat-icon .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    color: #dc2626;
}

/* -----------------------------------------------------------------
   6. QR CODE WRAPPER
----------------------------------------------------------------- */
.f2n-qr-wrap {
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 18px;
    padding: 18px;
    margin-bottom: 16px;
    border: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    position: relative;
}

.f2n-qr-inner {
    background: #ffffff;
    border-radius: 14px;
    padding: 10px;
    border: 1px solid #cbd5e1;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
    position: relative;
    overflow: hidden;
}

.f2n-qr-inner img {
    display: block;
    width: 124px;
    height: 124px;
    border-radius: 6px;
    object-fit: contain;
}

.f2n-qr-label {
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 6px;
}

.f2n-qr-label .dashicons {
    font-size: 15px;
    width: 15px;
    height: 15px;
    color: #1a73e8;
}

/* -----------------------------------------------------------------
   7. DIVIDER & PLAY STORE BUTTON
----------------------------------------------------------------- */
.f2n-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 14px 0;
    color: #94a3b8;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.f2n-divider::before,
.f2n-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e2e8f0;
}

.f2n-play-link {
    display: inline-block;
    text-decoration: none;
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease;
    outline: none;
    border-radius: 12px;
}

.f2n-play-link:hover {
    transform: translateY(-3px);
}

.f2n-play-link:active {
    transform: scale(0.97);
}

.f2n-play-link img {
    display: block;
    height: 56px;
    width: auto;
    margin: 0 auto;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.12));
    transition: filter 0.2s ease;
}

.f2n-play-link:hover img {
    filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.2));
}

.f2n-play-btn-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #ffffff;
    padding: 14px 28px;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 700;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.25);
    transition: all 0.2s ease;
}

.f2n-play-btn-fallback:hover {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.35);
}

/* Responsive queries */
@media (max-width: 480px) {
    #f2n-card {
        padding: 26px 20px 22px;
        border-radius: 20px;
    }
    .f2n-modal-title {
        font-size: 19px;
    }
    .f2n-qr-inner img {
        width: 110px;
        height: 110px;
    }
}
