/**
 * SocioMate Frontend Styles
 * Floating Bell, Slide-in Prompt, and Modal Dialogs
 */

#sociomate-bell-container {
    position: fixed;
    z-index: 999998;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

/* Positioning */
.sociomate-bell-bottom-right {
    bottom: 25px;
    right: 25px;
}
.sociomate-bell-bottom-left {
    bottom: 25px;
    left: 25px;
}
.sociomate-bell-top-right {
    top: 25px;
    right: 25px;
}
.sociomate-bell-top-left {
    top: 25px;
    left: 25px;
}

/* Floating Bell Button */
.sociomate-bell {
    width: 52px;
    height: 52px;
    background: #2563eb;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4);
    position: relative;
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.2s ease, box-shadow 0.2s ease;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.sociomate-bell:hover {
    transform: scale(1.08);
    background: #1d4ed8;
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.5);
}

.sociomate-bell:active {
    transform: scale(0.95);
}

.sociomate-bell-icon {
    width: 26px;
    height: 26px;
    stroke: #ffffff;
}

/* Status Indicator Dot */
.sociomate-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 13px;
    height: 13px;
    background: #f59e0b;
    border: 2px solid #ffffff;
    border-radius: 50%;
}

/* Subtle Pulse Animation for un-subscribed users */
.sociomate-bell.is-pulse::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border-radius: 50%;
    border: 2px solid #3b82f6;
    animation: sociomate-pulse 2s infinite cubic-bezier(0.4, 0, 0.6, 1);
    opacity: 0.8;
}

@keyframes sociomate-pulse {
    0% {
        transform: scale(0.95);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.25);
        opacity: 0;
    }
    100% {
        transform: scale(0.95);
        opacity: 0;
    }
}

/* Slide-in Prompt Banner */
.sociomate-prompt {
    position: absolute;
    bottom: 70px;
    right: 0;
    width: 320px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.15), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
    padding: 16px;
    box-sizing: border-box;
    transform: translateY(15px);
    opacity: 0;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

.sociomate-bell-bottom-left .sociomate-prompt {
    right: auto;
    left: 0;
}

.sociomate-slide-in {
    transform: translateY(0);
    opacity: 1;
}

.sociomate-prompt-content {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
}

.sociomate-prompt-icon {
    font-size: 28px;
    line-height: 1;
}

.sociomate-prompt-text h4 {
    margin: 0 0 4px 0;
    font-size: 15px;
    font-weight: 700;
    color: #1e293b;
}

.sociomate-prompt-text p {
    margin: 0;
    font-size: 13px;
    line-height: 1.45;
    color: #64748b;
}

.sociomate-prompt-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

.sociomate-btn-primary {
    background: #2563eb;
    color: #ffffff;
    border: none;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.sociomate-btn-primary:hover {
    background: #1d4ed8;
}

.sociomate-btn-secondary {
    background: transparent;
    color: #64748b;
    border: 1px solid #cbd5e1;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.sociomate-btn-secondary:hover {
    background: #f1f5f9;
    color: #334155;
}

.sociomate-btn-danger {
    background: #ef4444;
    color: #ffffff;
    border: none;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.sociomate-btn-danger:hover {
    background: #dc2626;
}

/* Modal Window for Subscribed State */
.sociomate-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(4px);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
}

.sociomate-modal-card {
    background: #ffffff;
    width: 100%;
    max-width: 400px;
    border-radius: 12px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.15), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    padding: 20px;
    box-sizing: border-box;
}

.sociomate-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 10px;
}

.sociomate-modal-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
}

.sociomate-close-btn {
    background: none;
    border: none;
    font-size: 22px;
    line-height: 1;
    color: #94a3b8;
    cursor: pointer;
    padding: 0;
}

.sociomate-modal-body p {
    font-size: 14px;
    color: #475569;
    line-height: 1.5;
    margin: 0 0 16px 0;
}

.sociomate-modal-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* Success Toast */
.sociomate-toast {
    position: fixed;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%) translateY(30px);
    background: #0f172a;
    color: #f8fafc;
    padding: 12px 22px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    z-index: 1000000;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}

.sociomate-toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* Responsive adjustment for Mobile screens */
@media (max-width: 480px) {
    .sociomate-prompt {
        width: calc(100vw - 40px);
        left: 20px !important;
        right: 20px !important;
    }
}
