/* =====================================================
   GISCON Spectra Copy Link - Frontend Styles
   ===================================================== */

/* Injected copy link button inherits Spectra's layout */
.giscon-copy-link-auto {
    display: inline-flex;
    vertical-align: middle;
}

.giscon-copy-link-trigger {
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.2s ease;
    display: block;
}

.giscon-copy-link-trigger:hover {
    opacity: 0.85;
    transform: scale(1.1);
}

/* =====================================================
   Toast Notification
   ===================================================== */

.giscon-copy-link-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(80px);
    background: #1e293b;
    color: #fff;
    padding: 12px 20px;
    border-radius: 12px;
    z-index: 999999;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2), 0 10px 10px -5px rgba(0, 0, 0, 0.1);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.4s ease;
    opacity: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    min-width: 260px;
    overflow: hidden;
}

.giscon-copy-link-toast.is-visible {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.giscon-toast-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.giscon-toast-icon {
    width: 22px;
    height: 22px;
    background: #10b981;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    flex-shrink: 0;
    line-height: 1;
}

.giscon-toast-error .giscon-toast-icon {
    background: #ef4444;
}

.giscon-toast-message {
    font-weight: 500;
    font-size: 14px;
    line-height: 1.4;
}

.giscon-toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: rgba(255, 255, 255, 0.25);
    width: 100%;
    animation: gisconToastProgress 3s linear forwards;
}

@keyframes gisconToastProgress {
    from { width: 100%; }
    to   { width: 0%;   }
}
