/**
 * MEC Dates Chat Notifications - Styles
 * Styles for notification permission banner and UI elements
 */

/* Notification Permission Banner */
.mec-notification-banner {
    position: fixed;
    top: -100px;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    z-index: 999999;
    transition: top 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    padding: 16px 20px;
}

.mec-notification-banner.show {
    top: 0;
}

.mec-notification-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.mec-notification-icon {
    font-size: 32px;
    animation: bellRing 2s ease-in-out infinite;
}

@keyframes bellRing {

    0%,
    100% {
        transform: rotate(0deg);
    }

    10%,
    30% {
        transform: rotate(-10deg);
    }

    20%,
    40% {
        transform: rotate(10deg);
    }
}

.mec-notification-text {
    flex: 1;
    min-width: 200px;
    color: white;
}

.mec-notification-text strong {
    display: block;
    font-size: 16px;
    margin-bottom: 4px;
    font-weight: 600;
}

.mec-notification-text p {
    margin: 0;
    font-size: 14px;
    opacity: 0.95;
}

.mec-notification-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.mec-notification-actions button {
    padding: 10px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.mec-btn-allow {
    background: white;
    color: #667eea;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.mec-btn-allow:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.mec-btn-deny {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.mec-btn-deny:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Notification Settings Toggle (Optional - for settings panel) */
.mec-notification-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    margin: 12px 0;
}

.mec-notification-toggle-label {
    display: flex;
    align-items: center;
    gap: 12px;
    color: white;
    font-size: 15px;
}

.mec-notification-toggle-label .icon {
    font-size: 20px;
}

.mec-toggle-switch {
    position: relative;
    width: 50px;
    height: 26px;
}

.mec-toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.mec-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 26px;
    transition: 0.3s;
}

.mec-toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background: white;
    border-radius: 50%;
    transition: 0.3s;
}

.mec-toggle-switch input:checked+.mec-toggle-slider {
    background: #4caf50;
}

.mec-toggle-switch input:checked+.mec-toggle-slider:before {
    transform: translateX(24px);
}

/* Notification Status Badge */
.mec-notification-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(76, 175, 80, 0.2);
    border: 1px solid rgba(76, 175, 80, 0.4);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: #4caf50;
}

.mec-notification-status.disabled {
    background: rgba(244, 67, 54, 0.2);
    border-color: rgba(244, 67, 54, 0.4);
    color: #f44336;
}

.mec-notification-status .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .mec-notification-banner {
        padding: 12px 16px;
    }

    .mec-notification-banner-content {
        gap: 12px;
    }

    .mec-notification-icon {
        font-size: 24px;
    }

    .mec-notification-text strong {
        font-size: 14px;
    }

    .mec-notification-text p {
        font-size: 12px;
    }

    .mec-notification-actions {
        width: 100%;
        justify-content: stretch;
    }

    .mec-notification-actions button {
        flex: 1;
        padding: 12px 16px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .mec-notification-banner-content {
        flex-direction: column;
        text-align: center;
    }

    .mec-notification-icon {
        margin: 0 auto;
    }
}

/* iOS Safari Specific Fixes */
@supports (-webkit-touch-callout: none) {
    .mec-notification-banner {
        padding-top: calc(env(safe-area-inset-top) + 16px);
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .mec-notification-banner {
        background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%);
    }
}