/**
 * Profound Leads — Frontend styles
 * Notification toasts + loading spinner
 * Matches brand: navy #0D1B2A, gold #C8962A
 */

/* ============================================
   NOTIFICATION TOAST
   ============================================ */
.pl-notification {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 999999;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: #fff;
    border-radius: 10px;
    padding: 16px 18px;
    min-width: 320px;
    max-width: 420px;
    box-shadow: 0 12px 36px rgba(13, 27, 42, 0.18);
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: #0D1B2A;
    opacity: 0;
    transform: translateX(20px);
    transition: opacity .3s ease, transform .3s cubic-bezier(.16, 1, .3, 1);
    border-left: 4px solid #C8962A;
}

.pl-notification--show {
    opacity: 1;
    transform: translateX(0);
}

.pl-notification--hide {
    opacity: 0;
    transform: translateX(20px);
}

.pl-notification--success {
    border-left-color: #2D8E5C;
}

.pl-notification--success .pl-notification__icon {
    color: #2D8E5C;
}

.pl-notification--error {
    border-left-color: #C0392B;
}

.pl-notification--error .pl-notification__icon {
    color: #C0392B;
}

.pl-notification__icon {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    margin-top: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pl-notification__msg {
    flex: 1;
    font-weight: 600;
}

.pl-notification__close {
    flex-shrink: 0;
    background: none;
    border: none;
    color: #9A9187;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    padding: 0 4px;
    margin: -2px -4px 0 0;
    transition: color .2s;
}

.pl-notification__close:hover {
    color: #0D1B2A;
}

/* ============================================
   LOADING SPINNER (button state)
   ============================================ */
.pl-spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid currentColor;
    border-top-color: transparent;
    border-radius: 50%;
    animation: pl-spin .7s linear infinite;
    vertical-align: -2px;
    margin-right: 6px;
}

@keyframes pl-spin {
    to { transform: rotate(360deg); }
}

.pl-loading {
    cursor: wait !important;
    opacity: 0.8;
}

/* ============================================
   MOBILE
   ============================================ */
@media (max-width: 640px) {
    .pl-notification {
        top: 16px;
        right: 16px;
        left: 16px;
        min-width: 0;
        max-width: none;
    }
}
