/**
 * Fraud Warning System Styles
 * Banner popup and floating button styles
 */

/* Fraud Warning Banner */
.fraud-warning-banner {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2147483647;
    box-sizing: border-box;
    width: 100%;
    background-color: #fff;
    border-top: 4px solid #e74c3c;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
    animation: slideUp 0.3s ease-out;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* Banner when visible */
.fraud-warning-banner.is-visible,
.fraud-warning-banner[style*="display: block"] {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

.fraud-warning-banner__inner {
    max-width: 960px;
    margin: 0 auto;
    padding: 24px 20px;
}

.fraud-warning-banner__copy {
    margin-bottom: 16px;
}

.fraud-warning-banner__header {
    margin-bottom: 12px;
}

.fraud-warning-banner__header h2 {
    color: #e74c3c;
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 8px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.fraud-warning-banner__header h2 i {
    font-size: 24px;
}

.fraud-warning-banner__description {
    color: #333;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 16px;
}

.fraud-warning-banner__description p {
    margin-bottom: 12px;
}

.fraud-warning-banner__description p:last-child {
    margin-bottom: 0;
}

.fraud-warning-banner__description strong {
    color: #e74c3c;
    font-weight: 600;
}

.fraud-warning-banner__actions {
    text-align: center;
}

.fraud-warning-banner__cta {
    display: inline-block;
    min-width: 150px;
    padding: 12px 24px;
    border-radius: 4px;
    background-color: #e74c3c;
    color: #fff;
    text-decoration: none;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.1s ease;
}

.fraud-warning-banner__cta:hover {
    background-color: #c0392b;
    transform: translateY(-1px);
}

.fraud-warning-banner__cta:active {
    transform: translateY(0);
}

/* Floating Fraud Warning Button */
.fraud-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #e74c3c;
    color: #fff;
    padding: 12px 20px;
    border-radius: 6px;
    cursor: pointer;
    z-index: 9999;
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.4);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.fraud-button:hover {
    background-color: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(231, 76, 60, 0.5);
}

.fraud-button i {
    font-size: 16px;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 4px 12px rgba(231, 76, 60, 0.4);
    }
    50% {
        box-shadow: 0 4px 16px rgba(231, 76, 60, 0.6);
    }
}

/* Fraud Modal - Enhanced Style */
.fraud-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(4px);
    z-index: 9998;
    animation: fadeIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

#fraudModal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 650px;
    max-height: 90vh;
    overflow: hidden;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 20px;
    text-align: left;
    z-index: 9999;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(0, 0, 0, 0.05);
    animation: modalSlideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 1px solid rgba(255, 255, 255, 0.8);
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translate(-50%, -45%) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

#fraudModal .modal-content {
    padding: 0;
    overflow-y: auto;
    max-height: 90vh;
}

#fraudModal .close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 24px;
    font-weight: 300;
    color: #6c757d;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.1);
    padding: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

#fraudModal .close:hover {
    color: #fff;
    background-color: #e74c3c;
    border-color: #e74c3c;
    transform: rotate(90deg);
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
}

#fraudModal .close:active {
    transform: rotate(90deg) scale(0.95);
}

/* Modal Header Section */
#fraudModal .modal-header-section {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    padding: 35px 40px 30px;
    color: #fff;
    border-radius: 20px 20px 0 0;
    position: relative;
    overflow: hidden;
}

#fraudModal .modal-header-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: pulseGlow 3s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% {
        transform: scale(1);
        opacity: 0.3;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.5;
    }
}

#fraudModal h2 {
    color: #fff;
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 8px 0;
    display: flex;
    align-items: center;
    gap: 12px;
    padding-right: 50px;
    line-height: 1.3;
    position: relative;
    z-index: 2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

#fraudModal h2 i {
    font-size: 32px;
    animation: warningPulse 2s ease-in-out infinite;
}

@keyframes warningPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* Modal Body Section */
#fraudModal .modal-body-section {
    padding: 35px 40px;
    background: #fff;
}

#fraudModal p {
    color: #2c3e50;
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 20px;
    font-weight: 400;
}

#fraudModal p:last-child {
    margin-bottom: 0;
}

#fraudModal strong {
    color: #e74c3c;
    font-weight: 700;
    font-size: 17px;
}

#fraudModal .warning-icon-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
}

#fraudModal .warning-icon-container i {
    font-size: 48px;
    color: #e74c3c;
    opacity: 0.9;
}

/* Scrollbar styling for modal */
#fraudModal .modal-content::-webkit-scrollbar {
    width: 8px;
}

#fraudModal .modal-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

#fraudModal .modal-content::-webkit-scrollbar-thumb {
    background: #e74c3c;
    border-radius: 10px;
}

#fraudModal .modal-content::-webkit-scrollbar-thumb:hover {
    background: #c0392b;
}

/* Responsive Design */
@media screen and (max-width: 767px) {
    .fraud-warning-banner__inner {
        padding: 20px 16px;
    }

    .fraud-warning-banner__header h2 {
        font-size: 18px;
    }

    .fraud-warning-banner__description {
        font-size: 13px;
    }

    .fraud-warning-banner__cta {
        width: 100%;
        min-width: auto;
    }

        #fraudModal {
            width: 95%;
            max-width: 95%;
            max-height: 95vh;
            border-radius: 15px;
        }

        #fraudModal .modal-header-section {
            padding: 25px 25px 20px;
            border-radius: 15px 15px 0 0;
        }

        #fraudModal .modal-header-section h2 {
            font-size: 22px;
            padding-right: 45px;
        }

        #fraudModal .modal-header-section h2 i {
            font-size: 26px;
        }

        #fraudModal .modal-body-section {
            padding: 25px;
        }

        #fraudModal p {
            font-size: 14px;
            line-height: 1.7;
            margin-bottom: 16px;
        }

        #fraudModal .close {
            top: 15px;
            right: 15px;
            width: 32px;
            height: 32px;
            font-size: 20px;
        }

    .fraud-button {
        bottom: 15px;
        right: 15px;
        padding: 10px 16px;
        font-size: 13px;
    }
}

@media screen and (max-width: 480px) {
    .fraud-button {
        padding: 8px 12px;
        font-size: 12px;
    }

    .fraud-button span {
        display: none;
    }

    .fraud-button::after {
        content: "⚠";
        font-size: 16px;
    }
}


