/* Toast de Boas-vindas */
.welcome-toast {
    position: fixed;
    top: 7rem;
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    z-index: 999;
    max-width: 480px;
    width: calc(100% - 3rem);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.welcome-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

.toast-content {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.2rem 1.5rem;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px) saturate(150%);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

/* Fallback para navegadores sem suporte a backdrop-filter */
@supports not (backdrop-filter: blur(20px)) {
    .toast-content {
        background: rgba(198, 155, 134, 0.95);
    }
}

.toast-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    color: #fff;
    font-size: 1.3rem;
}

.toast-body {
    flex: 1;
    color: #fff;
}

.toast-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
    color: #ffffff;
}

.toast-message {
    font-size: 0.9rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0.8rem;
}

.toast-social {
    display: flex;
    gap: 0.6rem;
    align-items: center;
}

.toast-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s;
}

.toast-social-link:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.toast-social-link svg {
    width: 18px;
    height: 18px;
}

.toast-close {
    position: relative;
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s;
    color: #fff;
}

.toast-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.toast-close-icon {
    position: relative;
    z-index: 2;
    width: 16px;
    height: 16px;
}

/* Contador circular SVG */
.toast-timer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.toast-timer-circle {
    fill: none;
    stroke: #ffffff;
    stroke-width: 2;
    stroke-linecap: round;
    opacity: 0.4;
}

.toast-timer-progress {
    fill: none;
    stroke: #ffffff;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-dasharray: 100;
    stroke-dashoffset: 0;
    transition: stroke-dashoffset 0.1s linear;
}

/* Responsividade */
@media (max-width: 768px) {
    .welcome-toast {
        top: 6rem;
        max-width: 90%;
    }

    .toast-content {
        padding: 1rem 1.2rem;
        gap: 0.8rem;
    }

    .toast-icon {
        width: 36px;
        height: 36px;
        font-size: 1.1rem;
    }

    .toast-title {
        font-size: 0.95rem;
    }

    .toast-message {
        font-size: 0.85rem;
    }

    .toast-social-link {
        width: 30px;
        height: 30px;
    }

    .toast-social-link svg {
        width: 16px;
        height: 16px;
    }

    .toast-close {
        width: 32px;
        height: 32px;
    }
}

@media (max-width: 480px) {
    .welcome-toast {
        top: 5.5rem;
    }

    .toast-content {
        padding: 0.9rem 1rem;
        flex-wrap: wrap;
    }

    .toast-icon {
        width: 32px;
        height: 32px;
    }

    .toast-body {
        flex-basis: 100%;
        order: 2;
    }

    .toast-close {
        order: 1;
        margin-left: auto;
    }
}
