/**
 * FCM & PWA Styles
 * Premium dark aesthetics with glassmorphism and smooth animations.
 */

/* Subscription Widget */
.fcm-subscription-widget {
    position: fixed;
    left: 20px;
    bottom: 20px;
    z-index: 9999;
    max-width: 360px;
    width: calc(100% - 24px);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.fcm-widget-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
    border-radius: 16px;
    background: rgba(17, 17, 17, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
    color: #ffffff;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.fcm-widget-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.09);
    font-size: 18px;
}

.fcm-widget-copy h4 {
    margin: 0 0 4px;
    font-size: 15px;
    font-weight: 600;
}

.fcm-widget-copy p {
    margin: 0;
    font-size: 13px;
    line-height: 1.4;
    color: #c9c9c9;
}

.fcm-widget-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.fcm-widget-btn {
    border: none;
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.fcm-widget-btn:hover {
    transform: translateY(-1px);
}

.fcm-widget-btn.primary {
    background: #ffffff;
    color: #111111;
}

.fcm-widget-btn.secondary {
    background: rgba(255, 255, 255, 0.08);
    color: #f4f4f4;
}

.fcm-widget-btn:disabled {
    opacity: 0.65;
    cursor: default;
    transform: none;
}

.fcm-widget-status {
    min-height: 16px;
    font-size: 12px;
    color: #c9c9c9;
}

.fcm-widget-status.success {
    color: #7ee6a6;
}

.fcm-widget-status.blocked {
    color: #ffb2b2;
}

.fcm-widget-status.loading {
    color: #d9d9d9;
}

@media (max-width: 600px) {
    .fcm-subscription-widget {
        right: 12px;
        left: 12px;
        bottom: 12px;
        max-width: none;
        width: auto;
    }

    .fcm-widget-actions {
        justify-content: stretch;
    }

    .fcm-widget-btn {
        flex: 1;
    }
}

/* PWA Install Banner */
.pwa-install-banner {
    position: fixed;
    bottom: 25px;
    left: 25px;
    max-width: 350px;
    background: rgba(30, 30, 30, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    color: #ffffff;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    z-index: 9998;
    transform: translateY(150%);
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.pwa-install-banner.show {
    transform: translateY(0);
}

.pwa-install-banner h4 {
    margin: 0 0 6px 0;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: -0.2px;
}

.pwa-install-banner p {
    margin: 0 0 15px 0;
    font-size: 12px;
    color: #aaaaaa;
    line-height: 1.4;
}

.pwa-install-banner .actions {
    display: flex;
    gap: 10px;
}

.pwa-install-banner button {
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: background 0.2s;
}

.pwa-install-banner .btn-install {
    background: #ffffff;
    color: #111111;
}

.pwa-install-banner .btn-install:hover {
    background: #eeeeee;
}

.pwa-install-banner .btn-dismiss {
    background: transparent;
    color: #888888;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.pwa-install-banner .btn-dismiss:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
}

/* Animations */
@keyframes fcm-ring {
    0% { transform: rotate(0); }
    1% { transform: rotate(30deg); }
    3% { transform: rotate(-28deg); }
    5% { transform: rotate(34deg); }
    7% { transform: rotate(-32deg); }
    9% { transform: rotate(30deg); }
    11% { transform: rotate(-28deg); }
    13% { transform: rotate(26deg); }
    15% { transform: rotate(-24deg); }
    17% { transform: rotate(22deg); }
    19% { transform: rotate(-20deg); }
    21% { transform: rotate(18deg); }
    23% { transform: rotate(-16deg); }
    25% { transform: rotate(14deg); }
    27% { transform: rotate(-12deg); }
    29% { transform: rotate(10deg); }
    31% { transform: rotate(-8deg); }
    33% { transform: rotate(6deg); }
    35% { transform: rotate(-4deg); }
    37% { transform: rotate(2deg); }
    39% { transform: rotate(-1deg); }
    41% { transform: rotate(1deg); }
    43% { transform: rotate(0); }
    100% { transform: rotate(0); }
}
