/* QH Markdown Exporter - Entitron V3 export panel */

.qhmaex-entitron-card {
    max-width: 1180px;
    margin-top: 24px;
    overflow: hidden;
}

.qhmaex-entitron-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 22px;
    border-bottom: 1px solid #d9e7f2;
    background: linear-gradient(180deg, #f3f9fd 0%, #ffffff 100%);
}

.qhmaex-entitron-logo {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1px solid #c9e0ef;
    border-radius: 8px;
    background: #ffffff;
}

.qhmaex-entitron-logo svg {
    width: 21px;
    height: 21px;
}

.qhmaex-entitron-title-group {
    min-width: 0;
}

.qhmaex-entitron-title {
    margin: 0;
    color: var(--wme-text);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
}

.qhmaex-entitron-subtitle {
    margin: 3px 0 0;
    color: var(--wme-muted);
    font-size: 12px;
    line-height: 1.45;
}

.qhmaex-entitron-badge {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    margin-left: auto;
    padding: 0 9px;
    border-radius: 6px;
    background: var(--wme-primary);
    color: #ffffff;
    flex-shrink: 0;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.qhmaex-entitron-body {
    padding: 20px 22px 22px;
}

.qhmaex-entitron-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 20px;
    align-items: center;
}

.qhmaex-entitron-summary h3 {
    margin: 0 0 8px;
    color: var(--wme-text);
    font-size: 14px;
    line-height: 1.3;
}

.qhmaex-entitron-summary p {
    max-width: 680px;
    margin: 10px 0 0;
    color: var(--wme-muted);
    font-size: 12px;
    line-height: 1.55;
}

.qhmaex-file-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.qhmaex-file-chips code {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 9px;
    border: 1px solid #dce7ee;
    border-radius: 8px;
    background: #fbfcfd;
    color: var(--wme-primary-dark);
    font-size: 12px;
    line-height: 1.2;
}

.qhmaex-entitron-form {
    margin: 0;
}

.qhmaex-entitron-submit {
    margin: 0;
    padding: 0;
}

.qhmaex-entitron-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 0 24px;
    border: 1px solid var(--wme-primary-dark);
    border-radius: 6px;
    background: var(--wme-primary);
    color: #ffffff !important;
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: background-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
    white-space: nowrap;
}

.qhmaex-entitron-btn:hover,
.qhmaex-entitron-btn:focus {
    background: var(--wme-primary-dark);
    box-shadow: 0 7px 16px rgba(31, 111, 178, 0.24);
    color: #ffffff !important;
}

.qhmaex-entitron-btn:active {
    transform: translateY(1px);
}

.qhmaex-entitron-btn .dashicons {
    width: 18px;
    height: 18px;
    font-size: 18px;
    line-height: 18px;
}

.qhmaex-entitron-btn:disabled {
    box-shadow: none;
    cursor: not-allowed;
    opacity: 0.6;
    transform: none;
}

@media (max-width: 782px) {
    .qhmaex-entitron-header {
        align-items: flex-start;
    }

    .qhmaex-entitron-grid {
        grid-template-columns: 1fr;
    }

    .qhmaex-entitron-btn {
        width: 100%;
    }
}
