/* ═══════════════════════════════════════════════════════════════════
   firebase-push.css — FCM Toast & Permission Banner Styles
   ═══════════════════════════════════════════════════════════════════ */

/* ── Toast Container ── */
#fcm-toast-container {
    position: fixed;
    top: 1.25rem;
    right: 1.25rem;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: 360px;
    width: calc(100% - 2rem);
}

/* ── Toast Kartı ── */
.fcm-toast {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    background: rgba(15, 15, 25, 0.92);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 0.85rem 1rem;
    box-shadow:
        0 4px 24px rgba(0, 0, 0, 0.45),
        0 1px 0 rgba(255, 255, 255, 0.06) inset;
    animation: fcm-slide-in 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    cursor: default;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.fcm-toast:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.55);
}

.fcm-toast-hide {
    animation: fcm-slide-out 0.38s ease forwards !important;
}

/* ── Toast Icon ── */
.fcm-toast-icon {
    font-size: 1.4rem;
    line-height: 1;
    flex-shrink: 0;
    padding-top: 2px;
}

/* ── Toast Content ── */
.fcm-toast-content {
    flex: 1;
    min-width: 0;
}

.fcm-toast-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: #f8f8f8;
    line-height: 1.3;
    margin-bottom: 0.2rem;
}

.fcm-toast-body {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* ── Close Button ── */
.fcm-toast-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.8rem;
    cursor: pointer;
    padding: 0 0 0 0.5rem;
    flex-shrink: 0;
    transition: color 0.15s;
}

.fcm-toast-close:hover {
    color: rgba(255, 255, 255, 0.9);
}

/* ── Toast Türleri ── */
.fcm-toast-success { border-left: 3px solid #10b981; }
.fcm-toast-info    { border-left: 3px solid #3b82f6; }
.fcm-toast-warning { border-left: 3px solid #f59e0b; }
.fcm-toast-error   { border-left: 3px solid #ef4444; }

/* ── Animations ── */
@keyframes fcm-slide-in {
    from { opacity: 0; transform: translateX(110%); }
    to   { opacity: 1; transform: translateX(0); }
}

@keyframes fcm-slide-out {
    from { opacity: 1; transform: translateX(0); max-height: 200px; }
    to   { opacity: 0; transform: translateX(110%); max-height: 0; padding: 0; margin: 0; }
}

/* ── Permission Banner ── */
#fcm-permission-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 99990;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.9rem 1.5rem;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.97) 0%, rgba(30, 41, 59, 0.97) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.9rem;
    animation: fcm-banner-in 0.4s ease;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.35);
}

@keyframes fcm-banner-in {
    from { transform: translateY(100%); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

/* ── Responsive ── */
@media (max-width: 480px) {
    #fcm-toast-container {
        top: auto;
        bottom: 5rem;
        right: 0.75rem;
        left: 0.75rem;
        max-width: 100%;
    }

    #fcm-permission-banner {
        flex-direction: column;
        text-align: center;
        padding: 1rem;
    }
}
