/**
 * Admin Notices CSS for Costly
 *
 * This file contains all styles for admin notices, banners, and toast notifications
 * used throughout the WordPress admin interface.
 *
 * @package     Costly_Pricing_Tables
 * @subpackage  Admin/Assets/CSS
 * @since       1.0.3
 * @author      Vortix | Estudio Creativo <web@vortixestudio.com>
 * @link        https://vortixestudio.com/plugins/costly-pricing-tables/
 * @license     GPL-3.0+
 * @copyright   2025 Vortix | Estudio Creativo
 */

/* costly banners */
:root {
    --costly-admin-light-primary: #5d93c5;
    --costly-admin-light-secondary: #3575b4;
    --costly-admin-light-text: #022240;
}

.banner-costly {
    width: -webkit-fill-available;
    border-radius: 30px;
    background: linear-gradient(90deg, var(--costly-admin-light-text) 0%, var(--costly-admin-light-secondary) 50%, var(--costly-admin-light-primary) 100%) !important;
    position: relative !important;
    padding: 40px !important;
    margin: 20px auto !important;
    overflow: hidden;
    border: none !important;
    font-family: 'Montserrat', sans-serif;
}

.banner-costly .costly-dismiss-notice {
    position: absolute;
    background-color: transparent;
    border: none;
    top: 12px;
    right: 12px;
    margin: 0;
    padding: 10px;
    z-index: 9;
    box-shadow: none !important;
    outline: none !important;
    cursor: pointer;
    border-radius: 50%;
    background: transparent;
    transition: all 0.6s ease;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-costly .costly-dismiss-notice .dashicons {
    opacity: .4;
    transition: all ease-in-out .7s;
    color: #fff;
}

.banner-costly .costly-dismiss-notice:hover .dashicons {
    opacity: 1;
    transform: scale(1.1);
}

.banner-costly .costly-dismiss-notice svg {
    width: 12px;
    height: 12px;
    fill: #fff;
}

.banner-costly .costly-dismiss-notice::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease, opacity 0.3s ease;
    opacity: 0;
    z-index: -1;
}

.banner-costly .costly-dismiss-notice:hover {
    transform: rotate(90deg);
}

.banner-costly .costly-dismiss-notice:hover::before {
    width: 40px;
    height: 40px;
    opacity: 1;
}

.banner-costly .costly-dismiss-notice:before {
    color: var(--costly-admin-light-text);
    font-size: 22px;
    transition: all ease-in-out .7s;
}

.banner-costly .mensaje {
    position: relative;
    z-index: 1;
}

.banner-costly .title {
    color: #fff !important;
    font-size: 24px;
    font-weight: 700 !important;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    row-gap: 15px;
    column-gap: 30px;
    margin-top: 0;
}

.banner-costly .title-uno,
.banner-costly .title-dos {
    position: relative;
    line-height: 1;
    color: #fff !important;
    font-weight: 700 !important;
}

.banner-costly .title .icon {
    display: inline-block;
    max-width: 30px;
    vertical-align: middle;
    margin-right: 10px;
}

.banner-costly .title .icon svg {
    width: 100%;
}

.banner-costly .title .icon svg path {
    fill: #f6fffb;
}

.banner-costly .title .title-dos:after {
    content: "";
    background: #fff;
    width: 2px;
    position: absolute;
    left: -16.5px;
    top: 0;
    bottom: 0;
}

.banner-costly .text {
    color: #fff;
    font-size: 15px;
    line-height: 1.2;
    margin-bottom: 15px;
}

