/*
 * File: phone-handler.css
 * Purpose: Styling for the Auraa 'Open with' System-style Popup
 * Placement: /static/css/phone-handler.css
 * Design: Native Mobile Dialog (Light, Clean)
 */

/* Popup Overlay */
.auraa-phone-popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 2147483647;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.auraa-phone-popup-overlay.active {
    display: flex;
    opacity: 1;
}

/* Popup Card */
.auraa-phone-popup-card {
    background: #0A325A;
    width: 90%;
    max-width: 260px; /* Reduced width to fit icons snugly */
    border-radius: 32px;
    padding: 0;
    position: relative;
    text-align: left;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
}

.auraa-phone-popup-overlay.active .auraa-phone-popup-card {
    transform: translateY(0);
}

/* Header */
.auraa-phone-popup-header {
    padding: 24px 28px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.auraa-phone-popup-title {
    font-size: 18px;
    font-weight: 700;
    color: #FFFFFF;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.auraa-phone-popup-close-btn {
    background: #FFFFFF;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #f5071d;
    cursor: pointer;
    transition: all 0.2s;
    padding: 0;
}

.auraa-phone-popup-close-btn:hover {
    background: #eeeeee;
    color: #000;
}

.auraa-phone-popup-close-btn svg {
    width: 16px;
    height: 16px;
}

/* App Grid */
.auraa-phone-popup-buttons {
    display: flex;
    padding: 12px 28px 40px;
    gap: 24px;
    justify-content: center;
}

.auraa-phone-app-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-decoration: none !important;
    cursor: pointer;
    transition: transform 0.2s;
}

.auraa-phone-app-item:active {
    transform: scale(0.9);
}

.auraa-phone-app-icon-wrap {
    width: 68px;
    height: 68px;
    background: #FFFFFF;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.auraa-phone-app-item:hover .auraa-phone-app-icon-wrap {
    background: #eeeeee;
}

.auraa-phone-app-icon {
    width: 36px;
    height: 36px;
}

.auraa-phone-app-label {
    font-size: 11px;
    color: #FFFFFF;
    font-weight: 500;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Mobile Bottom Sheet */
@media (max-width: 767px) {
    .auraa-phone-popup-overlay {
        align-items: flex-end;
    }

    .auraa-phone-popup-card {
        width: 100%;
        max-width: none;
        border-radius: 32px 32px 0 0;
        transform: translateY(100%);
        padding-bottom: env(safe-area-inset-bottom);
    }

    .auraa-phone-popup-overlay.active .auraa-phone-popup-card {
        transform: translateY(0);
    }
}




