/* Promptlink - Front-end Block CSS */
/* Colours are injected as CSS vars by front.js based on Appearance settings */

.pl-block {
    font-family: inherit;          /* overridden by JS if custom font set */
    background: #ffffff;           /* overridden inline by JS */
    border: 1px solid #e2e8f0;    /* overridden inline by JS */
    border-radius: 10px;
    padding: 14px 16px;
    margin: 24px 0;
    box-sizing: border-box;
    /* CSS vars with safe defaults */
    --pl-btn-bg:      #f8fafc;
    --pl-btn-border:  #e2e8f0;
    --pl-btn-text:    #334155;
    --pl-btn-radius:  8px;
    --pl-label-color: #94a3b8;
}

.pl-front-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.pl-front-header-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--pl-label-color, #94a3b8);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* Horizontal scroll strip */
.pl-tools-wrap {
    position: relative;
}

.pl-front-tools {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 2px;
}

.pl-front-tools::-webkit-scrollbar { display: none; }

.pl-front-tool-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 16px;
    border-radius: var(--pl-btn-radius, 8px);
    background: var(--pl-btn-bg, #f8fafc);
    border: 1.5px solid var(--pl-btn-border, #e2e8f0);
    color: var(--pl-btn-text, #334155);
    text-decoration: none;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
    transition: border-color 0.15s, transform 0.1s, box-shadow 0.15s, color 0.15s, background 0.15s;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.pl-front-tool-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--tool-color, #4466ff);
    opacity: 0;
    transition: opacity 0.15s;
    border-radius: inherit;
}

.pl-front-tool-btn:hover {
    border-color: var(--tool-color, #4466ff);
    color: var(--tool-color, #4466ff);
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(0,0,0,0.07);
    text-decoration: none;
}

.pl-front-tool-btn:hover::after { opacity: 0.06; }
.pl-front-tool-btn:active       { transform: translateY(0) scale(0.98); box-shadow: none; }

.pl-front-tool-icon {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    display: block;
}

.pl-front-tool-label { position: relative; z-index: 1; }

.pl-front-tool-arrow {
    font-size: 11px;
    color: var(--pl-btn-border, #e2e8f0);
    position: relative;
    z-index: 1;
    transition: color 0.15s;
}

.pl-front-tool-btn:hover .pl-front-tool-arrow { color: var(--tool-color, #4466ff); }