.banner-costly ul {
    list-style: none;
    padding-left: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.banner-costly li {
    color: #fff;
    margin-bottom: 0;
    font-size: 15px;
}

.banner-costly .botones {
    padding-top: 10px;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.banner-costly .btn-notificacion {
    background-color: #fff;
    border: 1px solid #eee;
    color: var(--costly-admin-light-primary);
    font-weight: 500;
    transition: all ease-in-out .7s;
    border-radius: 30px;
    padding: 7px 17px;
    text-decoration: none;
    box-shadow: none !important;
    outline: none !important;
    cursor: pointer;
    font-size: 14px;
}

.banner-costly .btn-notificacion:hover {
    background-color: var(--costly-admin-light-primary);
    border: 1px solid var(--costly-admin-light-primary) !important;
    color: #fff;
    box-shadow: none !important;
}

.banner-costly:after {
    background-image: url("../../../img/banner-bg.jpg");
    background-position: center right;
    background-size: cover;
    background-repeat: no-repeat;
    bottom: 0;
    content: "";
    left: auto;
    mix-blend-mode: soft-light;
    opacity: 0.5;
    position: absolute;
    right: 0;
    top: 0;
    z-index: 0;
    width: 100%;
    max-width: 50%;
    -webkit-mask-image: linear-gradient(to right, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.8) 100%);
    mask-image: linear-gradient(to right, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.8) 100%);
    filter: grayscale(1) brightness(1);
}

/* Review Banner Specific Styles */
#banner-costly-review .grupo {
    margin-top: 20px;
}

#banner-costly-review .botones {
    padding-top: 0;
}

/* Toast Notification Styles - Corregidos para mostrar SVGs por tipo */
.costly-toast {
    position: fixed;
    top: 32px;
    right: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 999999;
    min-width: 300px;
    max-width: 450px;
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.3s ease-in-out;
    overflow: hidden;
    border-left: 4px solid #00a32a;
    display: none;
}

.costly-toast.costly-toast-show {
    transform: translateX(0);
    opacity: 1;
    display: block;
}

.costly-toast.costly-toast-success {
    border-left-color: #00a32a;
}

.costly-toast.costly-toast-error {
    border-left-color: #d63638;
}

.costly-toast.costly-toast-info {
    border-left-color: #72aee6;
}

.costly-toast-content {
    display: flex;
    align-items: center;
    padding: 16px;
    gap: 12px;
}

.costly-toast-svg {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
}

/* Ocultar todos los paths por defecto */
.costly-toast-svg path {
    display: none !important;
}

/* Mostrar solo el path correspondiente al tipo activo */
.costly-toast.costly-toast-success .costly-toast-svg .costly-toast-success {
    display: block !important;
    fill: #00a32a !important;
}

.costly-toast.costly-toast-error .costly-toast-svg .costly-toast-error {
    display: block !important;
    fill: #d63638 !important;
}

.costly-toast.costly-toast-info .costly-toast-svg .costly-toast-info {
    display: block !important;
    fill: #72aee6 !important;
}

.costly-toast-message {
    font-size: 14px;
    line-height: 1.4;
    color: #1e1e1e;
    font-weight: 500;
    flex: 1;
}

.costly-toast-progress {
    height: 4px;
    background: rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.costly-toast-progress-bar {
    height: 100%;
    background: #00a32a;
    transform: translateX(-100%);
    transition: transform 5000ms linear;
}

.costly-toast.costly-toast-success .costly-toast-progress-bar {
    background: #00a32a;
}

.costly-toast.costly-toast-error .costly-toast-progress-bar {
    background: #d63638;
}

.costly-toast.costly-toast-info .costly-toast-progress-bar {
    background: #72aee6;
}

/* Responsive Design */
@media (max-width: 768px) {
    .banner-costly {
        padding: 30px 20px;
        margin: 15px auto !important;
    }

    .banner-costly .title {
        font-size: 20px;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .banner-costly .title .icon {
        max-width: 25px;
    }

    #costly-welcome-notice .title .title-uno:after {
        display: none;
    }

    .banner-costly .botones {
        flex-direction: column;
        gap: 10px;
    }

    .banner-costly .btn-notificacion {
        text-align: center;
        justify-content: center;
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .costly-toast {
        top: 46px;
        right: 10px;
        left: 10px;
        min-width: auto;
        max-width: none;
    }
}

@media (max-width: 600px) {
    .banner-costly ul {
        flex-direction: column;
        gap: 5px;
    }

    .banner-costly li {
        font-size: 14px;
    }
}

/* Animation for emoji icons */
.banner-costly .emoji {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    margin-right: 8px;
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}