/**
 * Live Toast Notification Styling
 * Radical Minimalism (docs/design.md)
 */

#shicake-live-toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999999;
    display: flex;
    flex-direction: column-reverse;
    gap: 8px;
    max-width: 320px;
    width: calc(100vw - 32px);
    pointer-events: none;
}

@media (max-width: 576px) {
    #shicake-live-toast-container {
        bottom: 74px;
        right: 14px;
        left: 14px;
        width: auto;
        max-width: 100%;
    }
}

.shicake-live-toast {
    pointer-events: auto;
    background: #0f172a;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 12px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.45), 0 4px 6px -2px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    position: relative;
    opacity: 0;
    transform: translateY(12px) scale(0.98);
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.shicake-live-toast.show {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.shicake-live-toast.hide {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
    pointer-events: none;
}

.shicake-toast-inner {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    gap: 10px;
    text-decoration: none !important;
    color: #ffffff !important;
}

.shicake-toast-media {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.shicake-toast-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ffffff;
}

.shicake-toast-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.shicake-toast-content {
    flex: 1;
    min-width: 0;
}

.shicake-toast-title {
    font-size: 12px;
    font-weight: 700;
    color: #f8fafc;
    letter-spacing: -0.2px;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.shicake-toast-amount {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-weight: 700;
    color: #ffffff;
    font-size: 11.5px;
    letter-spacing: -0.2px;
    margin-top: 1px;
}

.shicake-toast-close {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 18px;
    height: 18px;
    border-radius: 3px;
    border: none;
    background: transparent;
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    cursor: pointer;
    line-height: 1;
    transition: color 0.15s ease, background-color 0.15s ease;
    padding: 0;
}

.shicake-toast-close:hover {
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
}

.shicake-toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    background: #ffffff;
    width: 100%;
    transform-origin: left;
    transition: transform linear;
    opacity: 0.35;
}
