/* =============================================================
   getagency extension — Frontend styles
   ============================================================= */

/* === Top Bar === */
#getagency-topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 36px;
    background: #1f2937;
    color: #fff;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 10001;
    gap: 12px;
    box-sizing: border-box;
}

#getagency-topbar.is-preview {
    background: #7c3aed;
}

#getagency-topbar.is-demo {
    background: #065f46;
}

#getagency-topbar .gtg-label {
    font-weight: 600;
    white-space: nowrap;
}

#getagency-topbar .gtg-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

#getagency-topbar button {
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: transparent;
    color: #fff;
    padding: 3px 12px;
    border-radius: 4px;
    font-size: 11px;
    cursor: pointer;
    transition: background 0.2s;
    line-height: 1.4;
}

#getagency-topbar button:hover {
    background: rgba(255, 255, 255, 0.15);
}

#getagency-topbar a.gtg-admin-link {
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: #fff;
    padding: 3px 12px;
    border-radius: 4px;
    font-size: 11px;
    text-decoration: none;
    transition: background 0.2s;
    line-height: 1.4;
}

#getagency-topbar a.gtg-admin-link:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* === Edit Restrictions (client sans autorisation) === */
.getagency-no-client-edit .asset-comment-form,
.getagency-no-client-edit .file-deposit-upload,
.getagency-no-client-edit .storyboard-insert-row,
.getagency-no-client-edit .suggest-slide-form {
    display: none !important;
}

/* === Mode aperçu client : masquer les contrôles d'édition manager === */
body.getagency-preview-client .block-actions,
body.getagency-preview-client .block-resize-icon,
body.getagency-preview-client .agency-actions,
body.getagency-preview-client .agency-btn-icon.edit-project,
body.getagency-preview-client .agency-btn-icon.delete-project,
body.getagency-preview-client .agency-btn-icon.edit-block,
body.getagency-preview-client .agency-btn-icon.delete-block,
body.getagency-preview-client .storyboard-slide-delete,
body.getagency-preview-client .storyboard-insert-row,
body.getagency-preview-client .add-block-btn,
body.getagency-preview-client .add-project-btn {
    display: none !important;
}

/* === Tooltips === */
.getagency-tooltip-trigger {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.6);
    background: rgba(0, 0, 0, 0.35);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s;
    z-index: 10;
    line-height: 1;
    padding: 0;
}

.agency-project-card:hover .getagency-tooltip-trigger,
.agency-block:hover .getagency-tooltip-trigger {
    opacity: 1;
}

/* Cards sans image de fond : icône sombre */
.agency-project-card:not(.has-project-bg) .getagency-tooltip-trigger,
.agency-block:not(.has-block-bg) .getagency-tooltip-trigger {
    border-color: var(--agency-card-border-color, #e0e0e0);
    background: var(--agency-light-bg, #f8f9fa);
    color: var(--agency-text-muted, #666);
}


.getagency-tooltip-popup {
    position: fixed;
    background: #1f2937;
    color: #f9fafb;
    font-size: 13px;
    line-height: 1.5;
    padding: 10px 14px;
    border-radius: 8px;
    max-width: 260px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
    z-index: 99999;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.15s;
}

.getagency-tooltip-popup.is-visible {
    opacity: 1;
}
