/**
 * GSE Notification Toasts
 * @since 3.16.0
 */

/* Toast Container */
#gse-toast-container {
    pointer-events: none;
}
#gse-toast-container .gse-toast {
    pointer-events: auto;
}

/* Individual Toast */
.gse-toast {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12), 0 2px 8px rgba(0,0,0,0.06);
    border-left: 4px solid #2563eb;
    padding: 14px 16px;
    position: relative;
    overflow: hidden;
    cursor: default;
    min-width: 320px;
}
.gse-toast-update {
    background: #fefce8;
}

/* Toast Header */
.gse-toast-header {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
}
.gse-toast-icon {
    font-size: 16px;
    flex-shrink: 0;
}
.gse-toast-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #374151;
}
.gse-toast-number {
    font-size: 11px;
    color: #9ca3af;
    margin-left: auto;
    font-family: monospace;
}
.gse-toast-close {
    border: none;
    background: none;
    color: #9ca3af;
    font-size: 18px;
    cursor: pointer;
    padding: 0 0 0 8px;
    line-height: 1;
}
.gse-toast-close:hover {
    color: #374151;
}

/* Toast Body */
.gse-toast-body {
    padding-left: 22px;
}
.gse-toast-subject {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 320px;
}
.gse-toast-location {
    font-size: 13px;
    font-weight: 700;
    color: #374151;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 320px;
}
.gse-toast-location::before {
    content: '\1F4CD ';
    font-weight: 400;
}
.gse-toast-meta {
    font-size: 12px;
    color: #6b7280;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 320px;
}

/* Scrollable container for persistent toasts */
#gse-toast-container {
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(0,0,0,0.15) transparent;
}
#gse-toast-container::-webkit-scrollbar {
    width: 4px;
}
#gse-toast-container::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.15);
    border-radius: 2px;
}

/* Dark theme for mobile */
.gse-mobile-dark .gse-toast {
    background: #2d3748;
    box-shadow: 0 8px 30px rgba(0,0,0,0.4);
}
.gse-mobile-dark .gse-toast-update {
    background: #374151;
}
.gse-mobile-dark .gse-toast-label {
    color: #e2e8f0;
}
.gse-mobile-dark .gse-toast-subject {
    color: #f7fafc;
}
.gse-mobile-dark .gse-toast-location {
    color: #e2e8f0;
}
.gse-mobile-dark .gse-toast-meta {
    color: #a0aec0;
}
.gse-mobile-dark .gse-toast-close {
    color: #718096;
}
.gse-mobile-dark .gse-toast-close:hover {
    color: #e2e8f0;
}

/* Responsive */
@media (max-width: 480px) {
    #gse-toast-container {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
    .gse-toast {
        min-width: 0;
    }
}
