/**
 * TamRank AI Image Alt Text — Media Library upsell + field container.
 *
 * The AI generator widget styles moved to the tam-rank-pro add-on during the
 * cluster-4 strip. FREE keeps the field-container layout, the wrapper base and
 * the PRO upsell box (shown on FREE / unlicensed installs). PRO enqueues its
 * generator CSS on top with this file's handle as a dependency.
 */
/* variables.css komt binnen via de tamrank-variables dependency (zie register_common_styles). */

/* ==========================================================================
   AI Alt Generator Container (shared wrapper)
   ========================================================================== */

.tamrank-ai-alt-generator {
    margin: var(--tr-space-3) 0;
    font-family: var(--tr-font-family);
}

/* ==========================================================================
   PRO Upgrade Box
   ========================================================================== */

.tamrank-pro-upgrade {
    padding: var(--tr-space-2) 0;
}

.tamrank-pro-upgrade__row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.tamrank-pro-upgrade__icon {
    color: var(--tr-color-primary);
    line-height: 0;
}

.tamrank-pro-upgrade__text {
    font-size: 13px;
    font-weight: 600;
    color: var(--tr-color-slate-700);
}

.tamrank-pro-upgrade__badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 6px;
    background: rgba(16, 185, 129, 0.1);
    color: var(--tr-color-primary);
    border: 1px solid rgba(16, 185, 129, 0.2);
    font-size: 9px;
    font-weight: 700;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1;
}

.tamrank-pro-upgrade__link-row {
    margin-left: 24px;
    margin-top: 4px;
}

.tamrank-pro-upgrade__link {
    font-size: 12px;
    font-weight: 600;
    color: var(--tr-color-primary);
    text-decoration: none;
}

.tamrank-pro-upgrade__link:hover,
.tamrank-pro-upgrade__link:focus {
    color: var(--tr-color-primary);
    text-decoration: underline;
}

/* ==========================================================================
   Media Modal Compatibility — field container layout
   ========================================================================== */

/* Override WordPress media modal table layout */
.compat-field-tamrank_ai_alt {
    display: block !important;
    width: calc(100% - 24px) !important;
    padding: var(--tr-space-3) !important;
    margin: 0 !important;
    overflow: visible !important;
}

.attachment-details .setting.compat-field-tamrank_ai_alt {
    display: block !important;
    overflow: visible !important;
    width: calc(100% - 24px) !important;
    padding: var(--tr-space-3) !important;
}

.compat-field-tamrank_ai_alt tr {
    display: block !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

.compat-field-tamrank_ai_alt th {
    display: none !important;
    width: 0 !important;
    padding: 0 !important;
}

.compat-field-tamrank_ai_alt td {
    display: block !important;
    width: 100% !important;
    padding: 0 !important;
    border: 0 !important;
    float: none !important;
}

.compat-item .tamrank-ai-alt-generator {
    max-width: 100%;
}

.media-modal .tamrank-ai-alt-generator {
    padding: 0;
}

.attachment-info .tamrank-ai-alt-generator {
    margin-top: var(--tr-space-4);
    padding-top: var(--tr-space-4);
    border-top: 1px solid var(--tr-color-slate-200);
}
